From: stronk7 Date: Sat, 2 May 2009 00:22:20 +0000 (+0000) Subject: MDL-18577 drop enums support - step3: deprecate old change_field_enum() use X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=526fe7d8daab178d186820755d7073cfbeb60a12;p=moodle.git MDL-18577 drop enums support - step3: deprecate old change_field_enum() use by new drop_enum_from_field() available in 2.0 --- diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index c464db20e3..3969249839 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -694,8 +694,8 @@ function change_field_notnull($table, $field) { function change_field_enum($table, $field) { global $DB; - debugging('Deprecated ddllib function used!'); - $DB->get_manager()->change_field_enum($table, $field); + debugging('Deprecated ddllib function used! Only dropping of enums is allowed.'); + $DB->get_manager()->drop_enum_from_field($table, $field); return true; }