db/migrations: fix `down` in 003_events_admin to drop the new "admin" column, not the "relays" table (whoops)

This commit is contained in:
Alex Gleason 2023-09-04 13:19:27 -05:00
parent 25e023aaf2
commit 8ec215402f
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -8,5 +8,5 @@ export async function up(db: Kysely<any>): Promise<void> {
} }
export async function down(db: Kysely<any>): Promise<void> { export async function down(db: Kysely<any>): Promise<void> {
await db.schema.dropTable('relays').execute(); await db.schema.alterTable('users').dropColumn('admin').execute();
} }