mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 19:06:34 +00:00
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:
parent
02b69713c3
commit
9dc6119791
1 changed files with 1 additions and 0 deletions
|
|
@ -552,6 +552,7 @@ export const TENANT_MIGRATIONS: readonly string[] = [
|
||||||
AND (
|
AND (
|
||||||
c.column_name = 'id'
|
c.column_name = 'id'
|
||||||
OR c.column_name LIKE '%_id'
|
OR c.column_name LIKE '%_id'
|
||||||
|
OR c.column_name LIKE '%_by'
|
||||||
)
|
)
|
||||||
AND c.table_name NOT IN ('schema_migrations', 'setup_state')
|
AND c.table_name NOT IN ('schema_migrations', 'setup_state')
|
||||||
LOOP
|
LOOP
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue