mirror of
https://github.com/knadh/listmonk.git
synced 2024-11-10 17:13:04 +08:00
22 lines
461 B
Go
22 lines
461 B
Go
|
package migrations
|
||
|
|
||
|
import (
|
||
|
"github.com/jmoiron/sqlx"
|
||
|
"github.com/knadh/koanf"
|
||
|
"github.com/knadh/stuffbin"
|
||
|
)
|
||
|
|
||
|
// V2_5_0 performs the DB migrations.
|
||
|
func V2_5_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf) error {
|
||
|
// Insert new preference settings.
|
||
|
if _, err := db.Exec(`
|
||
|
INSERT INTO settings (key, value) VALUES
|
||
|
('app.enable_public_archive_rss_content', 'false')
|
||
|
ON CONFLICT DO NOTHING;
|
||
|
`); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|