mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 18:47:33 +08:00 
			
		
		
		
	 09eacd8dc1
			
		
	
	09eacd8dc1
	
	
	
		
			
			* 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 column
		
			
				
	
	
		
			20 lines
		
	
	
		
			820 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			820 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| 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);
 |