generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adopt last discussion. * Apply fixes from StyleCI --------- Co-authored-by: StyleCI Bot <bot@styleci.io>
- Loading branch information
1 parent
d5f3e87
commit 83d712f
Showing
39 changed files
with
867 additions
and
783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE `yii_message` DROP FOREIGN KEY `FK_yii_source_message_yii_message`; | ||
DROP TABLE `yii_message`; | ||
DROP TABLE `yii_source_message`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE `yii_source_message` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, | ||
`category` varchar(255), | ||
`message_id` text, | ||
`comment` text | ||
); | ||
CREATE TABLE `yii_message` ( | ||
`id` int(11) NOT NULL, | ||
`locale` varchar(16) NOT NULL, | ||
`translation` text, | ||
CONSTRAINT `PK_yii_message_id_locale` PRIMARY KEY (`id`, `locale`), | ||
CONSTRAINT `FK_yii_source_message_yii_message` FOREIGN KEY (`id`) REFERENCES `yii_source_message` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT | ||
); | ||
CREATE INDEX `IDX_yii_source_message_category` ON `yii_source_message` (`category`); | ||
CREATE INDEX `IDX_yii_message_locale` ON `yii_message` (`locale`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* STATEMENTS */ | ||
ALTER TABLE "yii_message" DROP CONSTRAINT "FK_yii_source_message_yii_message"; | ||
DROP TRIGGER "yii_message_TRG"; | ||
DROP SEQUENCE "yii_message_SEQ"; | ||
DROP TABLE "yii_message"; | ||
DROP TRIGGER "yii_source_message_TRG"; | ||
DROP SEQUENCE "yii_source_message_SEQ"; | ||
DROP TABLE "yii_source_message"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* STATEMENTS */ | ||
CREATE TABLE "yii_source_message" ( | ||
"id" NUMBER(10) NOT NULL PRIMARY KEY, | ||
"category" VARCHAR2(255), | ||
"message_id" CLOB, | ||
"comment" CLOB | ||
); | ||
CREATE TABLE "yii_message" ( | ||
"id" NUMBER(10) NOT NULL, | ||
"locale" VARCHAR2(16) NOT NULL, | ||
"translation" CLOB, | ||
CONSTRAINT "PK_yii_message_id_locale" PRIMARY KEY ("id", "locale"), | ||
CONSTRAINT "FK_yii_source_message_yii_message" FOREIGN KEY ("id") REFERENCES "yii_source_message" ("id") ON DELETE CASCADE | ||
); | ||
CREATE INDEX "IDX_yii_source_message_category" ON "yii_source_message" ("category"); | ||
CREATE INDEX "IDX_yii_message_locale" ON "yii_message" ("locale"); | ||
CREATE SEQUENCE "yii_source_message_SEQ" START WITH 1 INCREMENT BY 1 NOMAXVALUE; | ||
CREATE SEQUENCE "yii_message_SEQ" START WITH 1 INCREMENT BY 1 NOMAXVALUE; | ||
|
||
/* TRIGGERS */ | ||
CREATE TRIGGER "yii_source_message_TRG" BEFORE INSERT ON "yii_source_message" FOR EACH ROW BEGIN <<COLUMN_SEQUENCES>> BEGIN | ||
IF INSERTING AND :NEW."id" IS NULL THEN SELECT "yii_source_message_SEQ".NEXTVAL INTO :NEW."id" FROM SYS.DUAL; END IF; | ||
END COLUMN_SEQUENCES; | ||
END; | ||
/ | ||
CREATE TRIGGER "yii_message_TRG" BEFORE INSERT ON "yii_message" FOR EACH ROW BEGIN <<COLUMN_SEQUENCES>> BEGIN | ||
IF INSERTING AND :NEW."id" IS NULL THEN SELECT "yii_message_SEQ".NEXTVAL INTO :NEW."id" FROM SYS.DUAL; END IF; | ||
END COLUMN_SEQUENCES; | ||
END; | ||
/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE "yii_message" DROP CONSTRAINT "FK_yii_source_message_yii_message"; | ||
DROP TABLE "yii_message"; | ||
DROP TABLE "yii_source_message"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE "yii_source_message" ( | ||
"id" serial NOT NULL PRIMARY KEY, | ||
"category" varchar(255), | ||
"message_id" text, | ||
"comment" text | ||
); | ||
CREATE TABLE "yii_message" ( | ||
"id" integer NOT NULL, | ||
"locale" varchar(16) NOT NULL, | ||
"translation" text, | ||
CONSTRAINT "PK_yii_message_id_locale" PRIMARY KEY ("id", "locale"), | ||
CONSTRAINT "FK_yii_source_message_yii_message" FOREIGN KEY ("id") REFERENCES "yii_source_message" ("id") ON DELETE CASCADE ON UPDATE RESTRICT | ||
); | ||
CREATE INDEX "IDX_yii_source_message_category" ON "yii_source_message" ("category"); | ||
CREATE INDEX "IDX_yii_message_locale" ON "yii_message" ("locale"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DROP TABLE `yii_message`; | ||
DROP TABLE `yii_source_message`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CREATE TABLE `yii_source_message` ( | ||
`id` integer NOT NULL, | ||
`category` varchar(255), | ||
`message_id` text, | ||
`comment` text, | ||
CONSTRAINT `PK_yii_source_message` PRIMARY KEY (`id`) | ||
); | ||
CREATE TABLE `yii_message` ( | ||
`id` integer NOT NULL, | ||
`locale` varchar(16) NOT NULL, | ||
`translation` text, | ||
PRIMARY KEY (`id`, `locale`), | ||
CONSTRAINT `FK_yii_message_yii_source_message` FOREIGN KEY (`id`) REFERENCES `yii_source_message` (`id`) ON DELETE CASCADE | ||
); | ||
CREATE INDEX `IDX_yii_source_message_category` ON `yii_source_message` (`category`); | ||
CREATE INDEX `IDX_yii_message_locale` ON `yii_message` (`locale`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE [yii_message] DROP CONSTRAINT [FK_yii_source_message_yii_message]; | ||
DROP TABLE [yii_message]; | ||
DROP TABLE [yii_source_message]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE [yii_source_message] ( | ||
[id] int IDENTITY PRIMARY KEY, | ||
[category] nvarchar(255), | ||
[message_id] nvarchar(max), | ||
[comment] nvarchar(max) | ||
); | ||
CREATE TABLE [yii_message] ( | ||
[id] int NOT NULL, | ||
[locale] nvarchar(16) NOT NULL, | ||
[translation] nvarchar(max), | ||
CONSTRAINT [PK_yii_message_id_locale] PRIMARY KEY ([id], [locale]), | ||
CONSTRAINT [FK_yii_source_message_yii_message] FOREIGN KEY ([id]) REFERENCES [yii_source_message] ([id]) ON DELETE CASCADE ON UPDATE NO ACTION | ||
); | ||
CREATE INDEX [IDX_yii_source_message_category] ON [yii_source_message] ([category]); | ||
CREATE INDEX [IDX_yii_message_locale] ON [yii_message] ([locale]); |
Oops, something went wrong.