diff --git a/src/ui/conf/migrations/1.sql b/src/ui/conf/migrations/1.sql index 2b2ddb6f..1f780999 100644 --- a/src/ui/conf/migrations/1.sql +++ b/src/ui/conf/migrations/1.sql @@ -39,13 +39,6 @@ CREATE TABLE rule( extra TEXT -- TCP flags, ICMP types, etc ); -CREATE TABLE global_rule( - global_rule_id INTEGER PRIMARY KEY, - type INTEGER NOT NULL, - rule_id INTEGER NOT NULL, - order_index INTEGER NOT NULL -); - CREATE TABLE policy( policy_id INTEGER PRIMARY KEY, enabled BOOLEAN NOT NULL, @@ -79,6 +72,13 @@ CREATE TABLE policy_menu_set( policy_id INTEGER NOT NULL ); +CREATE TABLE global_policy( + global_policy_id INTEGER PRIMARY KEY, + type INTEGER NOT NULL, + policy_id INTEGER NOT NULL, + order_index INTEGER NOT NULL +); + CREATE TABLE app_group( app_group_id INTEGER PRIMARY KEY, order_index INTEGER NOT NULL,