summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB/Schema/Mysql.pm
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-03-18 12:28:51 +0100
committermkanat%kerio.com <>2005-03-18 12:28:51 +0100
commit675c4bb9d83bdf1916eb0bcb61a973c6f4b69a73 (patch)
tree60143f66c528547062f2082b0640beb4b0b0858b /Bugzilla/DB/Schema/Mysql.pm
parent026808687250a3e1c2415c1967e1a48abeba217b (diff)
downloadbugzilla-675c4bb9d83bdf1916eb0bcb61a973c6f4b69a73.tar.gz
bugzilla-675c4bb9d83bdf1916eb0bcb61a973c6f4b69a73.tar.xz
Bug 285748: Cross-DB bz_alter_column (Part of Bug 285111)
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=Tomas.Kopal, a=justdave
Diffstat (limited to 'Bugzilla/DB/Schema/Mysql.pm')
-rw-r--r--Bugzilla/DB/Schema/Mysql.pm13
1 files changed, 12 insertions, 1 deletions
diff --git a/Bugzilla/DB/Schema/Mysql.pm b/Bugzilla/DB/Schema/Mysql.pm
index dff626097..fa6e2d5ba 100644
--- a/Bugzilla/DB/Schema/Mysql.pm
+++ b/Bugzilla/DB/Schema/Mysql.pm
@@ -96,5 +96,16 @@ sub _get_create_index_ddl {
return($sql);
} #eosub--_get_create_index_ddl
-#------------------------------------------------------------------------------
+#--------------------------------------------------------------------
+
+# MySQL has a simpler ALTER TABLE syntax than ANSI.
+sub get_alter_column_ddl {
+
+ my ($self, $table, $column, $new_def) = @_;
+
+ my $new_ddl = $self->get_type_ddl($new_def);
+
+ return (("ALTER TABLE $table CHANGE COLUMN $column $column $new_ddl"));
+}
+
1;