فهرست منبع

Merge pull request #734 from Oldiesmann/release-2.1

Fix a few upgrade bugs, one of which was caused by #729
Michael Eshom 11 سال پیش
والد
کامیت
1e69b00b45
3فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 2 3
      other/upgrade_2-1_mysql.sql
  2. 0 1
      other/upgrade_2-1_postgresql.sql
  3. 0 1
      other/upgrade_2-1_sqlite.sql

+ 2 - 3
other/upgrade_2-1_mysql.sql

@@ -413,7 +413,7 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}moderator_groups (
   id_board smallint(5) unsigned NOT NULL default '0',
   id_group smallint(5) unsigned NOT NULL default '0',
   PRIMARY KEY (id_board, id_group)
-) ENGINE=MyISAM;
+) ENGINE=MyISAM{$db_collation};
 ---#
 
 /******************************************************************************/
@@ -435,7 +435,7 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}qanda (
   answers text NOT NULL,
   PRIMARY KEY (id_question),
   KEY lngfile (lngfile)
-) ENGINE=MyISAM;
+) ENGINE=MyISAM{$db_collation};
 ---#
 
 ---# Moving questions and answers to the new table
@@ -467,6 +467,5 @@ $get_questions = upgrade_query("
 			WHERE comment_type = 'ver_test'
 		");
 	}
-}
 ---}
 ---#

+ 0 - 1
other/upgrade_2-1_postgresql.sql

@@ -532,6 +532,5 @@ CREATE TABLE {$db_prefix}qanda (
 			WHERE comment_type = 'ver_test'
 		");
 	}
-}
 ---}
 ---#

+ 0 - 1
other/upgrade_2-1_sqlite.sql

@@ -522,6 +522,5 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}qanda (
 			WHERE comment_type = 'ver_test'
 		");
 	}
-}
 ---}
 ---#