From a85117856f3a92e75d88560e0ac01680b155ccad Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 11 Mar 2021 12:36:39 +0300 Subject: [PATCH] UI: Rules: Global policies, not rules. --- src/ui/conf/migrations/1.sql | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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,