File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 "migrate:rollback" : " vendor/bin/phinx rollback" ,
4646 "migrate:status" : " vendor/bin/phinx status" ,
4747 "migrate:create" : " vendor/bin/phinx create" ,
48- "db:seed" : " vendor/bin/phinx seed:run"
48+ "seed:create" : " vendor/bin/phinx seed:create" ,
49+ "seed" : " vendor/bin/phinx seed:run"
4950 }
5051}
Original file line number Diff line number Diff line change 1212$ default = $ dbConfig ['default ' ];
1313$ connections = $ dbConfig ['connections ' ];
1414
15+ // Đường dẫn tuyệt đối đến thư mục gốc của dự án
16+ $ rootPath = dirname (__DIR__ );
17+
1518return [
1619 'paths ' => [
17- 'migrations ' => ' %%PHINX_CONFIG_DIR%%/.. /database/migrations ' ,
18- 'seeds ' => ' %%PHINX_CONFIG_DIR%%/.. /database/seeds ' ,
20+ 'migrations ' => $ rootPath . ' /database/migrations ' ,
21+ 'seeds ' => $ rootPath . ' /database/seeds ' ,
1922 ],
2023 'environments ' => [
2124 'default_migration_table ' => 'phinxlog ' ,
You can’t perform that action at this time.
0 commit comments