3 ms·
So you have to drop and re-add a column when adding foreign keys?
by Akronymus 8mo ago
So you have to drop and re-add a column when adding foreign keys?
- lun3x 8mo agoThe SQLite docs have a section about it, the idea is: 1. Create new table with foreign key constraint 2. Copy data from old to new 3. Drop old table 4. Rename new table to old name