diff options
author | friendica <info@friendica.com> | 2013-02-03 17:22:35 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-03 17:22:35 -0800 |
commit | 4ae5445e032aadd918dc75ca71bc6819f05bb2f4 (patch) | |
tree | 79d3c259b04fa336ac512cf85c9f1e056e21f899 /install/update.php | |
parent | b41106f2fbebfd0bbc2bfc70efd3421073469f44 (diff) | |
download | volse-hubzilla-4ae5445e032aadd918dc75ca71bc6819f05bb2f4.tar.gz volse-hubzilla-4ae5445e032aadd918dc75ca71bc6819f05bb2f4.tar.bz2 volse-hubzilla-4ae5445e032aadd918dc75ca71bc6819f05bb2f4.zip |
support for OS files and add directory support to file/attach object
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index fa428b135..4973b92ff 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1025 ); +define( 'UPDATE_VERSION' , 1026 ); /** * @@ -325,3 +325,10 @@ ADD INDEX ( `revision` ) "); return UPDATE_FAILED; } +function update_r1025() { + $r = q("ALTER TABLE `attach` ADD `folder` CHAR( 64 ) NOT NULL DEFAULT '' AFTER `revision` , +ADD `flags` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `folder` , add index ( folder ), add index ( flags )"); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |