Просмотр исходного кода

#1054 Convert all field from utf8 to utf8mb4

Alex Trofimov 8 лет назад
Родитель
Сommit
28c77a72fb

+ 3 - 0
inc/classes/BxDolDb.php

@@ -1127,6 +1127,7 @@ class BxDolDb extends BxDolFactory implements iBxDolSingleton
                         }
 
         $sOutput = '';
+        
         if(!empty($aError['query']))
             $sOutput .= '<p><b>Query:</b><br />' . $aError['query'] . '</p>';
 
@@ -1136,6 +1137,8 @@ class BxDolDb extends BxDolFactory implements iBxDolSingleton
 		if(!empty($aErrorLocation))
 			$sOutput .= '<p><b>Location:</b><br />The error was found in <b>' . $aErrorLocation['function'] . '</b> function in the file <b>' . $aErrorLocation['file'] . '</b> at line <b>' . $aErrorLocation['line'] . '</b>.</p>';
 
+        $sOutput .= '<p><b>collation_connection:</b><br />' . $this->getOne("SELECT @@collation_connection") . '</p>';
+        
 		if(!empty($aError['trace'])) {
             $sBackTrace = print_r($aError['trace'], true);
             if (defined ('BX_DATABASE_USER'))

Разница между файлами не показана из-за своего большого размера
+ 0 - 1
install/sql/system.sql


+ 1 - 1
modules/boonex/antispam/install/sql/install.sql

@@ -41,7 +41,7 @@ CREATE TABLE IF NOT EXISTS `bx_antispam_disposable_email_domains` (
   `domain` varchar(255) NOT NULL,
   `list` enum('blacklist','custom_blacklist','whitelist','custom_whitelist') NOT NULL DEFAULT 'custom_blacklist',
   PRIMARY KEY (`id`),
-  UNIQUE KEY `domain` (`domain`)
+  UNIQUE KEY `domain` (`domain`(191))
 );
 
 CREATE TABLE `bx_antispam_block_log` (

+ 1 - 1
modules/boonex/market/install/sql/install.sql

@@ -33,7 +33,7 @@ CREATE TABLE IF NOT EXISTS `bx_market_products` (
   `status` enum('active','hidden') NOT NULL DEFAULT 'active',
   `status_admin` enum('active','hidden') NOT NULL DEFAULT 'active',
   PRIMARY KEY (`id`),
-  UNIQUE KEY `name` (`name`),
+  UNIQUE KEY `name` (`name`(191)),
   FULLTEXT KEY `title_text` (`title`,`text`)
 );
 

Некоторые файлы не были показаны из-за большого количества измененных файлов