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;