aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-10 19:00:22 -0800
committerfriendica <info@friendica.com>2013-02-10 19:00:22 -0800
commit869b704b4019b49fdb5fb174fabd13b4e0e9aec0 (patch)
tree0d81f107bbbc15d0eea778efb722701b8dde1f55 /install/update.php
parent27c9288addb1630551633bdc4e631d4d01b5b93e (diff)
downloadvolse-hubzilla-869b704b4019b49fdb5fb174fabd13b4e0e9aec0.tar.gz
volse-hubzilla-869b704b4019b49fdb5fb174fabd13b4e0e9aec0.tar.bz2
volse-hubzilla-869b704b4019b49fdb5fb174fabd13b4e0e9aec0.zip
add mimetype to items
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 4973b92ff..d4d1bdf50 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1026 );
+define( 'UPDATE_VERSION' , 1027 );
/**
*
@@ -332,3 +332,13 @@ ADD `flags` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `folder` , add index ( folde
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+function update_r1026() {
+ $r = q("ALTER TABLE `item` ADD `mimetype` CHAR( 255 ) NOT NULL DEFAULT '' AFTER `author_xchan` ,
+ADD INDEX ( `mimetype` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+
+