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) <noreply@anthropic.com>
This commit is contained in:
Mitchell R 2026-05-26 13:34:27 +02:00
parent 02b69713c3
commit 9dc6119791
No known key found for this signature in database

View file

@ -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