From 8e8592882713ccfe0d0f069feda970db8f8b3ab2 Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Mon, 14 Nov 2022 20:08:15 +0800 Subject: [PATCH] Refine reactions table --- script/sql/create/19.reactions.sql | 22 ++++++++++++---------- script/sql/drop/19.reactions.sql | 2 +- 2 files changed, 13 insertions(+), 11 deletions(-) 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;