From 329a51bf2bb832440eea7b2cf12d2a98dd0d7245 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 25 May 2001 03:28:42 +0000 Subject: [PATCH] Add tables_current, update setup.inc.php --- calendar/setup/setup.inc.php | 9 +++- calendar/setup/tables_current.inc.php | 77 +++++++++++++++++++++++++++ 2 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 calendar/setup/tables_current.inc.php diff --git a/calendar/setup/setup.inc.php b/calendar/setup/setup.inc.php index 66b13e33a1..fd15e75af7 100755 --- a/calendar/setup/setup.inc.php +++ b/calendar/setup/setup.inc.php @@ -1,8 +1,13 @@ array( + 'fd' => array( + 'cal_id' => array('type' => 'auto','nullable' => False), + 'owner' => array('type' => 'int', 'precision' => 11,'nullable' => False), + 'category' => array('type' => 'int', 'precision' => 11,'nullable' => False), + 'groups' => array('type' => 'varchar', 'precision' => 255,'nullable' => True), + 'datetime' => array('type' => 'int', 'precision' => 11,'nullable' => True), + 'mdatetime' => array('type' => 'int', 'precision' => 11,'nullable' => True), + 'edatetime' => array('type' => 'int', 'precision' => 11,'nullable' => True), + 'priority' => array('type' => 'int', 'precision' => 11,'nullable' => False,'default' => '2'), + 'cal_type' => array('type' => 'varchar', 'precision' => 10,'nullable' => True,'default' => '2'), + 'is_public' => array('type' => 'int', 'precision' => 11,'nullable' => False,'default' => '1'), + 'title' => array('type' => 'varchar', 'precision' => 80,'nullable' => False,'default' => '1'), + 'description' => array('type' => 'text','nullable' => True,'default' => '1') + ), + 'pk' => array('cal_id'), + 'fk' => array(''), + 'ix' => array(''), + 'uc' => array('') + ), + 'phpgw_cal_holidays' => array( + 'fd' => array( + 'hol_id' => array('type' => 'auto','nullable' => False), + 'locale' => array('type' => 'char', 'precision' => 2,'nullable' => False), + 'name' => array('type' => 'varchar', 'precision' => 50,'nullable' => False), + 'mday' => array('type' => 'int', 'precision' => 11,'nullable' => False), + 'month_num' => array('type' => 'int', 'precision' => 11,'nullable' => False), + 'occurence' => array('type' => 'int', 'precision' => 11,'nullable' => False), + 'dow' => array('type' => 'int', 'precision' => 11,'nullable' => False), + 'observance_rule' => array('type' => 'int', 'precision' => 11,'nullable' => False) + ), + 'pk' => array('hol_id'), + 'fk' => array(''), + 'ix' => array(''), + 'uc' => array('') + ), + 'phpgw_cal_repeats' => array( + 'fd' => array( + 'cal_id' => array('type' => 'int', 'precision' => 11,'nullable' => False), + 'recur_type' => array('type' => 'int', 'precision' => 11,'nullable' => False), + 'recur_use_end' => array('type' => 'int', 'precision' => 11,'nullable' => True), + 'recur_enddate' => array('type' => 'int', 'precision' => 11,'nullable' => True), + 'recur_interval' => array('type' => 'int', 'precision' => 11,'nullable' => True,'default' => '1'), + 'recur_data' => array('type' => 'int', 'precision' => 11,'nullable' => True,'default' => '1') + ), + 'pk' => array(''), + 'fk' => array(''), + 'ix' => array(''), + 'uc' => array('') + ), + 'phpgw_cal_user' => array( + 'fd' => array( + 'cal_id' => array('type' => 'int', 'precision' => 11,'nullable' => False), + 'cal_login' => array('type' => 'int', 'precision' => 11,'nullable' => False), + 'cal_status' => array('type' => 'char', 'precision' => 1,'nullable' => True,'default' => 'A') + ), + 'pk' => array('cal_id','cal_login'), + 'fk' => array(''), + 'ix' => array(''), + 'uc' => array('') + ) + ); +?>