}
/**
- * This function will change the precision of the field in the table passed as arguments
+ * This function will change the type of the field in the table passed as arguments
*
* @uses $CFG, $db
* @param XMLDBTable table object (just the name is mandatory)
* @param boolean feedback to specify to show status info (true) or not (false)
* @return boolean true on success, false on error
*/
-function change_field_precision($table, $field, $continue=true, $feedback=true) {
+function change_field_type($table, $field, $continue=true, $feedback=true) {
global $CFG, $db;
return execute_sql_arr($sqlarr, $continue, $feedback);
}
+/**
+ * This function will change the precision of the field in the table passed as arguments
+ *
+ * @uses $CFG, $db
+ * @param XMLDBTable table object (just the name is mandatory)
+ * @param XMLDBField field object (full specs are required)
+ * @param boolean continue to specify if must continue on error (true) or stop (false)
+ * @param boolean feedback to specify to show status info (true) or not (false)
+ * @return boolean true on success, false on error
+ */
+function change_field_precision($table, $field, $continue=true, $feedback=true) {
+
+/// Just a wrapper over change_field_type. Does exactly the same processing
+ return change_field_type($table, $field, $continue, $feedback);
+}
+
/**
* This function will change the unsigned/signed of the field in the table passed as arguments
*
*/
function change_field_unsigned($table, $field, $continue=true, $feedback=true) {
-/// Just a wrapper over change_field_precision. Does exactly the same processing
- return change_field_precision($table, $field, $continue, $feedback);
+/// Just a wrapper over change_field_type. Does exactly the same processing
+ return change_field_type($table, $field, $continue, $feedback);
}
/**
*/
function change_field_notnull($table, $field, $continue=true, $feedback=true) {
-/// Just a wrapper over change_field_precision. Does exactly the same processing
- return change_field_precision($table, $field, $continue, $feedback);
+/// Just a wrapper over change_field_type. Does exactly the same processing
+ return change_field_type($table, $field, $continue, $feedback);
}
/**