mirror of
https://github.com/docmost/docmost.git
synced 2026-08-30 02:25:01 +08:00
feat(base): add migration marker for formula property type
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
import { type Kysely, sql } from "kysely";
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The `base_properties.type` column is varchar with no CHECK constraint
|
||||||
|
* in the current schema, so runtime validation of 'formula' happens entirely
|
||||||
|
* in the Zod layer (base.schemas.ts). This migration is intentionally empty —
|
||||||
|
* it exists to mark the formula property type release in the migration log.
|
||||||
|
*/
|
||||||
|
export async function up(_db: Kysely<any>): Promise<void> {
|
||||||
|
// no-op — formula type allowed at Zod layer
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function down(_db: Kysely<any>): Promise<void> {
|
||||||
|
// no-op
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user