add postgres dump for tests
This commit is contained in:
parent
801b11e33f
commit
11b676446d
1 changed files with 25 additions and 0 deletions
25
tests/postgres_data.sql
Normal file
25
tests/postgres_data.sql
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
DROP TABLE IF EXISTS "table_truncate1";
|
||||
DROP SEQUENCE IF EXISTS table_truncate1_id_seq;
|
||||
CREATE SEQUENCE table_truncate1_id_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 CACHE 1;
|
||||
|
||||
CREATE TABLE "public"."table_truncate1" (
|
||||
"id" integer DEFAULT nextval('table_truncate1_id_seq') NOT NULL,
|
||||
CONSTRAINT "table_truncate1_pkey" PRIMARY KEY ("id")
|
||||
) WITH (oids = false);
|
||||
|
||||
INSERT INTO "table_truncate1" ("id") VALUES (1), (2), (3);
|
||||
|
||||
DROP TABLE IF EXISTS "table_truncate2";
|
||||
DROP SEQUENCE IF EXISTS table_truncate2_id_seq;
|
||||
CREATE SEQUENCE table_truncate2_id_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 CACHE 1;
|
||||
|
||||
CREATE TABLE "public"."table_truncate2" (
|
||||
"id" integer DEFAULT nextval('table_truncate2_id_seq') NOT NULL,
|
||||
"delete_me" boolean NOT NULL,
|
||||
CONSTRAINT "table_truncate2_pkey" PRIMARY KEY ("id")
|
||||
) WITH (oids = false);
|
||||
|
||||
INSERT INTO "table_truncate2" ("id", "delete_me") VALUES
|
||||
(1, 't'),
|
||||
(2, 't'),
|
||||
(3, 'f');
|
||||
Loading…
Add table
Add a link
Reference in a new issue