You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I don't know if it is an SQLite or drift issue, but deleting parent entities leave the child entities undeleted with invalid data of foreign key (Id that not exists in parent entity as Id.)
CREATE TABLE IF NOT EXISTS todo (id TEXT NOT NULL, PRIMARY KEY (id));
CREATE TABLE IF NOT EXISTS todoElement (id TEXT NOT NULL, todoId TEXT NOT NULL REFERENCES todo (id), PRIMARY KEY (id));
The text was updated successfully, but these errors were encountered:
Enabling foreign keys will prevent the database from getting into an inconsistent state, but your schema is configured to throw an error when attempting to delete the parent. If you instead want to cascade delete children on parent deletion, you need to configure that explicitly - see https://www.sqlite.org/foreignkeys.html#fk_actions
Hi!
I don't know if it is an SQLite or drift issue, but deleting parent entities leave the child entities undeleted with invalid data of foreign key (Id that not exists in parent entity as Id.)
CREATE TABLE IF NOT EXISTS todo (id TEXT NOT NULL, PRIMARY KEY (id));
CREATE TABLE IF NOT EXISTS todoElement (id TEXT NOT NULL, todoId TEXT NOT NULL REFERENCES todo (id), PRIMARY KEY (id));
The text was updated successfully, but these errors were encountered: