Move few things around
This commit is contained in:
parent
d0bbe12a7e
commit
0d6ec3d225
@ -38,6 +38,12 @@ COMPOUND TRIGGER
|
|||||||
IF NOT DELETING THEN
|
IF NOT DELETING THEN
|
||||||
:NEW.updated_by := curr_updated_by;
|
:NEW.updated_by := curr_updated_by;
|
||||||
:NEW.updated_at := curr_updated_at;
|
:NEW.updated_at := curr_updated_at;
|
||||||
|
ELSE
|
||||||
|
DELETE FROM sessions t
|
||||||
|
WHERE t.app_id = :OLD.app_id;
|
||||||
|
--
|
||||||
|
DELETE FROM navigation t
|
||||||
|
WHERE t.app_id = :OLD.app_id;
|
||||||
END IF;
|
END IF;
|
||||||
EXCEPTION
|
EXCEPTION
|
||||||
WHEN app.app_exception THEN
|
WHEN app.app_exception THEN
|
||||||
@ -98,12 +104,6 @@ COMPOUND TRIGGER
|
|||||||
DELETE FROM events t
|
DELETE FROM events t
|
||||||
WHERE t.app_id = deleted_app_id;
|
WHERE t.app_id = deleted_app_id;
|
||||||
--
|
--
|
||||||
DELETE FROM sessions t
|
|
||||||
WHERE t.app_id = deleted_app_id;
|
|
||||||
--
|
|
||||||
DELETE FROM navigation t
|
|
||||||
WHERE t.app_id = deleted_app_id;
|
|
||||||
--
|
|
||||||
DELETE FROM user_roles t
|
DELETE FROM user_roles t
|
||||||
WHERE t.app_id = deleted_app_id;
|
WHERE t.app_id = deleted_app_id;
|
||||||
--
|
--
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user