Skip to content

Commit 5d312a2

Browse files
author
Shlomi Noach
committed
documenting --discard-foreign-keys flag
1 parent 1f65473 commit 5d312a2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
#
44

5-
RELEASE_VERSION="1.0.20"
5+
RELEASE_VERSION="1.0.21"
66

77
function build {
88
osname=$1

doc/command-line-flags.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ See `exact-rowcount`
4747

4848
Optional. Default is `safe`. See more discussion in [cut-over](cut-over.md)
4949

50+
### discard-foreign-keys
51+
52+
**Danger**: this flag will _silently_ discard any foreign keys existing on your table.
53+
54+
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.
55+
5056
### exact-rowcount
5157

5258
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?

0 commit comments

Comments
 (0)