Make package name compatible with version installed by make setup

This commit is contained in:
Deluan
2020-10-03 20:13:47 -04:00
parent abd51b2156
commit 180f1354fc
28 changed files with 28 additions and 28 deletions
@@ -1,27 +0,0 @@
package migrations
import (
"database/sql"
"github.com/pressly/goose"
)
func init() {
goose.AddMigration(Up20200508093059, Down20200508093059)
}
func Up20200508093059(tx *sql.Tx) error {
_, err := tx.Exec(`
alter table artist
add song_count integer default 0 not null;
`)
if err != nil {
return err
}
notice(tx, "A full rescan will be performed to calculate artists' song counts")
return forceFullRescan(tx)
}
func Down20200508093059(tx *sql.Tx) error {
return nil
}