Fix some sql lint errors and bump the action version again

This commit is contained in:
Alessio 2024-11-17 20:13:23 -08:00
parent 916a0135aa
commit e2392efe40
2 changed files with 6 additions and 7 deletions

View File

@ -27,7 +27,7 @@ jobs:
run: golangci-lint run run: golangci-lint run
- name: Validate SQL schema - name: Validate SQL schema
uses: playfulpachyderm/sqlite-lint@v0.0.2 uses: playfulpachyderm/sqlite-lint@v0.0.3
with: with:
schema-file: pkg/db/schema.sql schema-file: pkg/db/schema.sql

View File

@ -5,7 +5,7 @@ PRAGMA foreign_keys = on;
-- ======= -- =======
create table db_version ( create table db_version (
version integer not null version integer primary key
) strict; ) strict;
insert into db_version values(0); insert into db_version values(0);
@ -93,8 +93,7 @@ create table iterations (rowid integer primary key,
unique(derived_recipe_id) unique(derived_recipe_id)
) strict; ) strict;
create table daily_logs (rowid integer primary key, -- create table daily_logs (
date integer not null unique, -- date integer not null unique,
-- computed_food_id integer references foods(rowid) not null
computed_food_id integer references foods(rowid) not null -- );
);