Move migrations to separate app

This commit is contained in:
Darren Clarke 2024-08-07 16:05:26 +02:00
parent 87724bb7b8
commit c47223f5e9
21 changed files with 55 additions and 815 deletions

View file

@ -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();
}