Implement DB auto init

This commit is contained in:
2024-08-10 01:03:11 +02:00
parent 35ca7620f4
commit 6d684b34ef
3 changed files with 58 additions and 1 deletions

View File

@@ -5,7 +5,6 @@ create table weight (
weight real not null
);
create index weightDateIdx on weight(date);
create index weightDailyIdx on weight(strftime('%Y-%m-%d', date));
create index weightWeeklyIdx on weight(strftime('%Y-%W', date));