Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Akronymus
· 10mo ago · 0 comments
So you have to drop and re-add a column when adding foreign keys?
Comments
[–]
lun3x
10mo ago
The 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