mirror of
https://github.com/docmost/docmost.git
synced 2025-11-10 07:02:06 +10:00
new columns
This commit is contained in:
14
apps/server/src/database/migrations/20250923T181121-ai.ts
Normal file
14
apps/server/src/database/migrations/20250923T181121-ai.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { type Kysely } from 'kysely';
|
||||
|
||||
export async function up(db: Kysely<any>): Promise<void> {
|
||||
await db.schema
|
||||
.alterTable('workspaces')
|
||||
.addColumn('enable_ai', 'boolean', (col) => col.defaultTo(false))
|
||||
.addColumn('enable_ai_search', 'boolean', (col) => col.defaultTo(false))
|
||||
.execute();
|
||||
}
|
||||
|
||||
export async function down(db: Kysely<any>): Promise<void> {
|
||||
await db.schema.alterTable('workspaces').dropColumn('enable_ai').execute();
|
||||
await db.schema.alterTable('workspaces').dropColumn('enable_ai_search').execute();
|
||||
}
|
||||
Submodule apps/server/src/ee updated: 3af21def15...71d119afd3
Reference in New Issue
Block a user