I need to add a column to my existing SQLite table that references a column in another table. I use the command
ALTER TABLE users
ADD COLUMN dayChoice_id INTEGER
NOT NULL REFERENCES dayChoice(dayChoice_id) DEFAULT 0
And I get the error "Cannot add a REFERENCES column with non-NULL default value". Is that true? How would I add the column then?