aboutsummaryrefslogtreecommitdiffstats
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
parent5d9f924642872e30c83ac0de4807e0beb2c15011 (diff)
downloadvolse-hubzilla-696f62331d0edb541666e5ad72b69aa26940faeb.tar.gz
volse-hubzilla-696f62331d0edb541666e5ad72b69aa26940faeb.tar.bz2
volse-hubzilla-696f62331d0edb541666e5ad72b69aa26940faeb.zip
try to recover from bad update
-rwxr-xr-xboot.php2
-rw-r--r--install/update.php14
2 files changed, 14 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 71392e673..14a3d8770 100755
--- a/boot.php
+++ b/boot.php
@@ -47,7 +47,7 @@ define ( 'RED_PLATFORM', 'Red Matrix' );
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
define ( 'ZOT_REVISION', 1 );
-define ( 'DB_UPDATE_VERSION', 1110 );
+define ( 'DB_UPDATE_VERSION', 1111 );
define ( 'EOL', '<br />' . "\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
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;
+
+}