qifen / phinx
1.2
2022-02-26 07:39 UTC
Requires
- illuminate/database: ^8.83
- robmorgan/phinx: ^0.12.5
- symfony/console: ^5.0
- workerman/webman-framework: ^1.2.1
This package is auto-updated.
Last update: 2025-03-26 14:32:42 UTC
README
安装
composer require qifen/phinx
插件依赖
workerman/webman-framework
symfony/console
robmorgan/phinx
illuminate/database
配置
//config/plugin/qifen/phinx/phinx.php <?php //读取当前系统设置 return [ "paths" => [ "migrations" => "database/migrations", //在项目根目录下创建此路径 "seeds" => "database/seeds" //在项目根目录下创建此路径 ], "environments" => [ "default_migration_table" => "phinxlog", "default_database" => "dev", "default_environment" => "dev", "dev" => [ "adapter" => config('database.connections.mysql.driver'), "host" => config('database.connections.mysql.host'), "name" => config('database.connections.mysql.database'), "user" => config('database.connections.mysql.username'), "pass" => config('database.connections.mysql.password'), "port" => config('database.connections.mysql.port'), 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_0900_ai_ci' ] ], "migration_base_class" => \Qifen\phinx\Commands\MigrationBaseClass::class, "seeder_base_class" => \Qifen\phinx\Commands\SeederBaseClass::class ];
使用
php phinx