mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
17 lines
443 B
TypeScript
17 lines
443 B
TypeScript
import { Kysely } from 'kysely';
|
|
|
|
export async function up(db: Kysely<unknown>): Promise<void> {
|
|
await db.schema
|
|
.alterTable('author_stats')
|
|
.addColumn('streak_start', 'integer')
|
|
.addColumn('streak_end', 'integer')
|
|
.execute();
|
|
}
|
|
|
|
export async function down(db: Kysely<unknown>): Promise<void> {
|
|
await db.schema
|
|
.alterTable('author_stats')
|
|
.dropColumn('streak_start')
|
|
.dropColumn('streak_end')
|
|
.execute();
|
|
}
|