|
@ -45,7 +45,9 @@ defined('MOODLE_INTERNAL') || die(); |
|
|
/** |
|
|
/** |
|
|
* Copies a string field to int field |
|
|
* Copies a string field to int field |
|
|
* |
|
|
* |
|
|
* @param int $oldversion |
|
|
* @param string $table the name of table |
|
|
|
|
|
* @param string $from the name of source field |
|
|
|
|
|
* @param string $to the name of destination field |
|
|
*/ |
|
|
*/ |
|
|
function mpgame_db_copy_string_to_int( $table, $from, $to) { |
|
|
function mpgame_db_copy_string_to_int( $table, $from, $to) { |
|
|
global $CFG, $DB; |
|
|
global $CFG, $DB; |
|
|