mirror of
https://gitee.com/ShopeX/ECShopX
synced 2026-05-13 01:45:56 +08:00
92 lines
3.6 KiB
PHP
92 lines
3.6 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Entity Manager Migrations Configuration
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Each entity manager can have a custom migration configuration. Provide
|
|
| the name of the entity manager as the key, then duplicate the settings.
|
|
| This will allow generating custom migrations per EM instance and not have
|
|
| collisions when executing them.
|
|
|
|
|
*/
|
|
'default' => [
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Migration Repository Table
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This table keeps track of all the migrations that have already run for
|
|
| your application. Using this information, we can determine which of
|
|
| the migrations on disk haven't actually been run in the database.
|
|
|
|
|
*/
|
|
'table' => 'migrations',
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Migration Directory
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This directory is where all migrations will be stored for this entity
|
|
| manager. Use different directories for each entity manager.
|
|
|
|
|
*/
|
|
'directory' => database_path('migrations'),
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Migration Organize Directory
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Organize migrations file by directory.
|
|
| Possible values: "year", "year_and_month" and false
|
|
|
|
|
| false:
|
|
| directory/
|
|
| "year":
|
|
| directory/2020/
|
|
| "year_and_month":
|
|
| directory/2020/01/
|
|
|
|
|
*/
|
|
'organize_migrations' => false,
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Migration Namespace
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This namespace will be used on all migrations. To prevent collisions, add
|
|
| the entity manager name (connection name).
|
|
|
|
|
*/
|
|
'namespace' => 'Database\\Migrations',
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Schema Filter
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Tables which are filtered by Regular Expression. You optionally
|
|
| exclude or limit to certain tables. The default will
|
|
| filter all tables.
|
|
|
|
|
| 使用负向先行断言来排除特定表:
|
|
| (?!table1|table2|pattern) 表示不匹配指定的表名或模式
|
|
|
|
|
*/
|
|
'schema' => [
|
|
'filter' => '/^(?!password_resets|failed_jobs|.*_lang_enCN|.*_lang_zhCN|.*_lang_encn|.*_lang_zhcn|.*_lang_[a-z]{2}[A-Z]{2}|outside_item_multi_lang_mod_lang_.*|item_multi_lang_mod_lang_.*).*$/'
|
|
],
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Migration Version Column Length
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| The length for the version column in the migrations table.
|
|
|
|
|
*/
|
|
'version_column_length' => 14
|
|
],
|
|
];
|