mirror of
https://github.com/xevidos/codiad.git
synced 2024-12-23 06:12:16 +01:00
Fixed max key length 1000 on mysql, Fixed array to string conversion in update script.
This commit is contained in:
parent
d19fa309f7
commit
b7e1f96ab4
2 changed files with 3 additions and 3 deletions
|
@ -395,7 +395,7 @@ class sql_conversions {
|
|||
}
|
||||
if( $dbtype == "mysql" && $fields[$id] == "text" ) {
|
||||
|
||||
$fields_string .= "{$id_open}{$id}{$id_close}(1024),";
|
||||
$fields_string .= "{$id_open}{$id}{$id_close}(1000),";
|
||||
} else {
|
||||
|
||||
$fields_string .= "{$id_open}{$id}{$id_close},";
|
||||
|
|
|
@ -221,10 +221,10 @@ class updater {
|
|||
$connection = $sql->connect();
|
||||
$result = $sql->create_default_tables();
|
||||
|
||||
if ( $result === false ) {
|
||||
if ( ! $result === true ) {
|
||||
|
||||
$this->restore();
|
||||
exit( $connection->errorInfo() );
|
||||
exit( json_encode( $connection->errorInfo(), JSON_PRETTY_PRINT ) );
|
||||
}
|
||||
|
||||
if( file_exists( $user_settings_file ) ) {
|
||||
|
|
Loading…
Reference in a new issue