mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
12 lines
398 B
TypeScript
12 lines
398 B
TypeScript
import type { Kysely } from 'kysely';
|
|
|
|
export async function up(db: Kysely<unknown>): Promise<void> {
|
|
await db.schema
|
|
.alterTable('event_stats')
|
|
.addColumn('quotes_count', 'integer', (col) => col.notNull().defaultTo(0))
|
|
.execute();
|
|
}
|
|
|
|
export async function down(db: Kysely<unknown>): Promise<void> {
|
|
await db.schema.alterTable('event_stats').dropColumn('quotes_count').execute();
|
|
}
|