mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-13 22:06:51 +08:00
add comment control methods
This commit is contained in:
@ -20,6 +20,7 @@ DROP TABLE IF EXISTS "bool_values" CASCADE;
|
||||
DROP TABLE IF EXISTS "animal" CASCADE;
|
||||
DROP TABLE IF EXISTS "default_pk" CASCADE;
|
||||
DROP TABLE IF EXISTS "document" CASCADE;
|
||||
DROP TABLE IF EXISTS "comment" CASCADE;
|
||||
DROP VIEW IF EXISTS "animal_view";
|
||||
DROP SCHEMA IF EXISTS "schema1" CASCADE;
|
||||
DROP SCHEMA IF EXISTS "schema2" CASCADE;
|
||||
@ -154,6 +155,12 @@ CREATE TABLE "document" (
|
||||
version integer not null default 0
|
||||
);
|
||||
|
||||
CREATE TABLE "comment" (
|
||||
id serial primary key,
|
||||
name varchar(255) not null,
|
||||
message text not null
|
||||
);
|
||||
|
||||
CREATE VIEW "animal_view" AS SELECT * FROM "animal";
|
||||
|
||||
INSERT INTO "animal" (type) VALUES ('yiiunit\data\ar\Cat');
|
||||
|
Reference in New Issue
Block a user