diff --git a/tests/fixtures/mysql.sql b/tests/fixtures/mysql.sql new file mode 100644 index 000000000..60f81ccd0 --- /dev/null +++ b/tests/fixtures/mysql.sql @@ -0,0 +1,7 @@ +CREATE TABLE accounts ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + name VARCHAR(255) NOT NULL, + is_active BOOLEAN, + score DOUBLE +); diff --git a/tests/fixtures/postgres.sql b/tests/fixtures/postgres.sql new file mode 100644 index 000000000..ae8a6cb09 --- /dev/null +++ b/tests/fixtures/postgres.sql @@ -0,0 +1,14 @@ +CREATE TABLE accounts ( + id BIGSERIAL PRIMARY KEY, + created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), + name TEXT NOT NULL, + is_active BOOLEAN, + score DOUBLE PRECISION +); + +-- https://www.postgresql.org/docs/current/rowtypes.html#ROWTYPES-DECLARING +CREATE TYPE inventory_item AS ( + name TEXT, + supplier_id INT, + price BIGINT +); diff --git a/tests/fixtures/test-db.sqlite b/tests/fixtures/sqlite.sqlite similarity index 64% rename from tests/fixtures/test-db.sqlite rename to tests/fixtures/sqlite.sqlite index 513e8e9d1..ac46cf53d 100644 Binary files a/tests/fixtures/test-db.sqlite and b/tests/fixtures/sqlite.sqlite differ