email attachments (and fix email photos)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user