From c67ae19c393ef6b6252105c6d7f32b0b02d5d49a Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Fri, 24 Apr 2026 00:06:13 +0100 Subject: [PATCH] feat(base): add migration marker for formula property type --- .../20260419T120000-base-formula-property-type.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 apps/server/src/database/migrations/20260419T120000-base-formula-property-type.ts diff --git a/apps/server/src/database/migrations/20260419T120000-base-formula-property-type.ts b/apps/server/src/database/migrations/20260419T120000-base-formula-property-type.ts new file mode 100644 index 000000000..2c5572160 --- /dev/null +++ b/apps/server/src/database/migrations/20260419T120000-base-formula-property-type.ts @@ -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): Promise { + // no-op — formula type allowed at Zod layer +} + +export async function down(_db: Kysely): Promise { + // no-op +}