From a6cbbd3b390fdc5b2713e20e08789dca3e926de0 Mon Sep 17 00:00:00 2001 From: wispem-wantex Date: Sat, 10 Jan 2026 17:06:28 -0800 Subject: [PATCH] tests: add test files for previous commit --- pkg/schema/lint/test_schemas/failure-missing-rowid.sql | 3 +++ pkg/schema/lint/test_schemas/failure-non-integer-rowid.sql | 4 ++++ .../lint/test_schemas/failure-non-primary-key-rowid.sql | 4 ++++ .../lint/test_schemas/failure-rowid-on-without-rowid.sql | 4 ++++ 4 files changed, 15 insertions(+) create mode 100644 pkg/schema/lint/test_schemas/failure-missing-rowid.sql create mode 100644 pkg/schema/lint/test_schemas/failure-non-integer-rowid.sql create mode 100644 pkg/schema/lint/test_schemas/failure-non-primary-key-rowid.sql create mode 100644 pkg/schema/lint/test_schemas/failure-rowid-on-without-rowid.sql diff --git a/pkg/schema/lint/test_schemas/failure-missing-rowid.sql b/pkg/schema/lint/test_schemas/failure-missing-rowid.sql new file mode 100644 index 0000000..935d0a8 --- /dev/null +++ b/pkg/schema/lint/test_schemas/failure-missing-rowid.sql @@ -0,0 +1,3 @@ +create table missing_rowid ( + a integer primary key +) strict; diff --git a/pkg/schema/lint/test_schemas/failure-non-integer-rowid.sql b/pkg/schema/lint/test_schemas/failure-non-integer-rowid.sql new file mode 100644 index 0000000..0c113d8 --- /dev/null +++ b/pkg/schema/lint/test_schemas/failure-non-integer-rowid.sql @@ -0,0 +1,4 @@ +create table non_integer_rowid ( + rowid text primary key, + a integer not null +) strict; diff --git a/pkg/schema/lint/test_schemas/failure-non-primary-key-rowid.sql b/pkg/schema/lint/test_schemas/failure-non-primary-key-rowid.sql new file mode 100644 index 0000000..9da11a5 --- /dev/null +++ b/pkg/schema/lint/test_schemas/failure-non-primary-key-rowid.sql @@ -0,0 +1,4 @@ +create table withrowidbutnotprimarykey ( + rowid integer not null, + a integer primary key +) strict; diff --git a/pkg/schema/lint/test_schemas/failure-rowid-on-without-rowid.sql b/pkg/schema/lint/test_schemas/failure-rowid-on-without-rowid.sql new file mode 100644 index 0000000..0bf4129 --- /dev/null +++ b/pkg/schema/lint/test_schemas/failure-rowid-on-without-rowid.sql @@ -0,0 +1,4 @@ +create table weirdrowid ( + rowid integer primary key, + a integer not null +) strict, without rowid;