Rename migrations package, to match goose generated migration files

This commit is contained in:
Deluan 2020-08-01 16:49:01 -04:00
parent ed726c2126
commit 21b9f51b71
26 changed files with 26 additions and 26 deletions

View file

@ -0,0 +1,29 @@
package migrations
import (
"database/sql"
"github.com/pressly/goose"
)
func init() {
goose.AddMigration(Up20200404214704, Down20200404214704)
}
func Up20200404214704(tx *sql.Tx) error {
_, err := tx.Exec(`
create index if not exists media_file_year
on media_file (year);
create index if not exists media_file_duration
on media_file (duration);
create index if not exists media_file_track_number
on media_file (disc_number, track_number);
`)
return err
}
func Down20200404214704(tx *sql.Tx) error {
return nil
}