You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It clearly tells fatal error happened due to app beingly wrongly configured. Specifically configuration of error presenter. When the error handler itself is broken, you simply can't get reasonable error message from any console command, this is not problem in nextras/migrations.
Also whole Kdyby is practically dead for a long time and you shall replace it with dependencies that are maintained, e.g. https://github.com/orisai/nette-console
Issue 1: Some migrations fail without apparent reason.
Here's the migration SQL (/db/structures/2024-12-07-134509-dokumenty.sql)
☝ tested in MySQL CLI and works.
On running
php www/index.php migrations:continue
it fails:ERROR: Executing migration "../db/structures/2024-12-07-134509-dokumenty.sql" has failed.
Issue 2: There's no way to tell why.
The error output is completely useless and provides no clue on what's wrong:
This output is the same no matter what the SQL file actually contains. Valid SQL, invalid SQL, even with any gibberish -- no useless error message.
Versions
PHP 8.2.26
"nextras/migrations": "^3.3",
"nette/database": "~3.2.0",
config.neon:
Database Server version: 10.1.48-MariaDB-1~bionic mariadb.org binary distribution
The text was updated successfully, but these errors were encountered: