From 8925680bfb9a6a1eedeb118477c3a546e9c99816 Mon Sep 17 00:00:00 2001 From: lucas picollo Date: Fri, 17 Jul 2026 12:00:58 -0300 Subject: [PATCH] chore: add user address id type migration file --- .../migrations/20250805_fix_user_addresses_id_type.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 apps/subscription-server/db/migrations/20250805_fix_user_addresses_id_type.ts diff --git a/apps/subscription-server/db/migrations/20250805_fix_user_addresses_id_type.ts b/apps/subscription-server/db/migrations/20250805_fix_user_addresses_id_type.ts new file mode 100644 index 00000000..98ae9d1f --- /dev/null +++ b/apps/subscription-server/db/migrations/20250805_fix_user_addresses_id_type.ts @@ -0,0 +1,11 @@ +import type { Knex } from "knex"; + +// This migration ran in production (recorded in knex_migrations) but its file +// was accidentally deleted in commit 7b7f1e1d. It converted user_addresses.id +// from serial int to varchar(36) UUID — the create-table migration +// (20250715000000) now creates the correct schema directly, so fresh DBs need +// nothing. The file must exist with this exact name or knex refuses to run +// any migrations ("migration directory is corrupt"). +export async function up(_knex: Knex): Promise {} + +export async function down(_knex: Knex): Promise {}