wispem-wantex dbb43567d7
Some checks failed
Build / build (push) Failing after 7m1s
Build / test-action (push) Successful in 3m7s
Fix a bug where non-rowid primary keys would be identified as 'not indexed' for foreign key indexes rule
2025-07-31 22:35:37 -07:00

19 lines
495 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 (
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;