From bcf9eefc9f1f9909acf66ea7b651466bf78e98e2 Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Thu, 2 Aug 2012 10:09:24 -0300 Subject: [PATCH] Fix for 1016114: pt-osc docs don't mention default values --- bin/pt-online-schema-change | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/pt-online-schema-change b/bin/pt-online-schema-change index d8e6c2da..77dcb672 100755 --- a/bin/pt-online-schema-change +++ b/bin/pt-online-schema-change @@ -7945,6 +7945,12 @@ The C clause cannot be used to rename the table. Columns cannot be renamed by dropping and re-adding with the new name. The tool will not copy the original column's data to the new column. +=item * + +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 +specify the default. + =back =item --alter-foreign-keys-method