Commit 42ca4bb9 by Alexander Makarov

Fixed `yii\log\DbTarget` migration and SQLs to use float column for log_time

parent a79828d1
...@@ -65,7 +65,7 @@ class m141106_185632_log_init extends Migration ...@@ -65,7 +65,7 @@ class m141106_185632_log_init extends Migration
'id' => Schema::TYPE_BIGPK, 'id' => Schema::TYPE_BIGPK,
'level' => Schema::TYPE_INTEGER, 'level' => Schema::TYPE_INTEGER,
'category' => Schema::TYPE_STRING, 'category' => Schema::TYPE_STRING,
'log_time' => Schema::TYPE_INTEGER, 'log_time' => Schema::TYPE_FLOAT,
'prefix' => Schema::TYPE_TEXT, 'prefix' => Schema::TYPE_TEXT,
'message' => Schema::TYPE_TEXT, 'message' => Schema::TYPE_TEXT,
], $tableOptions); ], $tableOptions);
......
...@@ -19,7 +19,7 @@ create table [log] ...@@ -19,7 +19,7 @@ create table [log]
[id] bigint IDENTITY PRIMARY KEY, [id] bigint IDENTITY PRIMARY KEY,
[level] integer, [level] integer,
[category] varchar(255), [category] varchar(255),
[log_time] integer, [log_time] float,
[prefix] text, [prefix] text,
[message] text [message] text
); );
......
...@@ -19,7 +19,7 @@ create table `log` ...@@ -19,7 +19,7 @@ create table `log`
`id` bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`level` integer, `level` integer,
`category` varchar(255), `category` varchar(255),
`log_time` integer, `log_time` float,
`prefix` text, `prefix` text,
`message` text, `message` text,
key `idx_log_level` (`level`), key `idx_log_level` (`level`),
......
...@@ -19,7 +19,7 @@ create table "log" ...@@ -19,7 +19,7 @@ create table "log"
"id" number(20) NOT NULL PRIMARY KEY, "id" number(20) NOT NULL PRIMARY KEY,
"level" integer, "level" integer,
"category" varchar(255), "category" varchar(255),
"log_time" integer, "log_time" float,
"prefix" text, "prefix" text,
"message" text, "message" text,
key "idx_log_level" ("level"), key "idx_log_level" ("level"),
......
...@@ -19,7 +19,7 @@ create table "log" ...@@ -19,7 +19,7 @@ create table "log"
"id" bigserial NOT NULL PRIMARY KEY, "id" bigserial NOT NULL PRIMARY KEY,
"level" integer, "level" integer,
"category" varchar(255), "category" varchar(255),
"log_time" integer, "log_time" real,
"prefix" text, "prefix" text,
"message" text "message" text
); );
......
...@@ -19,7 +19,7 @@ create table "log" ...@@ -19,7 +19,7 @@ create table "log"
"id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "id" integer PRIMARY KEY AUTOINCREMENT NOT NULL,
"level" integer, "level" integer,
"category" varchar(255), "category" varchar(255),
"log_time" integer, "log_time" float,
"prefix" text, "prefix" text,
"message" text "message" text
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment