aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-20 22:38:33 -0700
committerfriendica <info@friendica.com>2014-05-20 22:38:33 -0700
commit696f62331d0edb541666e5ad72b69aa26940faeb (patch)
treeb333f88eb6530796bb7ff95f1fb1bc888bcc44f6 /install
parent5d9f924642872e30c83ac0de4807e0beb2c15011 (diff)
downloadvolse-hubzilla-696f62331d0edb541666e5ad72b69aa26940faeb.tar.gz
volse-hubzilla-696f62331d0edb541666e5ad72b69aa26940faeb.tar.bz2
volse-hubzilla-696f62331d0edb541666e5ad72b69aa26940faeb.zip
try to recover from bad update
Diffstat (limited to 'install')
-rw-r--r--install/update.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index b91589c28..cc755c8c2 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1110 );
+define( 'UPDATE_VERSION' , 1111 );
/**
*
@@ -1232,3 +1232,15 @@ function update_r1109() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+// We ended up with an extra zero in the name for 1108, so do it over and ignore the result.
+
+function update_r1110() {
+ $r = q("ALTER TABLE `app` ADD `app_addr` CHAR( 255 ) NOT NULL DEFAULT '',
+ADD `app_price` CHAR( 255 ) NOT NULL DEFAULT '',
+ADD `app_page` CHAR( 255 ) NOT NULL DEFAULT '',
+ADD INDEX ( `app_price` )");
+
+ return UPDATE_SUCCESS;
+
+}