gas-stack/pkg/schema/lint/test_schemas/failure-has-ints.sql
wispem-wantex 2ac9d8e775
Some checks failed
CI / build-docker (push) Successful in 7s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Failing after 15s
sqlite_lint: add lint checks for rowid and without rowid
2026-01-10 17:04:27 -08:00

14 lines
361 B
SQL

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 (
rowid integer primary key,
label text not null unique,
stuff_id int references stuff(rowid),
alternative_stuff_id integer references stuff(amount)
) strict;