We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment 环境
OS: debian11 PHP version: 8.0 DB version: mariadb10.7 Commit: 2f1d769
Bug Info
宝塔一键搭建的环境,Mariadb10.7,执行初始安装,执行20000101000000_init_database.php导入数据库,报错如下:
root@Debian11-server:/www/wwwroot/airport# nano config/.config.php root@Debian11-server:/www/wwwroot/airport# mv db/migrations/20000101000000_init_database.php.new db/migrations/20000101000000_init_database.php root@Debian11-server:/www/wwwroot/airport# php vendor/bin/phinx migrate Phinx by CakePHP - https://phinx.org.
using config file phinx.php using config parser php using migration paths
The text was updated successfully, but these errors were encountered:
Fixed in aef9567 .
Sorry, something went wrong.
No branches or pull requests
Environment 环境
OS: debian11
PHP version: 8.0
DB version: mariadb10.7
Commit: 2f1d769
Bug Info
宝塔一键搭建的环境,Mariadb10.7,执行初始安装,执行20000101000000_init_database.php导入数据库,报错如下:
root@Debian11-server:/www/wwwroot/airport# nano config/.config.php
root@Debian11-server:/www/wwwroot/airport# mv db/migrations/20000101000000_init_database.php.new db/migrations/20000101000000_init_database.php
root@Debian11-server:/www/wwwroot/airport# php vendor/bin/phinx migrate
Phinx by CakePHP - https://phinx.org.
using config file phinx.php
using config parser php
using migration paths
using seed paths
warning no environment specified, defaulting to: production
using adapter mysql
using database sql_airport
ordering by creation time
ParseError: syntax error, unexpected token "->" in /www/wwwroot/airport/db/migrations/20000101000000_init_database.php:334
Stack trace:
0 /www/wwwroot/airport/vendor/robmorgan/phinx/src/Phinx/Migration/Manager.php(313): Phinx\Migration\Manager->getMigrations()
1 /www/wwwroot/airport/vendor/robmorgan/phinx/src/Phinx/Console/Command/Migrate.php(122): Phinx\Migration\Manager->migrate()
2 /www/wwwroot/airport/vendor/symfony/console/Command/Command.php(291): Phinx\Console\Command\Migrate->execute()
3 /www/wwwroot/airport/vendor/symfony/console/Application.php(1014): Symfony\Component\Console\Command\Command->run()
4 /www/wwwroot/airport/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
5 /www/wwwroot/airport/vendor/robmorgan/phinx/src/Phinx/Console/PhinxApplication.php(70): Symfony\Component\Console\Application->doRun()
6 /www/wwwroot/airport/vendor/symfony/console/Application.php(171): Phinx\Console\PhinxApplication->doRun()
7 /www/wwwroot/airport/vendor/robmorgan/phinx/bin/phinx(28): Symfony\Component\Console\Application->run()
8 /www/wwwroot/airport/vendor/bin/phinx(120): include('...')
9 {main}
The text was updated successfully, but these errors were encountered: