diff options
author | friendica <info@friendica.com> | 2013-07-31 02:32:41 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-31 02:32:41 -0700 |
commit | c00c550c58f0125785b194c9413a98e114a7ab98 (patch) | |
tree | ca889fb3fcadeedc2bff623c9c8f0bf0ce57ee99 /install | |
parent | c45ebdf97f2170e575648ebdad2db0c52c2dcb4a (diff) | |
download | volse-hubzilla-c00c550c58f0125785b194c9413a98e114a7ab98.tar.gz volse-hubzilla-c00c550c58f0125785b194c9413a98e114a7ab98.tar.bz2 volse-hubzilla-c00c550c58f0125785b194c9413a98e114a7ab98.zip |
better mail obscuring
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 2 | ||||
-rw-r--r-- | install/update.php | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/install/database.sql b/install/database.sql index 29ee19a2d..dee9734fc 100644 --- a/install/database.sql +++ b/install/database.sql @@ -524,7 +524,7 @@ CREATE TABLE IF NOT EXISTS `mail` ( `to_xchan` char(255) NOT NULL DEFAULT '', `account_id` int(10) unsigned NOT NULL DEFAULT '0', `channel_id` int(10) unsigned NOT NULL, - `title` char(255) NOT NULL, + `title` text NOT NULL, `body` mediumtext NOT NULL, `mid` char(255) NOT NULL, `parent_mid` char(255) NOT NULL, diff --git a/install/update.php b/install/update.php index 1ea9aa377..f357dbba2 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1055 ); +define( 'UPDATE_VERSION' , 1056 ); /** * @@ -648,3 +648,11 @@ function update_r1054() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1055() { + $r = q("ALTER TABLE `mail` CHANGE `title` `title` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |