From 9dc6119791fac915a766405bac928e08e2893360 Mon Sep 17 00:00:00 2001 From: Mitchell R Date: Tue, 26 May 2026 13:34:27 +0200 Subject: [PATCH] fix: also convert *_by columns (uploaded_by, created_by) to TEXT Dynamic column detection only matched 'id' and '*_id' patterns. firmware_releases.uploaded_by and similar FK columns use '_by' suffix. Co-Authored-By: Claude Opus 4.6 (1M context) --- server/src/shared/db/migrations-pg.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/shared/db/migrations-pg.ts b/server/src/shared/db/migrations-pg.ts index 1ea1abb..54e554a 100644 --- a/server/src/shared/db/migrations-pg.ts +++ b/server/src/shared/db/migrations-pg.ts @@ -552,6 +552,7 @@ export const TENANT_MIGRATIONS: readonly string[] = [ AND ( c.column_name = 'id' OR c.column_name LIKE '%_id' + OR c.column_name LIKE '%_by' ) AND c.table_name NOT IN ('schema_migrations', 'setup_state') LOOP