Migrate the rest of everything from rowid to id
This commit is contained in:
9
food.ddl
9
food.ddl
@@ -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(
|
||||
|
Reference in New Issue
Block a user