Fix broken init script

This commit is contained in:
2024-08-13 21:44:47 +02:00
parent 1387eecc96
commit 2586f0749f
3 changed files with 29 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
begin transaction;
begin;
create table weight (
date datetime default (datetime('now', '+2 hours')),
@@ -124,7 +124,6 @@ where not exists (
);
end;
-- Spellfix search example
with search_results as (
select word, score, f.rowid, f.*
from foodfix
@@ -134,7 +133,7 @@ with search_results as (
select rowid, food, score, date, description, amount, per100, energy
from search_results
group by food
order by score asc, date desc
order by score asc, date desc;
create index dailyIdx on food(strftime('%Y-%m-%d', date));
create index weeklyIdx on food(strftime('%Y-%W', date));