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

Insert/delete sql queries for metadata table during dry-run and write-sql #1265

Merged
merged 8 commits into from
Aug 4, 2022

Conversation

wiistriker
Copy link
Contributor

Db user in my app doesn't have CREATE, ALTER query permissions so i cant run my migrations from php. Instead of this i write all necessary sql queries to file and run it from another user. After upgrading doctrine migrations to newer version i faced with issue, that resulted sql file doesnt contain insert/delete queries for meta table (doctrine_migration_versions). Very frustrating to insert this information myself so i ended up with this solution.

Such issue already been described in #1082

Q A
Type improvement
BC Break no
Fixed issues 1082

Summary

I am not sure about TableMetadataStorage::complete method. I see you using Connection::insert, Connection::delete methods. It seems like we need to replace it with Connection::execute and use already generated queries

@greg0ire greg0ire requested a review from goetas July 18, 2022 09:59
@wiistriker
Copy link
Contributor Author

any news on this?

@greg0ire greg0ire requested a review from stof July 25, 2022 13:59
@wiistriker
Copy link
Contributor Author

any news on this?

@greg0ire greg0ire added this to the 3.5.2 milestone Aug 4, 2022
@greg0ire
Copy link
Member

greg0ire commented Aug 4, 2022

No reviews… I should have some time to merge and release this this afternoon.

@wiistriker
Copy link
Contributor Author

Is there any options to have this changes in 3.0 version?

@greg0ire
Copy link
Member

greg0ire commented Aug 4, 2022

Is there any options to have this changes in 3.0 version?

Nope, sorry.

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

Successfully merging this pull request may close these issues.

3 participants