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
@@ -0,0 +1,36 @@
package migration
import (
"database/sql"
"github.com/pressly/goose"
)
func init() {
goose.AddMigration(upCreatePlayQueuesTable, downCreatePlayQueuesTable)
}
func upCreatePlayQueuesTable(tx *sql.Tx) error {
_, err := tx.Exec(`
create table playqueue
(
id varchar(255) not null primary key,
user_id varchar(255) not null
references user (id)
on update cascade on delete cascade,
comment varchar(255),
current varchar(255) not null,
position integer,
changed_by varchar(255),
items varchar(255),
created_at datetime,
updated_at datetime
);
`)
return err
}
func downCreatePlayQueuesTable(tx *sql.Tx) error {
return nil
}