Fixed test break.

This commit is contained in:
Qiang Xue
2015-02-15 22:44:42 -05:00
parent 7b5cdf041d
commit dd15857eda
4 changed files with 39 additions and 0 deletions

View File

@ -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');

View File

@ -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');

View File

@ -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');

View File

@ -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');