15 lines
374 B
TypeScript
15 lines
374 B
TypeScript
import { Kysely } from 'kysely'
|
|
|
|
export async function up(db: Kysely<any>): Promise<void> {
|
|
await db.schema
|
|
.alterTable('pages')
|
|
.addColumn('theme', 'text', col => col.notNull().defaultTo('default'))
|
|
.execute()
|
|
}
|
|
|
|
export async function down(db: Kysely<any>): Promise<void> {
|
|
await db.schema
|
|
.alterTable('pages')
|
|
.dropColumn('theme')
|
|
.execute()
|
|
}
|