]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_upgrade.c
* added a comment infront of the svn modifieable returns. Now it will be me listed...
[citadel.git] / citadel / serv_upgrade.c
index 8abbad180bbffc8e5d6437da80b3de9b4b181041..1c3012a512b1159d1b4b4646765f154b35066d1c 100644 (file)
@@ -43,6 +43,7 @@
 #include "msgbase.h"
 #include "tools.h"
 #include "serv_upgrade.h"
+#include "euidindex.h"
 
 
 
@@ -172,6 +173,14 @@ void update_config(void) {
                strcpy(config.c_ip_addr, "0.0.0.0");
        }
 
+       if (CitControl.version < 650) {
+               config.c_enable_fulltext = 0;
+       }
+
+       if (CitControl.version < 652) {
+               config.c_auto_cull = 1;
+       }
+
        put_config();
 }
 
@@ -208,6 +217,9 @@ void check_server_upgrades(void) {
        if ((CitControl.version > 000) && (CitControl.version < 608)) {
                convert_ctdluid_to_minusone();
        }
+       if ((CitControl.version > 000) && (CitControl.version < 659)) {
+               rebuild_euid_index();
+       }
 
        CitControl.version = REV_LEVEL;
        put_control();
@@ -217,5 +229,7 @@ void check_server_upgrades(void) {
 char *serv_upgrade_init(void)
 {
        check_server_upgrades();
+
+       /* return our Subversion id for the Log */
        return "$Id$";
 }