Fixed max key length 1000 on mysql, Fixed array to string conversion in update script.

This commit is contained in:
xevidos 2019-04-17 11:27:58 -04:00
parent d19fa309f7
commit b7e1f96ab4
2 changed files with 3 additions and 3 deletions

View file

@ -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},";

View file

@ -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 ) ) {