1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 05:37:32 +02:00

Plugin SQL setup - 'TYPE'-->'ENGINE' for compatibility with recent MySQL

This commit is contained in:
e107steved
2011-03-11 18:58:39 +00:00
parent 81020795e9
commit 76db31ade1
22 changed files with 431 additions and 431 deletions

View File

@@ -2,4 +2,4 @@ CREATE TABLE alt_auth (
auth_type varchar(20) NOT NULL default '',
auth_parmname varchar(30) NOT NULL default '',
auth_parmval varchar(120) NOT NULL default ''
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -14,4 +14,4 @@ CREATE TABLE banner (
banner_ip text NOT NULL,
banner_campaign varchar(150) NOT NULL default '',
PRIMARY KEY (banner_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -16,12 +16,12 @@ CREATE TABLE event (
event_rec_y tinyint(2) unsigned NOT NULL default '0',
PRIMARY KEY (event_id),
KEY event_start (event_start)
) TYPE=MyISAM;,
) ENGINE=MyISAM;,
CREATE TABLE event_cat (
event_cat_id smallint(5) unsigned NOT NULL auto_increment,
event_cat_name varchar(100) NOT NULL default '',
event_cat_icon varchar(100) NOT NULL default '',
event_cat_class int(10) NOT NULL default '0',
event_cat_class int(10) unsigned NOT NULL default '0',
event_cat_subs tinyint(3) unsigned NOT NULL default '0',
event_cat_ahead tinyint(3) unsigned NOT NULL default '0',
event_cat_msg1 text,
@@ -30,14 +30,14 @@ CREATE TABLE event (
event_cat_last int(10) unsigned NOT NULL default '0',
event_cat_today int(10) unsigned NOT NULL default '0',
event_cat_lastupdate int(10) unsigned NOT NULL default '0',
event_cat_addclass int(10) NOT NULL default '0',
event_cat_addclass int(10) unsigned NOT NULL default '0',
event_cat_description text,
event_cat_force_class int(10) NOT NULL default '0',
event_cat_force_class int(10) unsigned NOT NULL default '0',
PRIMARY KEY (event_cat_id)
) TYPE=MyISAM;,
) ENGINE=MyISAM;,
CREATE TABLE event_subs (
event_subid int(10) unsigned NOT NULL auto_increment,
event_userid int(10) unsigned NOT NULL default '0',
event_cat int(10) unsigned NOT NULL default '0',
PRIMARY KEY (event_subid)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -6,4 +6,4 @@ CREATE TABLE chatbox (
cb_blocked tinyint(3) unsigned NOT NULL default '0',
cb_ip varchar(45) NOT NULL default '',
PRIMARY KEY (cb_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -54,6 +54,6 @@ CREATE TABLE pcontent (
content_layout varchar(255) NOT NULL default '',
PRIMARY KEY (content_id),
KEY content_parent (content_parent)
) TYPE=MyISAM;
) ENGINE=MyISAM;
# --------------------------------------------------------

View File

@@ -24,7 +24,7 @@ CREATE TABLE download (
PRIMARY KEY (download_id),
UNIQUE KEY download_name (download_name),
KEY download_category (download_category)
) TYPE=MyISAM;
) ENGINE=MyISAM;
# --------------------------------------------------------
#
@@ -39,7 +39,7 @@ CREATE TABLE download_category (
download_category_class varchar(255) NOT NULL default '0',
download_category_order int(10) unsigned NOT NULL default '0',
PRIMARY KEY (download_category_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;
# --------------------------------------------------------
#
@@ -54,7 +54,7 @@ CREATE TABLE download_mirror (
mirror_description text NOT NULL,
mirror_count int(10) unsigned NOT NULL default '0',
PRIMARY KEY (mirror_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;
# --------------------------------------------------------
#
@@ -70,5 +70,5 @@ CREATE TABLE download_requests (
KEY download_request_userid (download_request_userid),
KEY download_request_download_id (download_request_download_id),
KEY download_request_datestamp (download_request_datestamp)
) TYPE=MyISAM;
) ENGINE=MyISAM;
# --------------------------------------------------------

View File

@@ -8,7 +8,7 @@ CREATE TABLE faqs (
faq_author int(10) unsigned default NULL,
faq_order int(6) unsigned NOT NULL default '0',
PRIMARY KEY (faq_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;
CREATE TABLE faqs_info (
faq_info_id int(10) unsigned NOT NULL auto_increment,
@@ -19,5 +19,5 @@ CREATE TABLE faqs_info (
faq_info_order tinyint(3) unsigned NOT NULL default '0',
faq_info_icon varchar(255) NOT NULL,
PRIMARY KEY (faq_info_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -13,7 +13,7 @@ CREATE TABLE featurebox (
`fb_category` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`fb_id`),
KEY `fb_category` (`fb_category`)
) TYPE=MyISAM;
) ENGINE=MyISAM;
CREATE TABLE featurebox_category (
`fb_category_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
@@ -25,4 +25,4 @@ CREATE TABLE featurebox_category (
`fb_category_limit` tinyint(3) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`fb_category_id`),
UNIQUE KEY `fb_category_template` (`fb_category_template`)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -19,7 +19,7 @@ CREATE TABLE forum (
PRIMARY KEY (`forum_id`),
KEY `forum_parent` (`forum_parent`),
KEY `forum_sub` (`forum_sub`)
) Type=MyISAM AUTO_INCREMENT=1;
) ENGINE=MyISAM AUTO_INCREMENT=1;
CREATE TABLE forum_thread (
`thread_id` int(10) unsigned NOT NULL auto_increment,
@@ -40,7 +40,7 @@ CREATE TABLE forum_thread (
KEY `thread_forum_id` (`thread_forum_id`),
KEY `thread_sticky` (`thread_sticky`),
KEY `thread_lastpost` (`thread_lastpost`)
) Type=MyISAM AUTO_INCREMENT=1 ;
) ENGINE=MyISAM AUTO_INCREMENT=1 ;
CREATE TABLE forum_post (
`post_id` int(10) unsigned NOT NULL auto_increment,
@@ -62,7 +62,7 @@ CREATE TABLE forum_post (
KEY `post_forum` (`post_forum`),
KEY `post_datestamp` (`post_datestamp`),
KEY `post_user` (`post_user`)
) Type=MyISAM AUTO_INCREMENT=1 ;
) ENGINE=MyISAM AUTO_INCREMENT=1 ;
CREATE TABLE forum_track (
`track_userid` int(10) unsigned NOT NULL,
@@ -70,5 +70,5 @@ CREATE TABLE forum_track (
PRIMARY KEY (`track_userid`,`track_thread`),
KEY `track_userid` (`track_userid`),
KEY `track_thread` (`track_thread`)
) Type=MyISAM;
) ENGINE=MyISAM;

View File

@@ -10,4 +10,4 @@ CREATE TABLE gsitemap (
gsitemap_img varchar(50) NOT NULL default '',
gsitemap_active int(3) NOT NULL default '0',
PRIMARY KEY (gsitemap_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -28,7 +28,7 @@ CREATE TABLE links_page_cat (
link_category_class varchar(100) NOT NULL default '0',
link_category_datestamp int(10) unsigned NOT NULL default '0',
PRIMARY KEY (link_category_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;
# --------------------------------------------------------
# Table structure for table `links_page`
@@ -47,5 +47,5 @@ CREATE TABLE links_page (
link_datestamp int(10) unsigned NOT NULL default '0',
link_author varchar(255) NOT NULL default '',
PRIMARY KEY (link_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;
# --------------------------------------------------------

View File

@@ -7,4 +7,4 @@ linkword_tooltip text NOT NULL,
linkword_tip_id int(10) UNSIGNED NOT NULL Default '0',
linkword_newwindow tinyint(1) unsigned NOT NULL default '1',
PRIMARY KEY (linkword_id)
) TYPE=MyISAM AUTO_INCREMENT=1;
) ENGINE=MyISAM AUTO_INCREMENT=1;

View File

@@ -4,4 +4,4 @@ CREATE TABLE logstats (
log_data longtext NOT NULL,
PRIMARY KEY (log_uniqueid),
UNIQUE KEY log_id (log_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -9,4 +9,4 @@ CREATE TABLE newsfeed (
newsfeed_active tinyint(1) unsigned NOT NULL default '0',
newsfeed_updateint int(10) unsigned NOT NULL default '0',
PRIMARY KEY (newsfeed_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -10,4 +10,4 @@ CREATE TABLE newsletter (
newsletter_flag tinyint(4) NOT NULL,
newsletter_issue varchar(100) NOT NULL,
PRIMARY KEY (newsletter_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -12,7 +12,7 @@ CREATE TABLE private_msg (
pm_option varchar(250) NOT NULL default '', /* Options associated with PM - '+rr' for read receipt */
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 private_msg_block (
pm_block_id int(10) unsigned NOT NULL auto_increment,
@@ -21,4 +21,4 @@ CREATE TABLE private_msg_block (
pm_block_datestamp int(10) unsigned NOT NULL default '0',
pm_block_count int(10) unsigned NOT NULL default '0', /* Counts number of blocked PMs */
PRIMARY KEY (pm_block_id)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
) ENGINE=MyISAM AUTO_INCREMENT=1 ;

View File

@@ -15,4 +15,4 @@ CREATE TABLE polls (
poll_vote_userclass smallint(5) unsigned NOT NULL default '0',
poll_storage_method tinyint(1) unsigned NOT NULL default '0',
PRIMARY KEY (poll_id)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -10,4 +10,4 @@ CREATE TABLE release (
`release_compatibility` varchar(5) NOT NULL,
`release_url` varchar(255) NOT NULL,
PRIMARY KEY (`release_id`)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -10,4 +10,4 @@ CREATE TABLE rss (
rss_limit tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (rss_id),
KEY rss_name (rss_name)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -5,4 +5,4 @@ CREATE TABLE tagwords (
`tag_word` varchar(255) NOT NULL default '',
PRIMARY KEY (`tag_id`),
KEY `tag_word` (`tag_word`)
) TYPE=MyISAM AUTO_INCREMENT=1;
) ENGINE=MyISAM AUTO_INCREMENT=1;

View File

@@ -10,6 +10,6 @@ CREATE TABLE tinymce (
`tinymce_custom` text NOT NULL,
`tinymce_prefs` text NOT NULL,
PRIMARY KEY (`tinymce_id`)
) TYPE=MyISAM;
) ENGINE=MyISAM;

View File

@@ -7,4 +7,4 @@ CREATE TABLE trackback (
`trackback_blogname` varchar(150) NOT NULL default '',
PRIMARY KEY (`trackback_id`),
KEY `trackback_pid` (`trackback_pid`)
) TYPE=MyISAM AUTO_INCREMENT=1;
) ENGINE=MyISAM AUTO_INCREMENT=1;