Migrate the rest of everything from rowid to id

This commit is contained in:
2024-10-25 16:37:37 +02:00
parent b89e27d5b4
commit 24546a4ef5
6 changed files with 36 additions and 37 deletions

View File

@@ -19,7 +19,7 @@ drop view if exists weightMonthly;
drop view if exists weightYearly;
create view weightView as
select rowid,
select id,
date,
round(weight, 2) as weight
from weight
@@ -152,7 +152,7 @@ drop view if exists foodYearly;
drop view if exists foodRecent;
create view foodView as
select rowid,
select id,
date,
food,
description,
@@ -198,8 +198,7 @@ group by strftime('%Y', date)
order by date desc;
create view foodRecent as
select rowid,
*
select *
from food
order by date desc
limit 10;
@@ -220,7 +219,7 @@ set per100 = coalesce(
limit 1
)
)
where rowid = new.rowid;
where id = new.id;
end;
create table settings(