fix: tests
This commit is contained in:
parent
37b39c447f
commit
a0c109a04d
|
@ -9,11 +9,11 @@ import (
|
||||||
func init() {
|
func init() {
|
||||||
migrations.MustRegister(func(ctx context.Context, db *bun.DB) error {
|
migrations.MustRegister(func(ctx context.Context, db *bun.DB) error {
|
||||||
// CREATE INDEX CONCURRENTLY IF NOT EXISTS player_snapshots_server_key_date_idx ON player_snapshots(server_key, date);
|
// CREATE INDEX CONCURRENTLY IF NOT EXISTS player_snapshots_server_key_date_idx ON player_snapshots(server_key, date);
|
||||||
_, err := db.ExecContext(ctx, "CREATE INDEX CONCURRENTLY IF NOT EXISTS"+
|
_, err := db.ExecContext(ctx, "CREATE INDEX IF NOT EXISTS"+
|
||||||
" player_snapshots_server_key_date_idx ON player_snapshots(server_key, date);")
|
" player_snapshots_server_key_date_idx ON player_snapshots(server_key, date);")
|
||||||
return err
|
return err
|
||||||
}, func(ctx context.Context, db *bun.DB) error {
|
}, func(ctx context.Context, db *bun.DB) error {
|
||||||
_, err := db.ExecContext(ctx, "DROP INDEX CONCURRENTLY IF EXISTS player_snapshots_server_key_date_idx;")
|
_, err := db.ExecContext(ctx, "DROP INDEX IF EXISTS player_snapshots_server_key_date_idx;")
|
||||||
return err
|
return err
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue