fix: correct lint errors in the generated sqlite schema
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user