aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-03 17:22:35 -0800
committerfriendica <info@friendica.com>2013-02-03 17:22:35 -0800
commit4ae5445e032aadd918dc75ca71bc6819f05bb2f4 (patch)
tree79d3c259b04fa336ac512cf85c9f1e056e21f899 /install/update.php
parentb41106f2fbebfd0bbc2bfc70efd3421073469f44 (diff)
downloadvolse-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.php9
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;
+}