mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
added infolog
This commit is contained in:
parent
95b42ecd6b
commit
c8a97189d0
@ -44,6 +44,7 @@
|
||||
@$phpgw_setup->db->query("DROP TABLE calendar_entry");
|
||||
@$phpgw_setup->db->query("DROP TABLE calendar_entry_user");
|
||||
@$phpgw_setup->db->query("DROP TABLE calendar_entry_repeats");
|
||||
$phpgw_setup->db->query("DROP TABLE phpgw_infolog");
|
||||
|
||||
/* Legacy tables */
|
||||
|
||||
@ -54,4 +55,5 @@
|
||||
$phpgw_setup->db->query("DROP TABLE preferences");
|
||||
$phpgw_setup->db->query("DROP TABLE addressbook");
|
||||
$phpgw_setup->db->query("DROP TABLE todo");
|
||||
$phpgw_setup->db->query("DROP TABLE infolog");
|
||||
?>
|
||||
|
@ -354,6 +354,31 @@
|
||||
)";
|
||||
$phpgw_setup->db->query($sql);
|
||||
|
||||
$sql = "CREATE TABLE phpgw_infolog (
|
||||
info_id int(11) unsigned PRIMARY KEY NOT NULL auto_increment,
|
||||
info_type enum('task','phone','note','confirm','reject','email','fax') NOT NULL,
|
||||
info_addr_id int(11) DEFAULT '0' NOT NULL,
|
||||
info_proj_id int(11) DEFAULT '0' NOT NULL,
|
||||
info_from varchar(64),
|
||||
info_addr varchar(64),
|
||||
info_subject varchar(64) NOT NULL,
|
||||
info_des text,
|
||||
info_owner int(11) NOT NULL,
|
||||
info_responsible int(11) DEFAULT '0' NOT NULL,
|
||||
info_access varchar(10) DEFAULT 'public',
|
||||
info_cat int(11) DEFAULT '0' NOT NULL,
|
||||
info_datecreated int(11) DEFAULT '0' NOT NULL,
|
||||
info_startdate int(11) DEFAULT '0' NOT NULL,
|
||||
info_enddate int(11) DEFAULT '0' NOT NULL,
|
||||
info_id_parent int(11) DEFAULT '0' NOT NULL,
|
||||
info_pri enum('urgent','high','normal','low') DEFAULT 'Normal',
|
||||
info_time int(11) DEFAULT '0' NOT NULL,
|
||||
info_bill_cat int(11) DEFAULT '0' NOT NULL,
|
||||
info_status enum('offer','ongoing','call','will-call','done','billed') DEFAULT 'done',
|
||||
info_confirm enum('not','accept','finish','both') DEFAULT 'not'
|
||||
)";
|
||||
$phpgw_setup->db->query($sql);
|
||||
|
||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.13.001';
|
||||
$phpgw_info['setup']['oldver']['phpgwapi'] = $phpgw_info['setup']['currentver']['phpgwapi'];
|
||||
update_version_table();
|
||||
|
@ -58,4 +58,7 @@
|
||||
|
||||
$phpgw_setup->db->query("DROP TABLE phpgw_notes");
|
||||
$phpgw_setup->db->query("DROP sequence phpgw_notes_note_id_seq");
|
||||
|
||||
$phpgw_setup->db->query("DROP TABLE phpgw_infolog");
|
||||
$phpgw_setup->db->query("DROP sequence phpgw_infolog_info_id_seq");
|
||||
?>
|
||||
|
@ -323,6 +323,31 @@
|
||||
)";
|
||||
$phpgw_setup->db->query($sql);
|
||||
|
||||
$sql = "CREATE TABLE infolog (
|
||||
info_id serial,
|
||||
info_type enum('task','phone','note','confirm','reject','email','fax') NOT NULL,
|
||||
info_addr_id int DEFAULT '0' NOT NULL,
|
||||
info_proj_id int DEFAULT '0' NOT NULL,
|
||||
info_from varchar(64),
|
||||
info_addr varchar(64),
|
||||
info_subject varchar(64) NOT NULL,
|
||||
info_des text,
|
||||
info_owner int NOT NULL,
|
||||
info_responsible int DEFAULT '0' NOT NULL,
|
||||
info_access varchar(10) DEFAULT 'public',
|
||||
info_cat int DEFAULT '0' NOT NULL,
|
||||
info_datecreated int DEFAULT '0' NOT NULL,
|
||||
info_startdate int DEFAULT '0' NOT NULL,
|
||||
info_enddate int DEFAULT '0' NOT NULL,
|
||||
info_id_parent int DEFAULT '0' NOT NULL,
|
||||
info_pri enum('urgent','high','normal','low') DEFAULT 'Normal',
|
||||
info_time int DEFAULT '0' NOT NULL,
|
||||
info_bill_cat int DEFAULT '0' NOT NULL,
|
||||
info_status enum('offer','ongoing','call','will-call','done','billed') DEFAULT 'done',
|
||||
info_confirm enum('not','accept','finish','both') DEFAULT 'not'
|
||||
)";
|
||||
$phpgw_setup->db->query($sql);
|
||||
|
||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.13.001';
|
||||
$phpgw_info['setup']['oldver']['phpgwapi'] = $phpgw_info['setup']['currentver']['phpgwapi'];
|
||||
update_version_table();
|
||||
|
Loading…
Reference in New Issue
Block a user