mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +00:00
Document DROP FOREIGN KEY constraint_name limitation.
This commit is contained in:
@@ -7991,6 +7991,17 @@ If you add a column without a default value and make it NOT NULL, the tool
|
|||||||
will fail, as it will not try to guess a default value for you; You must
|
will fail, as it will not try to guess a default value for you; You must
|
||||||
specify the default.
|
specify the default.
|
||||||
|
|
||||||
|
=item *
|
||||||
|
|
||||||
|
C<DROP FOREIGN KEY constraint_name> requires specifying C<_constraint_name>
|
||||||
|
rather than the real C<constraint_name>. Due to a limitation in MySQL,
|
||||||
|
pt-online-schema-change adds a leading underscore to foreign key constraint
|
||||||
|
names when creating the new table. For example, to drop this contraint:
|
||||||
|
|
||||||
|
CONSTRAINT `fk_foo` FOREIGN KEY (`foo_id`) REFERENCES `bar` (`foo_id`)
|
||||||
|
|
||||||
|
You must specify C<--alter "DROP FOREIGN KEY _fk_foo">.
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
=item --alter-foreign-keys-method
|
=item --alter-foreign-keys-method
|
||||||
|
Reference in New Issue
Block a user