A discord bot for teal.fm
discord tealfm music
at main 877 B view raw
1import type { Kysely } from 'kysely' 2 3// `any` is required here since migrations should be frozen in time. alternatively, keep a "snapshot" db interface. 4export async function up(db: Kysely<any>): Promise<void> { 5 // up migration code goes here... 6 // note: up migrations are mandatory. you must implement this function. 7 // For more info, see: https://kysely.dev/docs/migrations 8 await db.schema.alterTable("plays").addColumn("live", "boolean").execute() 9} 10 11// `any` is required here since migrations should be frozen in time. alternatively, keep a "snapshot" db interface. 12export async function down(db: Kysely<any>): Promise<void> { 13 // down migration code goes here... 14 // note: down migrations are optional. you can safely delete this function. 15 // For more info, see: https://kysely.dev/docs/migrations 16 await db.schema.alterTable("plays").dropColumn("live").execute() 17}