2 # Table structure for table `prefix_backup_files`
5 CREATE TABLE `prefix_backup_files` (
6 `id` int(10) unsigned NOT NULL auto_increment,
7 `backup_code` int(10) unsigned NOT NULL default '0',
8 `file_type` varchar(10) NOT NULL default '',
9 `path` varchar(255) NOT NULL default '',
10 `old_id` int(10) unsigned NOT NULL default '0',
11 `new_id` int(10) unsigned NOT NULL default '0',
13 UNIQUE KEY `backup_files_uk` (`backup_code`,`file_type`,`path`)
14 ) TYPE=MyISAM COMMENT='To store and recode ids to user and course files.';
15 # --------------------------------------------------------
18 # Table structure for table `prefix_backup_ids`
21 CREATE TABLE `prefix_backup_ids` (
22 `id` int(10) unsigned NOT NULL auto_increment,
23 `backup_code` int(12) unsigned NOT NULL default '0',
24 `table_name` varchar(30) NOT NULL default '',
25 `old_id` int(10) unsigned NOT NULL default '0',
26 `new_id` int(10) unsigned NOT NULL default '0',
27 `info` mediumtext NOT NULL default '',
29 UNIQUE KEY `backup_ids_uk` (`backup_code` ,`table_name`,`old_id`)
30 ) TYPE=MyISAM COMMENT='To store and convert ids in backup/restore';
31 # --------------------------------------------------------
34 # Table structure for table `prefix_backup_config`
37 CREATE TABLE `prefix_backup_config` (
38 `id` int(10) unsigned NOT NULL auto_increment,
39 `name` varchar(255) NOT NULL default '',
40 `value` varchar(255) NOT NULL default '',
42 UNIQUE KEY `name` (`name`)
43 ) TYPE=MyISAM COMMENT='To store backup configuration variables';
44 # --------------------------------------------------------
47 # Table structure for table `prefix_backup_courses`
50 CREATE TABLE `prefix_backup_courses` (
51 `id` int(10) unsigned NOT NULL auto_increment,
52 `courseid` int(10) unsigned NOT NULL default '0',
53 `laststarttime` int(10) unsigned NOT NULL default '0',
54 `lastendtime` int(10) unsigned NOT NULL default '0',
55 `laststatus` varchar(1) NOT NULL default '0',
56 `nextstarttime` int(10) unsigned NOT NULL default '0',
58 UNIQUE KEY `courseid` (`courseid`)
59 ) TYPE=MyISAM COMMENT='To store every course backup status';
61 # --------------------------------------------------------
64 # Table structure for table `prefix_backup_log`
67 CREATE TABLE `prefix_backup_log` (
68 `id` int(10) unsigned NOT NULL auto_increment,
69 `courseid` int(10) unsigned NOT NULL default '0',
70 `time` int(10) unsigned NOT NULL default '0',
71 `laststarttime` int(10) unsigned NOT NULL default '0',
72 `info` varchar(255) NOT NULL default '',
74 ) TYPE=MyISAM COMMENT='To store every course backup log info';
75 # --------------------------------------------------------