| @@ 102-114 (lines=13) @@ | ||
| 99 | ); |
|
| 100 | } |
|
| 101 | ||
| 102 | private function getDbConfigFromSession() |
|
| 103 | { |
|
| 104 | return Yii::$app->session->get('db-config', [ |
|
| 105 | 'db_host' => 'localhost', |
|
| 106 | 'db_name' => 'dotplant2', |
|
| 107 | 'username' => 'root', |
|
| 108 | 'password' => '', |
|
| 109 | 'enableSchemaCache' => true, |
|
| 110 | 'schemaCacheDuration' => 86400, |
|
| 111 | 'schemaCache' => 'cache', |
|
| 112 | 'connectionOk' => false, |
|
| 113 | ]); |
|
| 114 | } |
|
| 115 | ||
| 116 | public function actionMigrate() |
|
| 117 | { |
|
| @@ 221-233 (lines=13) @@ | ||
| 218 | return $this->db; |
|
| 219 | } |
|
| 220 | ||
| 221 | private function getDbConfigFromSession() |
|
| 222 | { |
|
| 223 | return Yii::$app->session->get('db-config', [ |
|
| 224 | 'db_host' => 'localhost', |
|
| 225 | 'db_name' => 'dotplant2', |
|
| 226 | 'username' => 'root', |
|
| 227 | 'password' => '', |
|
| 228 | 'enableSchemaCache' => true, |
|
| 229 | 'schemaCacheDuration' => 86400, |
|
| 230 | 'schemaCache' => 'cache', |
|
| 231 | 'connectionOk' => false, |
|
| 232 | ]); |
|
| 233 | } |
|
| 234 | } |
|
| 235 | ||