From 30e6813c0cf222454a8eba8b81bd572276aeac12 Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Fri, 21 Oct 2022 21:41:35 +0800 Subject: [PATCH] Ehance pump schema --- script/sql/create/6.pumps.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/script/sql/create/6.pumps.sql b/script/sql/create/6.pumps.sql index 1411d9c..c93e88e 100644 --- a/script/sql/create/6.pumps.sql +++ b/script/sql/create/6.pumps.sql @@ -10,4 +10,5 @@ create table pumps , speed numeric , pattern varchar(32) references _pattern(id) , check (power is not null or head is not null) +, check ((power is not null and head is not null) is false) );