how do you modify a table to allow nulls using percona.
pt-online-schema-change --modfiy mycolumn default null d=database, t=table
I see the --alter but nothing to modify an existing column.
how do you modify a table to allow nulls using percona.
pt-online-schema-change --modfiy mycolumn default null d=database, t=table
I see the --alter but nothing to modify an existing column.
Copyright © 2021 Jogjafile Inc.
First of all, you wouldn't HAVE to use pt-online-schema-change to achieve this as you can do it in native SQL (though you may have a reason for asking how to do it with pt-online-schema-change)
For this table:
You can use this SQL:
Next, though, if you have a good reason to use pt-online-schema-change, for example if the table is very big, then this would be the syntax:
Here's the link to the tool's documentation https://www.percona.com/doc/percona-toolkit/LATEST/pt-online-schema-change.html