Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
10 changed files
with
225 additions
and
167 deletions.
There are no files selected for viewing
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
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,67 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
return [ | ||
/** | ||
* Database connection instance. For example, MySQL connection: | ||
* | ||
* ```php | ||
* 'db' => new \Yiisoft\Db\Mysql\Connection( | ||
* new \Yiisoft\Db\Mysql\Driver('mysql:host=mysql;dbname=mydb', 'user', 'q1w2e3r4'), | ||
* new \Yiisoft\Db\Cache\SchemaCache(new \Yiisoft\Cache\ArrayCache()), | ||
* ), | ||
* ``` | ||
* | ||
* @see https://github.com/yiisoft/db/blob/master/docs/en/README.md#create-connection | ||
*/ | ||
'db' => null, | ||
|
||
/** | ||
* Namespace of new migration classes. | ||
*/ | ||
'createNamespace' => '', | ||
|
||
/** | ||
* List of namespaces containing the migration classes. | ||
*/ | ||
'updateNamespaces' => [], | ||
|
||
/** | ||
* Path to the directory for new migration classes. This path is used when you are using migrations without | ||
* namespaces. | ||
*/ | ||
'createPath' => '', | ||
|
||
/** | ||
* List of directories containing the migration classes. Migration classes located at this paths should be declared | ||
* without a namespace. Use "updateNamespaces" option in case you are using namespaced migrations. | ||
*/ | ||
'updatePaths' => [], | ||
|
||
/** | ||
* The name of the database table for storing migration history information. | ||
*/ | ||
'historyTable' => '{{%migration}}', | ||
|
||
/** | ||
* The maximum length of a migration name. | ||
*/ | ||
'migrationNameLimit' => 180, | ||
|
||
/** | ||
* Indicates whether the table names generated should consider the `tablePrefix` setting of the DB connection. | ||
* For example, if the table name is `post` the generator will return `{{%post}}`. | ||
*/ | ||
'useTablePrefix' => true, | ||
|
||
/** | ||
* PSR-11 compatible DI container that used for automatic dependencies resolving when creating migration instances. | ||
*/ | ||
'container' => null, | ||
|
||
/** | ||
* The maximum length of a SQL output in console. | ||
*/ | ||
'maxSqlOutputLength' => null, | ||
]; |
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 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 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 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
Oops, something went wrong.