mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Final changes from TYPE=MyISAM to ENGINE=MyISAM
This commit is contained in:
@@ -554,7 +554,7 @@ if(isset($_POST['do_fix']))
|
||||
$query = "CREATE TABLE `".MPREFIX.$table."` ({$newval}";
|
||||
if (!preg_match('#.*?\s+?(?:TYPE|ENGINE)\s*\=\s*(.*?);#is', $newval))
|
||||
{
|
||||
$query .= ') TYPE=MyISAM;';
|
||||
$query .= ') ENGINE=MyISAM;';
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@@ -26,7 +26,7 @@ CREATE TABLE user_extended_country (
|
||||
country_iso char(2) NOT NULL default '',
|
||||
PRIMARY KEY (country_code),
|
||||
KEY country_iso (country_iso)
|
||||
) TYPE=MyISAM;
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
INSERT INTO user_extended_country VALUES('AFG', 'Afghanistan', 'Asia', 'Southern and Central Asia', 'AF');
|
||||
INSERT INTO user_extended_country VALUES('NLD', 'Netherlands', 'Europe', 'Western Europe', 'NL');
|
||||
|
@@ -106,7 +106,7 @@ if (isset($_POST['GetOnWithIt']))
|
||||
user_prefs text NOT NULL,
|
||||
PRIMARY KEY (user_id),
|
||||
UNIQUE KEY user_name (user_name)
|
||||
) TYPE=MyISAM;"; // If not exists, of course
|
||||
) ENGINE=MyISAM;"; // If not exists, of course
|
||||
|
||||
if (!$pc_db->db_Select_gen($qry))
|
||||
{
|
||||
|
@@ -82,7 +82,7 @@ $eplug_tables = array(
|
||||
content_meta text NOT NULL,
|
||||
content_layout varchar(255) NOT NULL default '',
|
||||
PRIMARY KEY (content_id)
|
||||
) TYPE=MyISAM;",
|
||||
) ENGINE=MyISAM;",
|
||||
"INSERT INTO ".MPREFIX."pcontent VALUES (1, 'content', '', '', '', '1', '', '', '', '0', '0', '0', '0', '', '".time()."', '0', '0', '', '1', '0', '', '')",
|
||||
"INSERT INTO ".MPREFIX."pcontent VALUES (2, 'article', '', '', '', '1', '', '', '', '0', '0', '0', '0', '', '".time()."', '0', '0', '', '2', '0', '', '')",
|
||||
"INSERT INTO ".MPREFIX."pcontent VALUES (3, 'review', '', '', '', '1', '', '', '', '0', '0', '0', '0', '', '".time()."', '0', '0', '', '3', '0', '', '')"
|
||||
|
@@ -66,7 +66,7 @@ $eplug_tables = array(
|
||||
pm_option varchar(250) NOT NULL default '',
|
||||
pm_size int(10) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (pm_id)
|
||||
) TYPE=MyISAM AUTO_INCREMENT=1 ;",
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=1 ;",
|
||||
"CREATE TABLE ".MPREFIX."private_msg_block (
|
||||
pm_block_id int(10) unsigned NOT NULL auto_increment,
|
||||
pm_block_from int(10) unsigned NOT NULL default '0',
|
||||
@@ -74,7 +74,7 @@ $eplug_tables = array(
|
||||
pm_block_datestamp int(10) unsigned NOT NULL default '0',
|
||||
pm_block_count int(10) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (pm_block_id)
|
||||
) TYPE=MyISAM AUTO_INCREMENT=1 ;"
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=1 ;"
|
||||
);
|
||||
|
||||
// Create a link in main menu (yes=TRUE, no=FALSE) -------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user