aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--boot.php2
-rw-r--r--database.sql9
-rw-r--r--update.php10
3 files changed, 20 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index f04b8c394..29e56c78c 100644
--- a/boot.php
+++ b/boot.php
@@ -4,7 +4,7 @@ set_time_limit(0);
define ( 'FRIENDIKA_VERSION', '2.1.946' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
-define ( 'DB_UPDATE_VERSION', 1049 );
+define ( 'DB_UPDATE_VERSION', 1050 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
diff --git a/database.sql b/database.sql
index defab4e8f..5ebc8a796 100644
--- a/database.sql
+++ b/database.sql
@@ -503,3 +503,12 @@ CREATE TABLE IF NOT EXISTS `ffinder` (
`fid` INT UNSIGNED NOT NULL
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
+
+CREATE TABLE IF NOT EXISTS `mailacct` (
+`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
+`server` CHAR( 255 ) NOT NULL ,
+`user` CHAR( 255 ) NOT NULL ,
+`pass` CHAR( 255 ) NOT NULL ,
+`reply_to` CHAR( 255 ) NOT NULL ,
+`last_check` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00'
+) ENGINE = MYISAM DEFAULT CHARSET=utf8; \ No newline at end of file
diff --git a/update.php b/update.php
index 3875933d2..9a8f87b10 100644
--- a/update.php
+++ b/update.php
@@ -432,3 +432,13 @@ function update_1048() {
q("UPDATE `contact` SET `writable` = 1 WHERE `network` = 'stat' AND `notify` != '' ");
}
+function update_1049() {
+ q("CREATE TABLE `mailacct` (
+ `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
+ `server` CHAR( 255 ) NOT NULL ,
+ `user` CHAR( 255 ) NOT NULL ,
+ `pass` CHAR( 255 ) NOT NULL ,
+ `reply_to` CHAR( 255 ) NOT NULL ,
+ `last_check` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00'
+ ) ENGINE = MYISAM ");
+} \ No newline at end of file