Fix some sql lint errors and bump the action version again
This commit is contained in:
parent
916a0135aa
commit
e2392efe40
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
||||
run: golangci-lint run
|
||||
|
||||
- name: Validate SQL schema
|
||||
uses: playfulpachyderm/sqlite-lint@v0.0.2
|
||||
uses: playfulpachyderm/sqlite-lint@v0.0.3
|
||||
with:
|
||||
schema-file: pkg/db/schema.sql
|
||||
|
||||
|
@ -5,7 +5,7 @@ PRAGMA foreign_keys = on;
|
||||
-- =======
|
||||
|
||||
create table db_version (
|
||||
version integer not null
|
||||
version integer primary key
|
||||
) strict;
|
||||
insert into db_version values(0);
|
||||
|
||||
@ -93,8 +93,7 @@ create table iterations (rowid integer primary key,
|
||||
unique(derived_recipe_id)
|
||||
) strict;
|
||||
|
||||
create table daily_logs (rowid integer primary key,
|
||||
date integer not null unique,
|
||||
|
||||
computed_food_id integer references foods(rowid) not null
|
||||
);
|
||||
-- create table daily_logs (
|
||||
-- date integer not null unique,
|
||||
-- computed_food_id integer references foods(rowid) not null
|
||||
-- );
|
||||
|
Loading…
x
Reference in New Issue
Block a user