Your IP : 216.73.216.240


Current Path : /home/juvelize/www/administrator/components/com_myrssreader/sql/
Upload File :
Current File : /home/juvelize/www/administrator/components/com_myrssreader/sql/install.mysql.sql

CREATE TABLE IF NOT EXISTS `#__myrssreader` (
	`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
	`title` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
	`web_url` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
	`rss_url` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
	`last_check` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
	`check_errors` int(11) unsigned NOT NULL DEFAULT '0',
	`last_feeds_number` int(11) unsigned NOT NULL DEFAULT '0',
	`checks_counter` int(11) unsigned NOT NULL DEFAULT '0',
	`new_feeds_average` float unsigned NOT NULL DEFAULT '0',
	`checked_out` int(11) unsigned NOT NULL DEFAULT '0',
	`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
	`published` int(1) unsigned NOT NULL DEFAULT '0',
	PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `#__myrssreader_cache` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `rss_id` int(11) unsigned NOT NULL,
  `hash` varchar(32) NOT NULL,
  `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `item_date` datetime NOT NULL,
  `item_title` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `item_content` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `item_link` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `hash` (`hash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `#__myrssreader_category` (
	`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
	`title` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ,
	`description` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ,
	`checked_out` int(11) unsigned NOT NULL DEFAULT '0',
	`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
	PRIMARY KEY (`id`)
) ENGINE = MYISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;

CREATE TABLE IF NOT EXISTS `#__myrssreader_category_rss` (
	`category_id` int(11) UNSIGNED NOT NULL ,
	`rss_id` int(11) UNSIGNED NOT NULL ,
	INDEX (`category_id`)
) ENGINE = MYISAM ;

CREATE TABLE IF NOT EXISTS `#__myrssreader_advertisement` (
	`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT ,
	`title` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ,
	`html_code` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
	`checked_out` int(11) unsigned NOT NULL DEFAULT '0',
	`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
	`published` int(1) unsigned NOT NULL DEFAULT '0',
	PRIMARY KEY (`id`)
) ENGINE = MYISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `#__myrssreader_category_advertisement` (
	`category_id` int(11) UNSIGNED NOT NULL ,
	`advertisement_id` int(11) UNSIGNED NOT NULL ,
	INDEX (`category_id`)
) ENGINE = MYISAM ;