diff --git a/script/sql/create/19.reactions.sql b/script/sql/create/19.reactions.sql index a318dc3..16a69ce 100644 --- a/script/sql/create/19.reactions.sql +++ b/script/sql/create/19.reactions.sql @@ -1,18 +1,20 @@ -- [REACTIONS] -create table reactions_global +create table reactions ( - _no integer primary key -, order_bulk numeric -, order_wall numeric -, order_tank numeric -, global_bulk numeric -, global_wall numeric -, limiting_potential numeric -, roughness_correlation numeric + key text primary key +, value text not null ); -insert into reactions_global values (0, null, null, null, null, null, null, null); +insert into reactions (key, value) values + ('ORDER BULK', '1') +, ('ORDER WALL', '1') +, ('ORDER TANK', '1') +, ('GLOBAL BULK', '0') +, ('GLOBAL WALL', '0') +, ('LIMITING POTENTIAL', '0') +, ('ROUGHNESS CORRELATION', '0') +; create table reactions_pipe_bulk ( diff --git a/script/sql/drop/19.reactions.sql b/script/sql/drop/19.reactions.sql index 5fae80d..4fc30fa 100644 --- a/script/sql/drop/19.reactions.sql +++ b/script/sql/drop/19.reactions.sql @@ -6,4 +6,4 @@ drop table if exists reactions_pipe_wall; drop table if exists reactions_pipe_bulk; -drop table if exists reactions_global; +drop table if exists reactions;