fond-of-oryx/propel-pre-migration
最新稳定版本:1.0.0
Composer 安装命令:
composer require fond-of-oryx/propel-pre-migration
包简介
Propel Pre Migration Bundle
README 文档
README
Installation
composer require fond-of-oryx/propel-pre-migration
Configuration
Register PropelPreMigrationConsole in Pyz\Zed\Console\ConsoleDependencyProvider
Usage
The default command is ./vendor/bin/console propel-pre-migrate:migrate. On usage the command will check data/pre-migrations directory for *.sql files. Those files will be filtered for files with following naming #\d{4}\d{1,2}\d{1,2}_\d{1,3}.sql$# example: 20230908_01.sql and execute the filtered files. The filtering for name pattern could be overwritten in config with (GLOB_SQL_FILE_PATTERN_DEFAULT)
The file name of successfuly migrated files will be saved to table foo_propel_pre_migration in db. Files listed in this table will be ignored.
You can also execute single / specific files by name
./vendor/bin/console propel-pre-migrate:migrate -f file1.sql or ./vendor/bin/console propel-pre-migrate:migrate -f file1.sql,file2.sql,..fileN.sql
统计信息
- 总下载量: 744
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-11