mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 15:49:25 +01:00
Improved product average shelf life calculation (references #2283)
This commit is contained in:
parent
5d48b02b37
commit
ca740e8cee
14
migrations/0222.sql
Normal file
14
migrations/0222.sql
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
CREATE INDEX ix_stock_log_performance1 on stock_log (
|
||||
stock_id,
|
||||
transaction_type,
|
||||
amount
|
||||
);
|
||||
|
||||
CREATE INDEX ix_stock_log_performance2 on stock_log (
|
||||
product_id,
|
||||
best_before_date,
|
||||
purchased_date,
|
||||
transaction_type,
|
||||
stock_id,
|
||||
undone
|
||||
);
|
||||
Loading…
Reference in New Issue
Block a user