mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Delete stock_log rows for not existing products in migration 0103 (fixes #1002)
This commit is contained in:
parent
f93261404b
commit
a2b2f26628
@ -1,3 +1,7 @@
|
||||
-- Delete stock_log rows for not existing products as this would make the rest here fail
|
||||
DELETE from stock_log
|
||||
WHERE product_id NOT IN (SELECT id from products);
|
||||
|
||||
ALTER TABLE stock_log
|
||||
ADD qu_factor_purchase_to_stock REAL NOT NULL DEFAULT 1.0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user