File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
plugins/wpgraphql-logging/src/Logger/Database Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ public static function get_schema(): string {
259259 return "
260260 CREATE TABLE {$ table_name } (
261261 id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
262- channel VARCHAR(191 ) NOT NULL,
262+ channel VARCHAR(100 ) NOT NULL,
263263 level SMALLINT UNSIGNED NOT NULL,
264264 level_name VARCHAR(50) NOT NULL,
265265 message LONGTEXT NOT NULL,
@@ -270,7 +270,8 @@ public static function get_schema(): string {
270270 INDEX channel_index (channel),
271271 INDEX level_name_index (level_name),
272272 INDEX level_index (level),
273- INDEX datetime_index (datetime)
273+ INDEX datetime_index (datetime),
274+ INDEX datetime_level_index (datetime, level)
274275 ) {$ charset_collate };
275276 " ;
276277 }
You can’t perform that action at this time.
0 commit comments