]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18577 drop enums support - step3: deprecate old change_field_enum() use
authorstronk7 <stronk7>
Sat, 2 May 2009 00:22:20 +0000 (00:22 +0000)
committerstronk7 <stronk7>
Sat, 2 May 2009 00:22:20 +0000 (00:22 +0000)
by new drop_enum_from_field() available in 2.0

lib/deprecatedlib.php

index c464db20e309adf38a14e0160c5675998187425d..396924983925bc5df9a8b89f2ee18e3068e4454c 100644 (file)
@@ -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;
 }