mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-08 17:07:33 +08:00
Fixed test break.
This commit is contained in:
@ -124,6 +124,15 @@ CREATE TABLE "composite_fk" (
|
||||
CONSTRAINT "FK_composite_fk_order_item" FOREIGN KEY ("order_id","item_id") REFERENCES "order_item" ("order_id","item_id") ON DELETE CASCADE
|
||||
);
|
||||
|
||||
CREATE TABLE "animal" (
|
||||
"id" int(11) NOT NULL AUTO_INCREMENT,
|
||||
"type" varchar(255) NOT NULL,
|
||||
PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
INSERT INTO "animal" ("type") VALUES ('yiiunit\data\ar\Cat');
|
||||
INSERT INTO "animal" ("type") VALUES ('yiiunit\data\ar\Dog');
|
||||
|
||||
INSERT INTO "profile" (description) VALUES ('profile customer 1');
|
||||
INSERT INTO "profile" (description) VALUES ('profile customer 3');
|
||||
|
||||
|
||||
@ -105,6 +105,17 @@ CREATE TABLE [dbo].[type] (
|
||||
[bool_col2] [tinyint] DEFAULT '1'
|
||||
);
|
||||
|
||||
CREATE TABLE [dbo].[animal] (
|
||||
[id] [int] IDENTITY(1,1) NOT NULL,
|
||||
[type] [varchar](255) NOT NULL,
|
||||
CONSTRAINT [PK_animal] PRIMARY KEY CLUSTERED (
|
||||
[id] ASC
|
||||
) ON [PRIMARY]
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO [dbo].[animal] (type) VALUES ('yiiunit\data\ar\Cat');
|
||||
INSERT INTO [dbo].[animal] (type) VALUES ('yiiunit\data\ar\Dog');
|
||||
|
||||
INSERT INTO [dbo].[profile] ([description]) VALUES ('profile customer 1');
|
||||
INSERT INTO [dbo].[profile] ([description]) VALUES ('profile customer 3');
|
||||
|
||||
|
||||
@ -123,6 +123,16 @@ CREATE TABLE "bool_values" (
|
||||
default_false boolean not null default false
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE `animal` (
|
||||
id serial primary key,
|
||||
type varchar(255) not null
|
||||
);
|
||||
|
||||
INSERT INTO "animal" (type) VALUES ('yiiunit\data\ar\Cat');
|
||||
INSERT INTO "animal" (type) VALUES ('yiiunit\data\ar\Dog');
|
||||
|
||||
|
||||
INSERT INTO "profile" (description) VALUES ('profile customer 1');
|
||||
INSERT INTO "profile" (description) VALUES ('profile customer 3');
|
||||
|
||||
|
||||
@ -108,6 +108,15 @@ CREATE TABLE "type" (
|
||||
ts_default TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
CREATE TABLE "animal" (
|
||||
id INTEGER NOT NULL,
|
||||
type VARCHAR(255) NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
INSERT INTO "animal" ("type") VALUES ('yiiunit\data\ar\Cat');
|
||||
INSERT INTO "animal" ("type") VALUES ('yiiunit\data\ar\Dog');
|
||||
|
||||
INSERT INTO "profile" (description) VALUES ('profile customer 1');
|
||||
INSERT INTO "profile" (description) VALUES ('profile customer 3');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user