Revize 1352
Přidáno uživatelem Ondřej Fibich před více než 12 roky(ů)
freenetis/branches/testing/application/upgrade_sql/upgrade_sql_1171.php | ||
---|---|---|
/* Ifaces */
|
||
|
||
// optimalization
|
||
"ALTER TABLE `ifaces` ADD INDEX ( `mac` );",
|
||
// DISABLED 18.6.2012 BY ONDREJ FIBICH due to installation error:
|
||
// Incorrect key file for table 'ifaces'; try to repair it
|
||
//"ALTER TABLE `ifaces` ADD INDEX ( `mac` );",
|
||
|
||
// delete wrong references
|
||
"UPDATE ifaces
|
freenetis/branches/testing/application/libraries/MY_Controller.php | ||
---|---|---|
}
|
||
catch (Exception $e)
|
||
{
|
||
self::error(
|
||
UPGRADE, 'SVN: ' . $i . ' <br />' . __('file') .
|
||
': upgrade_sql_' . $i . '.php<br /><br />Function: ' .
|
||
$e->getMessage()
|
||
);
|
||
$message = 'SVN: ' . $i . ' <br />' . __('file')
|
||
. ': upgrade_sql_' . $i . '.php<br /><br />Function: '
|
||
. $e->getMessage() . '<br />Last SQL command: '
|
||
. @$query;
|
||
|
||
self::error(UPGRADE, $message);
|
||
}
|
||
// set up db schema
|
||
$config->set_db_schema_version($i);
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$message = 'SVN: ' . $this->current_svn_db_schema_version . ' <br />'
|
||
. __('file') . ': upgrade_sql_' . $i . '.php<br /><br />'
|
||
. 'Function: ' . $e->getMessage();
|
||
. __('file') . ': upgrade_sql.php<br /><br />'
|
||
. 'Function: ' . $e->getMessage()
|
||
. '<br />Last SQL command: ' . @$query;
|
||
|
||
$this->error(UPGRADE, $message);
|
||
}
|
Také k dispozici: Unified diff
Oprava nemozne ciste instalace na MySQL v. 5.5.24.
Pri chybe upgradu pridana moznost videt posledni neprovedeny SQL prikaz.