feat: notice function to notify (in logs) about important changes in migrations

This commit is contained in:
Deluan
2020-02-28 14:00:41 -05:00
parent 65a792be3a
commit 38faffa907
2 changed files with 48 additions and 2 deletions
@@ -2,7 +2,7 @@ package migration
import (
"database/sql"
"github.com/deluan/navidrome/log"
"github.com/pressly/goose"
)
@@ -11,7 +11,7 @@ func init() {
}
func Up20200220143731(tx *sql.Tx) error {
log.Warn("This migration will force the next scan to be a full rescan!")
notice(tx, "This migration will force the next scan to be a full rescan!")
_, err := tx.Exec(`
create table media_file_dg_tmp
(