diff --git a/.sqlfluff b/.sqlfluff index ee56ebb..3f42386 100644 --- a/.sqlfluff +++ b/.sqlfluff @@ -2,6 +2,9 @@ dialect = postgres max_line_length = 140 +[sqlfluff:rules:references.special_chars] +ignore_words = uuid-ossp + [sqlfluff:rules] # old configuration, to be compatible with Debian stable max_line_length = 140 @@ -11,4 +14,5 @@ indent_unit = tab indent_unit = tab [sqlfluff:rules:L057] +# old configuration, to be compatible with Debian stable ignore_words = uuid-ossp diff --git a/internal/database/database.sql b/internal/database/database.sql index 7330adb..9fadf32 100644 --- a/internal/database/database.sql +++ b/internal/database/database.sql @@ -17,7 +17,7 @@ CREATE TABLE IF NOT EXISTS uplink_gtp4 ( uplink_teid INTEGER, srgw_ip INET, gnb_ip INET, - action_uuid UUID REFERENCES rule(uuid) ON DELETE CASCADE, + action_uuid UUID REFERENCES rule (uuid) ON DELETE CASCADE, PRIMARY KEY (uplink_teid, srgw_ip, gnb_ip) );