-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support for MySQL/MariaDB online migrations (support custom keyword arguments for operations) #423
Comments
Michael Bayer (zzzeek) wrote: Reading that doc, this is only for NDB cluster. Secondly, the documentation you link states pretty clearly that the ONLINE keyword is deprecated, so this is out of the gate a legacy option. keywords like ONLINE can be added using recipes that intercept alembic.AlterTable to add that keyword, however I assume you want the ONLINE keyword conditionally, which would mean extending operations like op.alter_column() to do so. There seem to be a lack of hooks to easily intercept new arguments for a case like this without having to create an entirely new operation, which is also possible if you are truly in a bind for this (though you can just emit textual ALTER as well), so if anything I'd rather add extensibility for existing operations. |
Michael Bayer (zzzeek) wrote: proposal is to add "contextual_ops" to all the ddl.base.AlterTable etc constructs, have dialect impls propagate these arguments from the operations to the DDL construct. All operations need to support a small part of the patch, would need to add
|
Changes by Michael Bayer (zzzeek):
|
spanosgeorge () wrote: Hey, thanks for the prompt response! Indeed, I should have linked probably to MariaDB's doc: https://mariadb.com/kb/en/mariadb/alter-table/. For MariaDB Thanks again. |
Changes by Michael Bayer (zzzeek):
|
Migrated issue, originally created by spanosgeorge ()
Hello, if I'm reading correctly the source code, right now alembic doesn't support running
ALTER ONLINE TABLE
DDL statements. Correct?If indeed that's the case, are there plans to support it in the future?
Relevant documentation from MySQL: https://dev.mysql.com/doc/refman/5.6/en/alter-table-online-operations.html
The text was updated successfully, but these errors were encountered: