From c8a97189d0f5af5f4baa7394b269df1a9b0e847d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 30 May 2001 21:58:05 +0000 Subject: [PATCH] added infolog --- setup/sql/mysql_droptables.inc.php | 2 ++ setup/sql/mysql_newtables.inc.php | 25 +++++++++++++++++++++++++ setup/sql/pgsql_droptables.inc.php | 3 +++ setup/sql/pgsql_newtables.inc.php | 25 +++++++++++++++++++++++++ 4 files changed, 55 insertions(+) diff --git a/setup/sql/mysql_droptables.inc.php b/setup/sql/mysql_droptables.inc.php index 1d5a1d8607..c1efa50ed5 100644 --- a/setup/sql/mysql_droptables.inc.php +++ b/setup/sql/mysql_droptables.inc.php @@ -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"); ?> diff --git a/setup/sql/mysql_newtables.inc.php b/setup/sql/mysql_newtables.inc.php index c64a72ef1d..bdea3a1b07 100644 --- a/setup/sql/mysql_newtables.inc.php +++ b/setup/sql/mysql_newtables.inc.php @@ -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(); diff --git a/setup/sql/pgsql_droptables.inc.php b/setup/sql/pgsql_droptables.inc.php index 885a78411f..5b063579ec 100644 --- a/setup/sql/pgsql_droptables.inc.php +++ b/setup/sql/pgsql_droptables.inc.php @@ -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"); ?> diff --git a/setup/sql/pgsql_newtables.inc.php b/setup/sql/pgsql_newtables.inc.php index beed4ac555..075af38afa 100644 --- a/setup/sql/pgsql_newtables.inc.php +++ b/setup/sql/pgsql_newtables.inc.php @@ -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();