mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Improved QU conversion validation messages (references #1844)
This commit is contained in:
parent
ca77ba6d19
commit
35474f2466
@ -35,7 +35,7 @@ SELECT CASE WHEN((
|
||||
AND qu_id_purchase = NEW.to_qu_id
|
||||
AND qu_id_stock = NEW.from_qu_id
|
||||
)
|
||||
NOTNULL) THEN RAISE(ABORT, "QU conversion constraint violation") END;
|
||||
NOTNULL) THEN RAISE(ABORT, "QU conversion already exists") END;
|
||||
END;
|
||||
|
||||
DROP TRIGGER quantity_unit_conversions_custom_unique_constraint_UPD;
|
||||
@ -67,7 +67,7 @@ SELECT CASE WHEN((
|
||||
AND qu_id_purchase = NEW.to_qu_id
|
||||
AND qu_id_stock = NEW.from_qu_id
|
||||
)
|
||||
NOTNULL) THEN RAISE(ABORT, "QU conversion constraint violation") END;
|
||||
NOTNULL) THEN RAISE(ABORT, "QU conversion already exists") END;
|
||||
END;
|
||||
|
||||
CREATE TRIGGER qu_conversions_inverse_INS AFTER INSERT ON quantity_unit_conversions
|
||||
|
Loading…
x
Reference in New Issue
Block a user