Skip to content

Commit ec97dfb

Browse files
committed
tweak fixtures to add more columns and add some initial for postgres/mysql
1 parent 6cea7e2 commit ec97dfb

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

tests/fixtures/mysql.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CREATE TABLE accounts (
2+
id INTEGER PRIMARY KEY AUTOINCREMENT,
3+
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
4+
name VARCHAR(255) NOT NULL,
5+
is_active BOOLEAN,
6+
score DOUBLE
7+
);

tests/fixtures/postgres.sql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CREATE TABLE accounts (
2+
id BIGSERIAL PRIMARY KEY,
3+
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
4+
name TEXT NOT NULL,
5+
is_active BOOLEAN,
6+
score DOUBLE PRECISION
7+
);
8+
9+
-- https://www.postgresql.org/docs/current/rowtypes.html#ROWTYPES-DECLARING
10+
CREATE TYPE inventory_item AS (
11+
name TEXT,
12+
supplier_id INT,
13+
price BIGINT
14+
);
8 KB
Binary file not shown.

0 commit comments

Comments
 (0)