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. * Fix error typo. * [ci-review] Apply changes from Rector action. * Adjust `README.md`. * Fix all test for all versions PHP. * Fix mutation. * Fix minor corrections. * Fix minor correction. --------- Co-authored-by: rector-bot <rector@yiiframework.com>
- Loading branch information
1 parent
c4e227c
commit af2d3ee
Showing
39 changed files
with
931 additions
and
856 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 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 @@ | ||
DROP TABLE `yii_log`; |
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,11 @@ | ||
CREATE TABLE `yii_log` ( | ||
`id` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`level` varchar(16), | ||
`category` varchar(255), | ||
`log_time` timestamp(6) DEFAULT CURRENT_TIMESTAMP(6), | ||
`message` text, | ||
CONSTRAINT `PK_yii_log` PRIMARY KEY (`id`) | ||
); | ||
CREATE INDEX `IDX_yii_log-category` ON `yii_log` (`category`); | ||
CREATE INDEX `IDX_yii_log-level` ON `yii_log` (`level`); | ||
CREATE INDEX `IDX_yii_log-time` ON `yii_log` (`log_time`); |
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,4 @@ | ||
/* STATEMENTS */ | ||
DROP TRIGGER "yii_log_TRG"; | ||
DROP SEQUENCE "yii_log_SEQ"; | ||
DROP TABLE "yii_log"; |
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,20 @@ | ||
/* STATEMENTS */ | ||
CREATE TABLE "yii_log" ( | ||
"id" NUMBER(20) NOT NULL, | ||
"level" VARCHAR2(16), | ||
"category" VARCHAR2(255), | ||
"log_time" TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
"message" CLOB, | ||
CONSTRAINT "PK_yii_log" PRIMARY KEY ("id") | ||
); | ||
CREATE SEQUENCE "yii_log_SEQ" START WITH 1 INCREMENT BY 1 NOMAXVALUE; | ||
CREATE INDEX "IDX_yii_log-category" ON "yii_log" ("category"); | ||
CREATE INDEX "IDX_yii_log-level" ON "yii_log" ("level"); | ||
CREATE INDEX "IDX_yii_log-time" ON "yii_log" ("log_time"); | ||
|
||
/* TRIGGERS */ | ||
CREATE TRIGGER "yii_log_TRG" BEFORE INSERT ON "yii_log" FOR EACH ROW BEGIN <<COLUMN_SEQUENCES>> BEGIN | ||
IF INSERTING AND :NEW."id" IS NULL THEN SELECT "yii_log_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 @@ | ||
DROP TABLE "yii_log"; |
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,11 @@ | ||
CREATE TABLE "yii_log" ( | ||
"id" BIGSERIAL NOT NULL, | ||
"level" varchar(16), | ||
"category" varchar(255), | ||
"log_time" timestamp(6) DEFAULT CURRENT_TIMESTAMP, | ||
"message" text, | ||
CONSTRAINT "PK_yii_log" PRIMARY KEY ("id") | ||
); | ||
CREATE INDEX "IDX_yii_log-category" ON "yii_log" ("category"); | ||
CREATE INDEX "IDX_yii_log-level" ON "yii_log" ("level"); | ||
CREATE INDEX "IDX_yii_log-time" ON "yii_log" ("log_time"); |
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 @@ | ||
DROP TABLE `yii_log`; |
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,11 @@ | ||
CREATE TABLE `yii_log` ( | ||
`id` integer, | ||
`level` varchar(16), | ||
`category` varchar(255), | ||
`log_time` timestamp DEFAULT (STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW', 'UTC')), | ||
`message` text, | ||
CONSTRAINT `PK_yii_log` PRIMARY KEY (`id`) | ||
); | ||
CREATE INDEX `IDX_yii_log-category` ON `yii_log` (`category`); | ||
CREATE INDEX `IDX_yii_log-level` ON `yii_log` (`level`); | ||
CREATE INDEX `IDX_yii_log-time` ON `yii_log` (`log_time`); |
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 @@ | ||
DROP TABLE [yii_log]; |
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,11 @@ | ||
CREATE TABLE [yii_log] ( | ||
[id] bigint NOT NULL IDENTITY, | ||
[level] nvarchar(16), | ||
[category] nvarchar(255), | ||
[log_time] DATETIME2(6) DEFAULT CURRENT_TIMESTAMP, | ||
[message] nvarchar(max), | ||
CONSTRAINT [PK_yii_log] PRIMARY KEY ([id]) | ||
); | ||
CREATE INDEX [IDX_yii_log-category] ON [yii_log] ([category]); | ||
CREATE INDEX [IDX_yii_log-level] ON [yii_log] ([level]); | ||
CREATE INDEX [IDX_yii_log-time] ON [yii_log] ([log_time]); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.