Browse Source
* yiisoft#17597, pg_constraint.consrc removed in Postgres 12 * yiisoft#17597, load schema for partitioned tables (introduced in Postgres 10) * messed up with issue number * #yiisoft#17597 Postgres 12 support, support GENERATED AS IDENTITY columns * uncleared FileCache leads to falsy failures on subsequent test runs * moved .sql for postgres 10 and 12 to separate files, added ResetSequence test for GENERATED AS IDENTITY columntags/2.0.29
Evgeny
5 years ago
committed by
Alexander Makarov
9 changed files with 125 additions and 10 deletions
@ -0,0 +1,6 @@
|
||||
DROP TABLE IF EXISTS "partitioned" CASCADE; |
||||
|
||||
CREATE TABLE "partitioned" ( |
||||
city_id int not null, |
||||
logdate date not null |
||||
) PARTITION BY RANGE ("logdate"); |
@ -0,0 +1,19 @@
|
||||
DROP TABLE IF EXISTS "generated" CASCADE; |
||||
DROP TABLE IF EXISTS "item_12" CASCADE; |
||||
|
||||
CREATE TABLE "generated" ( |
||||
id_always int GENERATED ALWAYS AS IDENTITY, |
||||
id_primary int GENERATED ALWAYS AS IDENTITY primary key, |
||||
id_default int GENERATED BY DEFAULT AS IDENTITY |
||||
); |
||||
|
||||
CREATE TABLE "item_12" ( |
||||
id int GENERATED ALWAYS AS IDENTITY primary key, |
||||
name varchar(128) NOT NULL, |
||||
category_id integer NOT NULL references "category"(id) on UPDATE CASCADE on DELETE CASCADE |
||||
); |
||||
|
||||
INSERT INTO "item_12" (name, category_id) VALUES ('Agile Web Application Development with Yii1.1 and PHP5', 1); |
||||
INSERT INTO "item_12" (name, category_id) VALUES ('Yii 1.1 Application Development Cookbook', 1); |
||||
INSERT INTO "item_12" (name, category_id) VALUES ('Ice Age', 2); |
||||
INSERT INTO "item_12" (name, category_id) VALUES ('Toy Story', 2); |
Loading…
Reference in new issue