added some sql statements for later usage
This commit is contained in:
parent
5a9c72c3ff
commit
8fb01f704c
17
sql.php
Normal file
17
sql.php
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
// 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;
|
Loading…
Reference in New Issue
Block a user