diff options
author | friendica <info@friendica.com> | 2013-08-19 21:19:39 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-19 21:19:39 -0700 |
commit | cd5fdbcb48a2e05198bb9daaf0753e8218ea4285 (patch) | |
tree | 8a2f57e1b6e99e9fe6b1f961b4d53b077603d046 /install | |
parent | b9314935e6f85bb0098c651d021ce9bdc2753ecb (diff) | |
download | volse-hubzilla-cd5fdbcb48a2e05198bb9daaf0753e8218ea4285.tar.gz volse-hubzilla-cd5fdbcb48a2e05198bb9daaf0753e8218ea4285.tar.bz2 volse-hubzilla-cd5fdbcb48a2e05198bb9daaf0753e8218ea4285.zip |
email attachments (and fix email photos)
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 1 | ||||
-rw-r--r-- | install/update.php | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/install/database.sql b/install/database.sql index 0a86b8321..4a519adbb 100644 --- a/install/database.sql +++ b/install/database.sql @@ -504,6 +504,7 @@ CREATE TABLE IF NOT EXISTS `mail` ( `channel_id` int(10) unsigned NOT NULL, `title` text NOT NULL, `body` mediumtext NOT NULL, + `attach` mediumtext NOT NULL DEFAULT '', `mid` char(255) NOT NULL, `parent_mid` char(255) NOT NULL, `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', diff --git a/install/update.php b/install/update.php index c97b5619f..682ee2aea 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1059 ); +define( 'UPDATE_VERSION' , 1060 ); /** * @@ -682,3 +682,10 @@ ADD INDEX ( `mitem_flags` ) "); return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1059() { + $r = q("ALTER TABLE `mail` ADD `attach` MEDIUMTEXT NOT NULL DEFAULT '' AFTER `body` "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |