aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-22 17:48:42 -0800
committerfriendica <info@friendica.com>2013-01-22 17:48:42 -0800
commitcf2488e999944ca1135ac62955527a376ad0eac2 (patch)
treec9f2981c7c340b66fe5bbc9cc76e7b981deeea45 /install/update.php
parentbeb3301d43c0d532bd6984ee745074479babdabb (diff)
downloadvolse-hubzilla-cf2488e999944ca1135ac62955527a376ad0eac2.tar.gz
volse-hubzilla-cf2488e999944ca1135ac62955527a376ad0eac2.tar.bz2
volse-hubzilla-cf2488e999944ca1135ac62955527a376ad0eac2.zip
clean up the photo storage backend, revamp mod/wall_upload
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 0459df817..8decfc133 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1020 );
+define( 'UPDATE_VERSION' , 1021 );
/**
*
@@ -285,3 +285,10 @@ function update_r1019() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+function update_r1020() {
+ $r = q("alter table photo drop `contact-id`, drop guid, drop index `resource-id`, add index ( `resource_id` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}