Add more drop tables, fix nexid def in mysql newtables

This commit is contained in:
Miles Lott 2001-04-03 18:13:02 +00:00
parent 0e9d37f2df
commit df039e8c74
3 changed files with 6 additions and 2 deletions

View File

@ -25,6 +25,7 @@
$phpgw_setup->db->query("DROP TABLE phpgw_addressbook"); $phpgw_setup->db->query("DROP TABLE phpgw_addressbook");
$phpgw_setup->db->query("DROP TABLE phpgw_addressbook_extra"); $phpgw_setup->db->query("DROP TABLE phpgw_addressbook_extra");
$phpgw_setup->db->query("DROP TABLE todo"); $phpgw_setup->db->query("DROP TABLE todo");
$phpgw_setup->db->query("DROP TABLE phpgw_todo");
$phpgw_setup->db->query("DROP TABLE calendar_entry"); $phpgw_setup->db->query("DROP TABLE calendar_entry");
$phpgw_setup->db->query("DROP TABLE calendar_entry_repeats"); $phpgw_setup->db->query("DROP TABLE calendar_entry_repeats");
$phpgw_setup->db->query("DROP TABLE calendar_entry_user"); $phpgw_setup->db->query("DROP TABLE calendar_entry_user");
@ -34,6 +35,8 @@
$phpgw_setup->db->query("DROP TABLE languages"); $phpgw_setup->db->query("DROP TABLE languages");
$phpgw_setup->db->query("DROP TABLE customers"); $phpgw_setup->db->query("DROP TABLE customers");
$phpgw_setup->db->query("DROP TABLE notes"); $phpgw_setup->db->query("DROP TABLE notes");
$phpgw_setup->db->query("DROP TABLE phpgw_notes");
$phpgw_setup->db->query("DROP TABLE phpgw_nextid");
/* Legacy tables */ /* Legacy tables */
@ -42,4 +45,4 @@
$phpgw_setup->db->query("DROP TABLE groups"); $phpgw_setup->db->query("DROP TABLE groups");
$phpgw_setup->db->query("DROP TABLE accounts"); $phpgw_setup->db->query("DROP TABLE accounts");
$phpgw_setup->db->query("DROP TABLE preferences"); $phpgw_setup->db->query("DROP TABLE preferences");
?> ?>

View File

@ -342,7 +342,7 @@
$phpgw_setup->db->query($sql); $phpgw_setup->db->query($sql);
$sql = "create table phpgw_nextid ( $sql = "create table phpgw_nextid (
appname varchar(25), appname varchar(25) NOT NULL,
id int(8), id int(8),
UNIQUE (appname) UNIQUE (appname)
)"; )";

View File

@ -32,6 +32,7 @@
$phpgw_setup->db->query("drop sequence calendar_entry_cal_id_seq"); $phpgw_setup->db->query("drop sequence calendar_entry_cal_id_seq");
$phpgw_setup->db->query("drop sequence todo_todo_id_seq"); $phpgw_setup->db->query("drop sequence todo_todo_id_seq");
$phpgw_setup->db->query("DROP TABLE todo"); $phpgw_setup->db->query("DROP TABLE todo");
$phpgw_setup->db->query("DROP TABLE phpgw_todo");
$phpgw_setup->db->query("DROP TABLE calendar_entry"); $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_user");
$phpgw_setup->db->query("DROP TABLE calendar_entry_repeats"); $phpgw_setup->db->query("DROP TABLE calendar_entry_repeats");