mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
0f02261ee6
* Refactor: use queue for page history * feat: save multiple version contributors * display contributor avatars in history list * fix interval
16 lines
413 B
TypeScript
16 lines
413 B
TypeScript
import { type Kysely, sql } from 'kysely';
|
|
|
|
export async function up(db: Kysely<any>): Promise<void> {
|
|
await db.schema
|
|
.alterTable('page_history')
|
|
.addColumn('contributor_ids', sql`uuid[]`, (col) => col.defaultTo('{}'))
|
|
.execute();
|
|
}
|
|
|
|
export async function down(db: Kysely<any>): Promise<void> {
|
|
await db.schema
|
|
.alterTable('page_history')
|
|
.dropColumn('contributor_ids')
|
|
.execute();
|
|
}
|