documenting --discard-foreign-keys flag

This commit is contained in:
Shlomi Noach 2016-10-07 10:23:52 +02:00
parent 1f65473e69
commit 5d312a2bfb
2 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,7 @@
#
#
RELEASE_VERSION="1.0.20"
RELEASE_VERSION="1.0.21"
function build {
osname=$1

View File

@ -47,6 +47,12 @@ See `exact-rowcount`
Optional. Default is `safe`. See more discussion in [cut-over](cut-over.md)
### discard-foreign-keys
**Danger**: this flag will _silently_ discard any foreign keys existing on your table.
At this time (10-2016) `gh-ost` does not support foreign keys on migrated tables (it bails out when it notices a FK on the migrated table). However, it is able to support _dropping_ of foreign keys via this flag. If you're trying to get rid of foreign keys in your environment, this is a useful flag.
### exact-rowcount
A `gh-ost` execution need to copy whatever rows you have in your existing table onto the ghost table. This can, and often be, a large number. Exactly what that number is?