Database: Add weighing_reason to delivery_part

This commit is contained in:
2023-09-14 23:23:59 +02:00
parent f8e2e1dda0
commit eac0f4f6a9
2 changed files with 6 additions and 3 deletions

View File

@ -542,6 +542,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)),
comment TEXT DEFAULT NULL,
ctime INTEGER NOT NULL DEFAULT (UNIXEPOCH()),