Skip to content
New issue

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

Migration fails - ($hash) must be of type string #2

Closed
amenk opened this issue Feb 20, 2024 · 2 comments
Closed

Migration fails - ($hash) must be of type string #2

amenk opened this issue Feb 20, 2024 · 2 comments

Comments

@amenk
Copy link
Member

amenk commented Feb 20, 2024

Contao\InstallationBundle\Database\Installer::execCommand(): Argument  
         #1 ($hash) must be of type string, int given, called in                
         vendor/contao/core-bundle/src/Command/MigrateCo
         mmand.php on line 482                                                
@amenk
Copy link
Member Author

amenk commented Feb 20, 2024

Can be fixed at the first glance by

$arrData['CREATE'][] = $this->viewCreateQry;

$arrData['CREATE'][md5($this->viewCreateQry)] = $this->viewCreateQry;

But this only leads to the problem, that migrations are suggested again and again and the migration list is never "empty".

amenk added a commit that referenced this issue Apr 19, 2024
Contao\InstallationBundle\Database\Installer::execCommand(): Argument
         #1 ($hash) must be of type string, int given, called in
         vendor/contao/core-bundle/src/Command/MigrateCommand.php on line 482
@amenk
Copy link
Member Author

amenk commented Apr 19, 2024

Fixed, the endless-loop came from somewhere else I believe

@amenk amenk closed this as completed Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant