@@ -16,22 +16,22 @@ discard block |
||
16 | 16 | 'db' => [ |
17 | 17 | 'class' => \dmstr\console\controllers\MysqlController::class, |
18 | 18 | 'excludeTables' => [ |
19 | - getenv('DATABASE_TABLE_PREFIX') . 'auth_assignment', |
|
20 | - getenv('DATABASE_TABLE_PREFIX') . 'migration', |
|
21 | - getenv('DATABASE_TABLE_PREFIX') . 'user', |
|
22 | - getenv('DATABASE_TABLE_PREFIX') . 'profile', |
|
23 | - getenv('DATABASE_TABLE_PREFIX') . 'token', |
|
24 | - getenv('DATABASE_TABLE_PREFIX') . 'social_account', |
|
25 | - getenv('DATABASE_TABLE_PREFIX') . 'log', |
|
26 | - getenv('DATABASE_TABLE_PREFIX') . 'session', |
|
27 | - getenv('DATABASE_TABLE_PREFIX') . 'audit_data', |
|
28 | - getenv('DATABASE_TABLE_PREFIX') . 'audit_entry', |
|
29 | - getenv('DATABASE_TABLE_PREFIX') . 'audit_error', |
|
30 | - getenv('DATABASE_TABLE_PREFIX') . 'audit_javascript', |
|
31 | - getenv('DATABASE_TABLE_PREFIX') . 'audit_mail', |
|
32 | - getenv('DATABASE_TABLE_PREFIX') . 'audit_trail', |
|
33 | - getenv('DATABASE_TABLE_PREFIX') . 'dmstr_contact_log', |
|
34 | - getenv('DATABASE_TABLE_PREFIX') . 'queue_manager', |
|
19 | + getenv('DATABASE_TABLE_PREFIX').'auth_assignment', |
|
20 | + getenv('DATABASE_TABLE_PREFIX').'migration', |
|
21 | + getenv('DATABASE_TABLE_PREFIX').'user', |
|
22 | + getenv('DATABASE_TABLE_PREFIX').'profile', |
|
23 | + getenv('DATABASE_TABLE_PREFIX').'token', |
|
24 | + getenv('DATABASE_TABLE_PREFIX').'social_account', |
|
25 | + getenv('DATABASE_TABLE_PREFIX').'log', |
|
26 | + getenv('DATABASE_TABLE_PREFIX').'session', |
|
27 | + getenv('DATABASE_TABLE_PREFIX').'audit_data', |
|
28 | + getenv('DATABASE_TABLE_PREFIX').'audit_entry', |
|
29 | + getenv('DATABASE_TABLE_PREFIX').'audit_error', |
|
30 | + getenv('DATABASE_TABLE_PREFIX').'audit_javascript', |
|
31 | + getenv('DATABASE_TABLE_PREFIX').'audit_mail', |
|
32 | + getenv('DATABASE_TABLE_PREFIX').'audit_trail', |
|
33 | + getenv('DATABASE_TABLE_PREFIX').'dmstr_contact_log', |
|
34 | + getenv('DATABASE_TABLE_PREFIX').'queue_manager', |
|
35 | 35 | 'filefly_hashmap', # TODO: fix prefix in module |
36 | 36 | ], |
37 | 37 | ], |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | 'class' => \yii\log\FileTarget::class, |
77 | 77 | 'logFile' => '@runtime/logs/console.log', |
78 | 78 | //'levels' => ['info', 'trace'], |
79 | - 'logVars' => [], |
|
79 | + 'logVars' => [ ], |
|
80 | 80 | 'dirMode' => YII_ENV_DEV ? 0777 : 0775, |
81 | 81 | 'fileMode' => YII_ENV_DEV ? 0666 : null, |
82 | 82 | 'enabled' => YII_DEBUG && !YII_ENV_TEST, |
@@ -84,14 +84,14 @@ discard block |
||
84 | 84 | ], |
85 | 85 | ], |
86 | 86 | 'dbSystem' => [ |
87 | - 'on ' . yii\db\Connection::EVENT_AFTER_OPEN => function ($event) { |
|
87 | + 'on '.yii\db\Connection::EVENT_AFTER_OPEN => function($event) { |
|
88 | 88 | if ($event->sender->driverName === 'mysql') { |
89 | 89 | // set session wait_timeout for this connection to mysql default value to prevent connection-timeouts |
90 | 90 | // in e.g. audit module while exec long-running CLI processes |
91 | 91 | $event->sender->createCommand( |
92 | 92 | 'SET SESSION wait_timeout = :timeout;', |
93 | 93 | [ |
94 | - ':timeout' => (int)getenv('DB_ENV_MYSQL_CLI_WAIT_TIMEOUT') ?: 28800 |
|
94 | + ':timeout' => (int) getenv('DB_ENV_MYSQL_CLI_WAIT_TIMEOUT') ?: 28800 |
|
95 | 95 | ] |
96 | 96 | )->execute(); |
97 | 97 | } |