mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
new cache table for newsmode
This commit is contained in:
parent
1f3a29c029
commit
8f07f92003
@ -18,7 +18,7 @@
|
||||
$phpgw_info["server"]["api_dir"] = $phpgw_info["server"]["include_root"]."/phpgwapi";
|
||||
|
||||
// Authorize the user to use setup app
|
||||
include("inc/setup_auth.inc.php");
|
||||
include("./inc/setup_auth.inc.php");
|
||||
// Does not return unless user is authorized
|
||||
|
||||
/* Database setup */
|
||||
@ -64,7 +64,7 @@
|
||||
\**********************************************************************/
|
||||
$ok = true;
|
||||
$baseDir = $phpgw_info["server"]["server_root"];
|
||||
include("inc/core_setup.inc.php");
|
||||
include("./inc/core_setup.inc.php");
|
||||
if (!$ok) {
|
||||
exit;
|
||||
} else {
|
||||
|
@ -18,13 +18,13 @@
|
||||
}
|
||||
|
||||
if ($currentver == "drop"){
|
||||
include("sql/".$phpgw_info["server"]["db_type"]."_droptables.inc.php");
|
||||
include("./sql/".$phpgw_info["server"]["db_type"]."_droptables.inc.php");
|
||||
$currentver = "new";
|
||||
}
|
||||
if ($currentver == "new") {
|
||||
include("sql/".$phpgw_info["server"]["db_type"]."_newtables.inc.php");
|
||||
include("sql/common_default_records.inc.php");
|
||||
include("sql/common_lang_records.inc.php");
|
||||
include("./sql/".$phpgw_info["server"]["db_type"]."_newtables.inc.php");
|
||||
include("./sql/common_default_records.inc.php");
|
||||
include("./sql/common_lang_records.inc.php");
|
||||
}
|
||||
echo "<table border=\"0\" align=\"center\">\n";
|
||||
echo " <tr bgcolor=\"486591\">\n";
|
||||
@ -32,10 +32,10 @@
|
||||
echo " </tr>\n";
|
||||
|
||||
if ($currentver == "7122000" || $currentver == "8032000" || $currentver == "8072000" || $currentver == "8212000" || $currentver == "9052000" || $currentver == "9072000") {
|
||||
include("sql/".$phpgw_info["server"]["db_type"]."_upgrade_prebeta.inc.php");
|
||||
include("./sql/".$phpgw_info["server"]["db_type"]."_upgrade_prebeta.inc.php");
|
||||
}
|
||||
|
||||
include("sql/".$phpgw_info["server"]["db_type"]."_upgrade_beta.inc.php");
|
||||
include("./sql/".$phpgw_info["server"]["db_type"]."_upgrade_beta.inc.php");
|
||||
|
||||
if (!$tablechanges == True){
|
||||
echo " <tr bgcolor=\"e6e6e6\">\n";
|
||||
|
@ -216,6 +216,42 @@
|
||||
)";
|
||||
$db->query($sql);
|
||||
|
||||
$sql = "CREATE TABLE news_msg (
|
||||
con int(11) NOT NULL,
|
||||
msg int(11) NOT NULL,
|
||||
uid varchar(255) DEFAULT '',
|
||||
udate int(11) DEFAULT 0,
|
||||
path varchar(255) DEFAULT '',
|
||||
fromadd varchar(255) DEFAULT '',
|
||||
toadd varchar(255) DEFAULT '',
|
||||
ccadd varchar(255) DEFAULT '',
|
||||
bccadd varchar(255) DEFAULT '',
|
||||
reply_to varchar(255) DEFAULT '',
|
||||
sender varchar(255) DEFAULT '',
|
||||
return_path varchar(255) DEFAULT '',
|
||||
subject varchar(255) DEFAULT '',
|
||||
message_id varchar(255) DEFAULT '',
|
||||
reference varchar(255) DEFAULT '',
|
||||
in_reply_to varchar(255) DEFAULT '',
|
||||
follow_up_to varchar(255) DEFAULT '',
|
||||
nntp_posting_host varchar(255) DEFAULT '',
|
||||
nntp_posting_date varchar(255) DEFAULT '',
|
||||
x_complaints_to varchar(255) DEFAULT '',
|
||||
x_trace varchar(255) DEFAULT '',
|
||||
x_abuse_info varchar(255) DEFAULT '',
|
||||
x_mailer varchar(255) DEFAULT '',
|
||||
organization varchar(255) DEFAULT '',
|
||||
content_type varchar(255) DEFAULT '',
|
||||
content_description varchar(255) DEFAULT '',
|
||||
content_transfer_encoding varchar(255) DEFAULT '',
|
||||
mime_version varchar(255) DEFAULT '',
|
||||
msgsize int(11) DEFAULT 0,
|
||||
msglines int(11) DEFAULT 0,
|
||||
body longtext NOT NULL,
|
||||
primary key(con,msg)
|
||||
)";
|
||||
$db->query($sql);
|
||||
|
||||
$sql = "CREATE TABLE lang (
|
||||
message_id varchar(150) DEFAULT '' NOT NULL,
|
||||
app_name varchar(100) DEFAULT 'common' NOT NULL,
|
||||
|
@ -190,6 +190,42 @@
|
||||
)";
|
||||
$db->query($sql);
|
||||
|
||||
$sql = "CREATE TABLE news_msg (
|
||||
con int NOT NULL,
|
||||
msg int NOT NULL,
|
||||
uid varchar(255) DEFAULT '',
|
||||
udate int DEFAULT 0,
|
||||
path varchar(255) DEFAULT '',
|
||||
fromadd varchar(255) DEFAULT '',
|
||||
toadd varchar(255) DEFAULT '',
|
||||
ccadd varchar(255) DEFAULT '',
|
||||
bccadd varchar(255) DEFAULT '',
|
||||
reply_to varchar(255) DEFAULT '',
|
||||
sender varchar(255) DEFAULT '',
|
||||
return_path varchar(255) DEFAULT '',
|
||||
subject varchar(255) DEFAULT '',
|
||||
message_id varchar(255) DEFAULT '',
|
||||
reference varchar(255) DEFAULT '',
|
||||
in_reply_to varchar(255) DEFAULT '',
|
||||
follow_up_to varchar(255) DEFAULT '',
|
||||
nntp_posting_host varchar(255) DEFAULT '',
|
||||
nntp_posting_date varchar(255) DEFAULT '',
|
||||
x_complaints_to varchar(255) DEFAULT '',
|
||||
x_trace varchar(255) DEFAULT '',
|
||||
x_abuse_info varchar(255) DEFAULT '',
|
||||
x_mailer varchar(255) DEFAULT '',
|
||||
organization varchar(255) DEFAULT '',
|
||||
content_type varchar(255) DEFAULT '',
|
||||
content_description varchar(255) DEFAULT '',
|
||||
content_transfer_encoding varchar(255) DEFAULT '',
|
||||
mime_version varchar(255) DEFAULT '',
|
||||
msgsize int(11) DEFAULT 0,
|
||||
msglines int(11) DEFAULT 0,
|
||||
body text NOT NULL,
|
||||
unique(con,msg)
|
||||
)";
|
||||
$db->query($sql);
|
||||
|
||||
$sql = "CREATE TABLE lang (
|
||||
message_id varchar(150) DEFAULT '' NOT NULL,
|
||||
app_name varchar(100) DEFAULT 'common' NOT NULL,
|
||||
|
@ -259,7 +259,7 @@
|
||||
global $currentver, $phpgw_info, $db;
|
||||
|
||||
// The 0.9.3pre1 is only temp until release
|
||||
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1" || $currentver == "0.9.3pre2" || $currentver == "0.9.3pre3" || $currentver == "0.9.3pre4" || $currentver == "0.9.3pre5" || $currentver == "0.9.3pre6") {
|
||||
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1" || $currentver == "0.9.3pre2" || $currentver == "0.9.3pre3" || $currentver == "0.9.3pre4" || $currentver == "0.9.3pre5" || $currentver == "0.9.3pre6" || $currentver == "0.9.3pre7" || $currentver = "0.9.3pre8") {
|
||||
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1") {
|
||||
v0_9_2to0_9_3update_owner("addressbook","ab_owner");
|
||||
v0_9_2to0_9_3update_owner("todo","todo_owner");
|
||||
@ -327,6 +327,45 @@
|
||||
update_version_table();
|
||||
}
|
||||
|
||||
if ($currentver == "0.9.3pre9") {
|
||||
$sql = "CREATE TABLE news_msg (
|
||||
con int(11) NOT NULL,
|
||||
msg int(11) NOT NULL,
|
||||
uid varchar(255) DEFAULT '',
|
||||
udate int(11) DEFAULT 0,
|
||||
path varchar(255) DEFAULT '',
|
||||
fromadd varchar(255) DEFAULT '',
|
||||
toadd varchar(255) DEFAULT '',
|
||||
ccadd varchar(255) DEFAULT '',
|
||||
bccadd varchar(255) DEFAULT '',
|
||||
reply_to varchar(255) DEFAULT '',
|
||||
sender varchar(255) DEFAULT '',
|
||||
return_path varchar(255) DEFAULT '',
|
||||
subject varchar(255) DEFAULT '',
|
||||
message_id varchar(255) DEFAULT '',
|
||||
reference varchar(255) DEFAULT '',
|
||||
in_reply_to varchar(255) DEFAULT '',
|
||||
follow_up_to varchar(255) DEFAULT '',
|
||||
nntp_posting_host varchar(255) DEFAULT '',
|
||||
nntp_posting_date varchar(255) DEFAULT '',
|
||||
x_complaints_to varchar(255) DEFAULT '',
|
||||
x_trace varchar(255) DEFAULT '',
|
||||
x_abuse_info varchar(255) DEFAULT '',
|
||||
x_mailer varchar(255) DEFAULT '',
|
||||
organization varchar(255) DEFAULT '',
|
||||
content_type varchar(255) DEFAULT '',
|
||||
content_description varchar(255) DEFAULT '',
|
||||
content_transfer_encoding varchar(255) DEFAULT '',
|
||||
mime_version varchar(255) DEFAULT '',
|
||||
msgsize int(11) DEFAULT 0,
|
||||
msglines int(11) DEFAULT 0,
|
||||
body longtext NOT NULL,
|
||||
primary key(con,msg)
|
||||
)";
|
||||
$db->query($sql);
|
||||
$currentver = "0.9.3pre10";
|
||||
update_version_table();
|
||||
}
|
||||
echo " <tr bgcolor=\"e6e6e6\">\n";
|
||||
echo " <td>Upgrade from 0.9.2 to $currentver is completed.</td>\n";
|
||||
echo " </tr>\n";
|
||||
|
@ -251,7 +251,7 @@
|
||||
$didupgrade = True;
|
||||
|
||||
// The 0.9.3pre1 is only temp until release
|
||||
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1" || $currentver == "0.9.3pre2" || $currentver == "0.9.3pre3" || $currentver == "0.9.3pre4" || $currentver == "0.9.3pre5" || $currentver == "0.9.3pre6") {
|
||||
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1" || $currentver == "0.9.3pre2" || $currentver == "0.9.3pre3" || $currentver == "0.9.3pre4" || $currentver == "0.9.3pre5" || $currentver == "0.9.3pre6" || $currentver == "0.9.3pre7") {
|
||||
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1") {
|
||||
update_owner("addressbook","ab_owner");
|
||||
update_owner("todo","todo_owner");
|
||||
@ -317,6 +317,46 @@
|
||||
update_version_table();
|
||||
}
|
||||
|
||||
if ($currentver == "0.9.3pre9") {
|
||||
$sql = "CREATE TABLE news_msg (
|
||||
con int(11) NOT NULL,
|
||||
msg int(11) NOT NULL,
|
||||
uid varchar(255) DEFAULT '',
|
||||
udate int(11) DEFAULT 0,
|
||||
path varchar(255) DEFAULT '',
|
||||
fromadd varchar(255) DEFAULT '',
|
||||
toadd varchar(255) DEFAULT '',
|
||||
ccadd varchar(255) DEFAULT '',
|
||||
bccadd varchar(255) DEFAULT '',
|
||||
reply_to varchar(255) DEFAULT '',
|
||||
sender varchar(255) DEFAULT '',
|
||||
return_path varchar(255) DEFAULT '',
|
||||
subject varchar(255) DEFAULT '',
|
||||
message_id varchar(255) DEFAULT '',
|
||||
reference varchar(255) DEFAULT '',
|
||||
in_reply_to varchar(255) DEFAULT '',
|
||||
follow_up_to varchar(255) DEFAULT '',
|
||||
nntp_posting_host varchar(255) DEFAULT '',
|
||||
nntp_posting_date varchar(255) DEFAULT '',
|
||||
x_complaints_to varchar(255) DEFAULT '',
|
||||
x_trace varchar(255) DEFAULT '',
|
||||
x_abuse_info varchar(255) DEFAULT '',
|
||||
x_mailer varchar(255) DEFAULT '',
|
||||
organization varchar(255) DEFAULT '',
|
||||
content_type varchar(255) DEFAULT '',
|
||||
content_description varchar(255) DEFAULT '',
|
||||
content_transfer_encoding varchar(255) DEFAULT '',
|
||||
mime_version varchar(255) DEFAULT '',
|
||||
msgsize int(11) DEFAULT 0,
|
||||
msglines int(11) DEFAULT 0,
|
||||
body text NOT NULL,
|
||||
primary key(con,msg)
|
||||
)";
|
||||
$db->query($sql);
|
||||
$currentver = "0.9.3pre10";
|
||||
update_version_table();
|
||||
}
|
||||
|
||||
echo " <tr bgcolor=\"e6e6e6\">\n";
|
||||
echo " <td>Upgrade from 0.9.2 to $currentver is completed.</td>\n";
|
||||
echo " </tr>\n";
|
||||
|
@ -1 +1 @@
|
||||
<?php $phpgw_info["server"]["version"] = "0.9.3pre9"; ?>
|
||||
<?php $phpgw_info["server"]["version"] = "0.9.3pre10"; ?>
|
||||
|
Loading…
Reference in New Issue
Block a user