From 04aa5b2de1a3e93f63875526aff1f7d13186b953 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 3 May 2003 23:19:07 +0000 Subject: [PATCH] To mantain updated the db with the auto-update feature. This file is for mysql installations. Every DB must have its own file. --- backup/db/backup_mysql.php | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 backup/db/backup_mysql.php diff --git a/backup/db/backup_mysql.php b/backup/db/backup_mysql.php new file mode 100644 index 0000000000..1b332cbf54 --- /dev/null +++ b/backup/db/backup_mysql.php @@ -0,0 +1,49 @@ +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 `time` INT(10) UNSIGNED"); + } + + + //Finally, return result + return $result; + +} + +?> -- 2.39.5