2003-08-01 13:59:17 +00:00
|
|
|
# THIS FILE IS UNTESTED!!!
|
|
|
|
# PLEASE HELP TEST/FIX IT AND CONTACT MARTIN OR ELOY!
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table prefix_backup_files
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_backup_files (
|
|
|
|
backup_code integer NOT NULL default '0',
|
|
|
|
file_type varchar(10) NOT NULL default '',
|
|
|
|
path varchar(255) NOT NULL default '',
|
|
|
|
old_id integer default NULL,
|
2003-08-28 18:24:00 +00:00
|
|
|
new_id integer default NULL
|
2003-08-20 12:09:15 +00:00
|
|
|
);
|
|
|
|
|
2003-08-01 13:59:17 +00:00
|
|
|
# --------------------------------------------------------
|
|
|
|
|
2003-08-20 12:09:15 +00:00
|
|
|
CREATE INDEX prefix_backup_codetypepath_idx ON prefix_backup_files (backup_code,file_type,path);
|
2003-08-01 13:59:17 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table prefix_backup_ids
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_backup_ids (
|
2003-08-28 18:24:00 +00:00
|
|
|
backup_code int8 NOT NULL default '0',
|
2003-08-01 13:59:17 +00:00
|
|
|
table_name varchar(30) NOT NULL default '',
|
2003-08-28 18:24:00 +00:00
|
|
|
old_id int8 NOT NULL default '0',
|
|
|
|
new_id int8 default NULL,
|
|
|
|
info text
|
2003-08-20 12:09:15 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE INDEX prefix_backup_codenameid_idx ON prefix_backup_ids (backup_code,table_name,old_id);
|
2003-08-01 13:59:17 +00:00
|
|
|
|
2003-11-27 22:53:30 +00:00
|
|
|
#
|
|
|
|
# Table structure for table prefix_backup_config
|
|
|
|
#
|
2003-08-01 13:59:17 +00:00
|
|
|
|
2003-11-27 22:53:30 +00:00
|
|
|
CREATE TABLE prefix_backup_config (
|
|
|
|
id SERIAL PRIMARY KEY,
|
2003-12-01 22:58:49 +00:00
|
|
|
name varchar(255) UNIQUE NOT NULL default '',
|
|
|
|
value varchar(255) NOT NULL default ''
|
2003-11-27 22:53:30 +00:00
|
|
|
);
|
2003-12-08 22:50:56 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table prefix_backup_courses
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_backup_courses (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
courseid int8 UNIQUE NOT NULL default '0',
|
|
|
|
laststarttime int8 NOT NULL default '0',
|
|
|
|
lastendtime int8 NOT NULL default '0',
|
|
|
|
laststatus varchar(1) NOT NULL default '0',
|
|
|
|
nextstarttime int8 NOT NULL default '0'
|
|
|
|
);
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table prefix_backup_log
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_backup_log
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
courseid int8 NOT NULL default '0',
|
|
|
|
time int8 NOT NULL default '0',
|
|
|
|
laststarttime int8 NOT NULL default '0',
|
|
|
|
info varchar(255) NOT NULL default ''
|
|
|
|
);
|