fix: correct lint errors in the generated sqlite schema
All checks were successful
CI / build-docker (push) Successful in 8s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 29s

This commit is contained in:
wispem-wantex 2025-12-12 22:11:03 -08:00
parent 89db9e14e2
commit d9df69eccf
2 changed files with 5 additions and 2 deletions

View File

@ -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"

View File

@ -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);