prefix}backup_ids` ( `backup_code` INT(12) UNSIGNED NOT NULL, `table_name` VARCHAR(30) NOT NULL, `old_id` INT(10) UNSIGNED NOT NULL, `new_id` INT(10) UNSIGNED, PRIMARY KEY (`backup_code`, `table_name`, `old_id`) ) COMMENT = 'To store and convert ids in backup/restore'"); } if ($oldversion < 2003050301 and $result) { $result = execute_sql("ALTER TABLE `{$CFG->prefix}backup_ids` ADD `info` VARCHAR(30)"); } if ($oldversion < 2003050400 and $result) { $result = execute_sql("ALTER TABLE `{$CFG->prefix}backup_ids` MODIFY `info` VARCHAR(255)"); } if ($oldversion < 2003050401 and $result) { $result = execute_sql("CREATE TABLE `{$CFG->prefix}backup_files` ( `backup_code` INT( 10 ) UNSIGNED NOT NULL , `file_type` VARCHAR( 10 ) NOT NULL , `path` VARCHAR( 255 ) NOT NULL , `old_id` INT( 10 ) UNSIGNED, `new_id` INT( 10 ) UNSIGNED, PRIMARY KEY ( `backup_code` , `file_type` , `path` ) ) COMMENT = 'To store and recode ids to user & course files.'"); } if ($oldversion < 2003052000 and $result) { $result = execute_sql("ALTER TABLE `{$CFG->prefix}backup_ids` MODIFY `info` TEXT"); } if ($oldversion < 2003061100 and $result) { $result = execute_sql("ALTER TABLE `{$CFG->prefix}backup_ids` MODIFY `info` MEDIUMTEXT"); } //Finally, return result return $result; } ?>