Commit 8fb01f70 authored by zYne's avatar zYne

added some sql statements for later usage

parent 5a9c72c3
// Sqlite cascading deletes
CREATE TRIGGER %s DELETE ON %s
BEGIN
DELETE FROM %s WHERE %s = %s;
END;
// Sqlite AuditLog
CREATE TRIGGER %s UPDATE OF %s ON %s
BEGIN
INSERT INTO %s (%s) VALUES (%s) WHERE %s = %s;
END;
CREATE TRIGGER %s DELETE ON %s
BEGIN
INSERT INTO %s (%s) VALUES (%s) WHERE %s = %s;
END;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment