Add sqlite-lint to 'pkg/schema/lint'
Some checks failed
CI / release-test (push) Failing after 10s

This commit is contained in:
2025-08-23 18:54:00 -07:00
parent a4de16a1dd
commit 8b422ada11
8 changed files with 299 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
create table stuff (
rowid integer primary key,
data text not null,
amount integer not null
) strict;
create index index_stuff_amount on stuff (amount);
create table stuff2 (
weird_pk integer primary key,
label text not null unique,
stuff_id integer references stuff(rowid),
alternative_stuff_id integer references stuff(amount)
) strict;
create table stuff3 (
weird_pk3 integer primary key,
stuff2_id integer not null references stuff2(weird_pk)
) strict;