1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 07:36: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

@@ -1,28 +1,28 @@
<?php exit; ?>
CREATE TABLE featurebox (
`fb_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`fb_title` varchar(200) NOT NULL DEFAULT '',
`fb_text` text NOT NULL,
`fb_mode` tinyint(3) unsigned NOT NULL DEFAULT '0',
`fb_class` smallint(5) NOT NULL DEFAULT '0',
`fb_rendertype` tinyint(1) unsigned NOT NULL DEFAULT '0',
`fb_template` varchar(50) NOT NULL DEFAULT '',
`fb_order` tinyint(3) unsigned NOT NULL DEFAULT '0',
`fb_image` varchar(255) NOT NULL DEFAULT '',
`fb_imageurl` text NOT NULL,
`fb_category` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`fb_id`),
KEY `fb_category` (`fb_category`)
) TYPE=MyISAM;
CREATE TABLE featurebox_category (
`fb_category_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`fb_category_title` varchar(200) NOT NULL DEFAULT '',
`fb_category_icon` varchar(255) NOT NULL DEFAULT '',
`fb_category_template` varchar(50) NOT NULL DEFAULT 'default',
`fb_category_random` tinyint(1) unsigned NOT NULL DEFAULT '0',
`fb_category_class` smallint(5) NOT NULL DEFAULT '0',
`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;
<?php exit; ?>
CREATE TABLE featurebox (
`fb_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`fb_title` varchar(200) NOT NULL DEFAULT '',
`fb_text` text NOT NULL,
`fb_mode` tinyint(3) unsigned NOT NULL DEFAULT '0',
`fb_class` smallint(5) NOT NULL DEFAULT '0',
`fb_rendertype` tinyint(1) unsigned NOT NULL DEFAULT '0',
`fb_template` varchar(50) NOT NULL DEFAULT '',
`fb_order` tinyint(3) unsigned NOT NULL DEFAULT '0',
`fb_image` varchar(255) NOT NULL DEFAULT '',
`fb_imageurl` text NOT NULL,
`fb_category` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`fb_id`),
KEY `fb_category` (`fb_category`)
) ENGINE=MyISAM;
CREATE TABLE featurebox_category (
`fb_category_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`fb_category_title` varchar(200) NOT NULL DEFAULT '',
`fb_category_icon` varchar(255) NOT NULL DEFAULT '',
`fb_category_template` varchar(50) NOT NULL DEFAULT 'default',
`fb_category_random` tinyint(1) unsigned NOT NULL DEFAULT '0',
`fb_category_class` smallint(5) NOT NULL DEFAULT '0',
`fb_category_limit` tinyint(3) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`fb_category_id`),
UNIQUE KEY `fb_category_template` (`fb_category_template`)
) ENGINE=MyISAM;