Move migrations to separate app
This commit is contained in:
parent
87724bb7b8
commit
c47223f5e9
21 changed files with 55 additions and 815 deletions
|
|
@ -1,9 +0,0 @@
|
|||
import { Kysely } from "kysely";
|
||||
|
||||
export async function up(db: Kysely<any>): Promise<void> {
|
||||
await db.schema.alterTable("User").addColumn("role", "text").execute();
|
||||
}
|
||||
|
||||
export async function down(db: Kysely<any>): Promise<void> {
|
||||
await db.schema.alterTable("User").dropColumn("role").execute();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue