database: fix weighing_reason bug
This commit is contained in:
@ -534,7 +534,7 @@ CREATE TABLE delivery_part (
|
|||||||
|
|
||||||
scale_id TEXT,
|
scale_id TEXT,
|
||||||
weighing_id TEXT,
|
weighing_id TEXT,
|
||||||
weighing_reason TEXT CHECK (NOT (manual_weighing = TRUE AND weighing_reason IS NOT NULL)),
|
weighing_reason TEXT CHECK (NOT (manual_weighing = FALSE AND weighing_reason IS NOT NULL)),
|
||||||
|
|
||||||
comment TEXT DEFAULT NULL,
|
comment TEXT DEFAULT NULL,
|
||||||
ctime INTEGER NOT NULL DEFAULT (UNIXEPOCH()),
|
ctime INTEGER NOT NULL DEFAULT (UNIXEPOCH()),
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
|
||||||
PRAGMA schema_version = 100; -- This value MUST NOT be changed while other connections are open!
|
-- This value MUST NOT be changed while other connections are open!
|
||||||
|
PRAGMA schema_version = 200;
|
||||||
|
Reference in New Issue
Block a user