database: fix weighing_reason bug

This commit is contained in:
2023-10-10 12:30:30 +02:00
parent a821e977e3
commit a70276adf8
2 changed files with 3 additions and 2 deletions

View File

@ -534,7 +534,7 @@ CREATE TABLE delivery_part (
scale_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,
ctime INTEGER NOT NULL DEFAULT (UNIXEPOCH()),

View File

@ -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;