try to recover from bad update
This commit is contained in:
parent
5d9f924642
commit
696f62331d
2
boot.php
2
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' );
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user