fix: correct lint errors in the generated sqlite schema
This commit is contained in:
parent
89db9e14e2
commit
d9df69eccf
@ -33,7 +33,7 @@ cat >> pkg/db/schema.sql <<EOF
|
||||
create table items (
|
||||
rowid integer primary key,
|
||||
description text not null default ''
|
||||
);
|
||||
) strict;
|
||||
EOF
|
||||
|
||||
# Generate an item model and test file
|
||||
@ -44,5 +44,8 @@ go mod tidy
|
||||
# Run the tests
|
||||
go test ./...
|
||||
|
||||
# Run sqlite_lint
|
||||
$gas sqlite_lint pkg/db/schema.sql
|
||||
|
||||
# Notify success in green
|
||||
echo -e "\033[32mAll tests passed. Finished successfully.\033[0m"
|
||||
|
||||
@ -5,6 +5,6 @@ PRAGMA foreign_keys = on;
|
||||
-- =======
|
||||
|
||||
create table db_version (
|
||||
version integer not null
|
||||
version integer primary key
|
||||
) strict;
|
||||
insert into db_version values(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user