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 (
|
create table items (
|
||||||
rowid integer primary key,
|
rowid integer primary key,
|
||||||
description text not null default ''
|
description text not null default ''
|
||||||
);
|
) strict;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Generate an item model and test file
|
# Generate an item model and test file
|
||||||
@ -44,5 +44,8 @@ go mod tidy
|
|||||||
# Run the tests
|
# Run the tests
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
|
# Run sqlite_lint
|
||||||
|
$gas sqlite_lint pkg/db/schema.sql
|
||||||
|
|
||||||
# Notify success in green
|
# Notify success in green
|
||||||
echo -e "\033[32mAll tests passed. Finished successfully.\033[0m"
|
echo -e "\033[32mAll tests passed. Finished successfully.\033[0m"
|
||||||
|
|||||||
@ -5,6 +5,6 @@ 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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user