From: gamesguru Date: Tue, 6 Oct 2020 10:09:23 +0000 (-0400) Subject: remove sync data, rda trigger.. not used X-Git-Tag: 0.0.0~3 X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=02ce1ea0a8bc4941d0fb9389252b273f7553f6ff;p=nutratech%2Fnt-sqlite.git remove sync data, rda trigger.. not used --- diff --git a/sql/tables.sql b/sql/tables.sql index c545bbf..a8afd35 100644 --- a/sql/tables.sql +++ b/sql/tables.sql @@ -177,25 +177,3 @@ CREATE TABLE rda ( FOREIGN KEY (profile_id) REFERENCES profiles (id) ON UPDATE CASCADE ); -CREATE TRIGGER rda_sync - AFTER UPDATE OF rda ON rda -BEGIN - UPDATE rda SET synced = 0 -WHERE - NEW.profile_id = profile_id AND NEW.nutr_id = nutr_id; - -END; - --- --------------------------------- --- Custom RDAs --------------------------------- - -CREATE TABLE sync_data ( - id integer PRIMARY KEY AUTOINCREMENT, - tablename text NOT NULL, - guid text, - `constraint` text, -- e.g. "(a, b)" in "UNIQUE (a, b)" or "ON CONFLICT (a, b) DO ..." - action text NOT NULL -- insert, delete, update -); -