Format sql

This commit is contained in:
WQY\qiong
2022-10-09 11:06:19 +08:00
parent d99c0eacbf
commit 9accb467b2
58 changed files with 283 additions and 283 deletions

View File

@@ -1,11 +1,11 @@
DROP TABLE IF EXISTS _PATTERN;
drop table if exists _pattern;
DROP TABLE IF EXISTS _CURVE;
drop table if exists _curve;
DROP TABLE IF EXISTS _LINK;
drop table if exists _link;
DROP TABLE IF EXISTS _NODE;
drop table if exists _node;
DROP TYPE IF EXISTS _LINK_TYPE;
drop type if exists _link_type;
DROP TYPE IF EXISTS _NODE_TYPE;
drop type if exists _node_type;

View File

@@ -1,3 +1,3 @@
-- [TITLE]
DROP TABLE IF EXISTS TITLE;
drop table if exists title;

View File

@@ -1,13 +1,13 @@
-- [STATUS]
DROP TABLE IF EXISTS STATUS_LINK;
drop table if exists status_link;
DROP TABLE IF EXISTS STATUS_VALVE;
drop table if exists status_valve;
DROP TYPE IF EXISTS STATUS_VALVE_STATUS;
drop type if exists status_valve_status;
DROP TABLE IF EXISTS STATUS_PUMP;
drop table if exists status_pump;
DROP TABLE IF EXISTS STATUS_PIPE;
drop table if exists status_pipe;
DROP TYPE IF EXISTS STATUS_PIPE_PUMP_STATUS;
drop type if exists status_pipe_pump_status;

View File

@@ -1,3 +1,3 @@
-- [PATTERNS]
DROP TABLE IF EXISTS PATTERNS;
drop table if exists patterns;

View File

@@ -1,3 +1,3 @@
-- [CURVES]
DROP TABLE IF EXISTS CURVES;
drop table if exists curves;

View File

@@ -1,9 +1,9 @@
-- [CONTROLS]
DROP TABLE IF EXISTS CONTROLS_3;
drop table if exists controls_3;
DROP TABLE IF EXISTS CONTROLS_2;
drop table if exists controls_2;
DROP TABLE IF EXISTS CONTROLS_1;
drop table if exists controls_1;
DROP TYPE IF EXISTS CONTROLS_1_PREP;
drop type if exists controls_1_prep;

View File

@@ -1,3 +1,3 @@
-- [RULES]
DROP TABLE IF EXISTS RULES;
drop table if exists rules;

View File

@@ -1,9 +1,9 @@
-- [ENERGY]
DROP TABLE IF EXISTS ENERGY_DEMAND_CHARGE;
drop table if exists energy_demand_charge;
DROP TABLE IF EXISTS ENERGY_PUMP;
drop table if exists energy_pump;
DROP TABLE IF EXISTS ENERGY_GLOBAL;
drop table if exists energy_global;
DROP TYPE IF EXISTS ENERGY_PARAM;
drop type if exists energy_param;

View File

@@ -1,3 +1,3 @@
-- [EMITTERS]
DROP TABLE IF EXISTS EMITTERS;
drop table if exists emitters;

View File

@@ -1,3 +1,3 @@
-- [QUALITY]
DROP TABLE IF EXISTS QUALITY;
drop table if exists quality;

View File

@@ -1,5 +1,5 @@
-- [SOURCES]
DROP TABLE IF EXISTS SOURCES;
drop table if exists sources;
DROP TYPE IF EXISTS SOURCES_TYPE;
drop type if exists sources_type;

View File

@@ -1,19 +1,19 @@
-- [REACTIONS]
DROP TABLE IF EXISTS REACTIONS_ROUGHNESS_CORRELATION;
drop table if exists reactions_roughness_correlation;
DROP TABLE IF EXISTS REACTIONS_LIMITING_POTENTIAL;
drop table if exists reactions_limiting_potential;
DROP TABLE IF EXISTS REACTIONS_TANK;
drop table if exists reactions_tank;
DROP TABLE IF EXISTS REACTIONS_PIPE;
drop table if exists reactions_pipe;
DROP TYPE IF EXISTS REACTIONS_PIPE_PARAM;
drop type if exists reactions_pipe_param;
DROP TABLE IF EXISTS REACTIONS_GLOBAL;
drop table if exists reactions_global;
DROP TYPE IF EXISTS REACTIONS_GLOBAL_PARAM;
drop type if exists reactions_global_param;
DROP TABLE IF EXISTS REACTIONS_ORDER;
drop table if exists reactions_order;
DROP TYPE IF EXISTS REACTIONS_ORDER_PARAM;
drop type if exists reactions_order_param;

View File

@@ -1,3 +1,3 @@
-- [JUNCTIONS]
DROP TABLE IF EXISTS JUNCTIONS;
drop table if exists junctions;

View File

@@ -1,5 +1,5 @@
-- [MIXING]
DROP TABLE IF EXISTS MIXING;
drop table if exists mixing;
DROP TYPE IF EXISTS MIXING_Model;
drop type if exists mixing_model;

View File

@@ -1,3 +1,3 @@
-- [TIMES]
DROP TABLE IF EXISTS TIMES;
drop table if exists times;

View File

@@ -1,3 +1,3 @@
-- [REPORT]
DROP TABLE IF EXISTS REPORT;
drop table if exists report;

View File

@@ -1,3 +1,3 @@
-- [OPTIONS]
DROP TABLE IF EXISTS OPTIONS;
drop table if exists options;

View File

@@ -1,7 +1,7 @@
-- [COORDINATES]
DROP INDEX IF EXISTS COORDINATES_GIST;
drop index if exists coordinates_gist;
DROP INDEX IF EXISTS COORDINATES_SPGIST;
drop index if exists coordinates_spgist;
DROP TABLE IF EXISTS COORDINATES;
drop table if exists coordinates;

View File

@@ -1,3 +1,3 @@
-- [VERTICES]
DROP TABLE IF EXISTS VERTICES;
drop table if exists vertices;

View File

@@ -1,3 +1,3 @@
-- [LABELS]
DROP TABLE IF EXISTS LABELS;
drop table if exists labels;

View File

@@ -1,3 +1,3 @@
-- [BACKDROP]
DROP TABLE IF EXISTS BACKDROP;
drop table if exists backdrop;

View File

@@ -1,3 +1,3 @@
-- [RESERVOIRS]
DROP TABLE IF EXISTS RESERVOIRS;
drop table if exists reservoirs;

View File

@@ -1,5 +1,5 @@
-- [TANKS]
DROP TABLE IF EXISTS TANKS;
drop table if exists tanks;
DROP TYPE IF EXISTS TANKS_OVERFLOW;
drop type if exists tanks_overflow;

View File

@@ -1,5 +1,5 @@
-- [PIPES]
DROP TABLE IF EXISTS PIPES;
drop table if exists pipes;
DROP TYPE IF EXISTS PIPES_STATUS;
drop type if exists pipes_status;

View File

@@ -1,11 +1,11 @@
-- [PUMPS]
DROP TABLE IF EXISTS PUMPS_PROPERTY_PATTERN;
drop table if exists pumps_property_pattern;
DROP TABLE IF EXISTS PUMPS_PROPERTY_HEAD;
drop table if exists pumps_property_head;
DROP TABLE IF EXISTS PUMPS_PROPERTY_SPEED;
drop table if exists pumps_property_speed;
DROP TABLE IF EXISTS PUMPS_PROPERTY_POWER;
drop table if exists pumps_property_power;
DROP TABLE IF EXISTS PUMPS;
drop table if exists pumps;

View File

@@ -1,5 +1,5 @@
-- [VALVES]
DROP TABLE IF EXISTS VALVES;
drop table if exists valves;
DROP TYPE IF EXISTS VALVES_TYPE;
drop type if exists valves_type;

View File

@@ -1,5 +1,5 @@
-- [TAGS]
DROP TABLE IF EXISTS TAGS_LINK;
drop table if exists tags_link;
DROP TABLE IF EXISTS TAGS_NODE;
drop table if exists tags_node;

View File

@@ -1,3 +1,3 @@
-- [DEMANDS]
DROP TABLE IF EXISTS DEMANDS;
drop table if exists demands;

View File

@@ -1,9 +1,9 @@
DROP TABLE IF EXISTS TRANSACTION_OPERATION;
drop table if exists transaction_operation;
DROP TABLE IF EXISTS SNAPSHOT_OPERATION;
drop table if exists snapshot_operation;
DROP TABLE IF EXISTS CURRENT_OPERATION;
drop table if exists current_operation;
DROP TABLE IF EXISTS OPERATION;
drop table if exists operation;
DROP TYPE IF EXISTS API_OPERATION;
drop type if exists api_operation;