-
Notifications
You must be signed in to change notification settings - Fork 641
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
[4.x]: Upgrading from 4.3.4 to 4.5.5 and getting table already exists #13714
Comments
Hi, thanks for reaching out. In general, if migration fails or you want to test the deployment process again, you should restore the DB backup from before the update. However, that won’t remove any new tables that were added by the migration. I just raised a PR to adjust this migration. |
@i-just
|
@i-just |
We generally do intend to have those |
Craft 4.5.6 is out now with that fix. |
What happened?
Description
I'm upgrading a project from 4.3.4 to 4.5.5. The deployment is using a terraform controlled docker based install.
Steps to reproduce
Expected behavior
Cleanup finishes without any problems.
Actual behavior
SQL error is reported:
If a migration has been run before for the database - would successive deployments try to run the migrations again. Should the migrations be designed with "create table if not exists ..."?
Craft CMS version
4.5.5
PHP version
8.0.29
Operating system and version
docker - craftcms/nginx:8.0
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: