tech-debt: Migration framework does not handle foreign keys #329
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Database migration code cannot handle tables with foreign keys.
Locations
models/migrations/base/db.go:45- will not work if there are foreign keysmodels/migrations/base/db.go:311- will not work if there are foreign keysmodels/db/driver_sqlite_modernc.go:30- changed behavior from mattn driverAction Required
Add foreign key handling to migration framework. Document SQLite driver behavior differences.
Created by Claude Opus 4.6