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