SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
-- --------------------------------------------------------
-- Table structure for table `ttrss_access_keys`
CREATE TABLE `ttrss_access_keys` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`access_key` varchar(250) NOT NULL,
`feed_id` varchar(250) NOT NULL,
`is_cat` tinyint(1) NOT NULL DEFAULT '0',
`owner_uid` int(11) NOT NULL,
KEY `owner_uid` (`owner_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `ttrss_archived_feeds`
CREATE TABLE `ttrss_archived_feeds` (
`owner_uid` int(11) NOT NULL,
`created` datetime NOT NULL,
`title` varchar(200) NOT NULL,
`feed_url` text NOT NULL,
`site_url` varchar(250) NOT NULL DEFAULT '',
KEY `owner_uid` (`owner_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `ttrss_cat_counters_cache`
CREATE TABLE `ttrss_cat_counters_cache` (
`feed_id` int(11) NOT NULL,
`owner_uid` int(11) NOT NULL,
`value` int(11) NOT NULL DEFAULT '0',
`updated` datetime NOT NULL,
KEY `owner_uid` (`owner_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `ttrss_counters_cache`
CREATE TABLE `ttrss_counters_cache` (
`feed_id` int(11) NOT NULL,
`owner_uid` int(11) NOT NULL,
`value` int(11) NOT NULL DEFAULT '0',
`updated` datetime NOT NULL,
KEY `owner_uid` (`owner_uid`),
KEY `ttrss_counters_cache_feed_id_idx` (`feed_id`),
KEY `ttrss_counters_cache_value_idx` (`value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `ttrss_enclosures`
CREATE TABLE `ttrss_enclosures` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content_url` text NOT NULL,
`content_type` varchar(250) NOT NULL,
`post_id` int(11) NOT NULL,
`duration` text NOT NULL,
`width` int(11) NOT NULL DEFAULT '0',
`height` int(11) NOT NULL DEFAULT '0',
KEY `post_id` (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `ttrss_entries`
CREATE TABLE `ttrss_entries` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`guid` varchar(255) NOT NULL,
`updated` datetime NOT NULL,
`content` longtext NOT NULL,
`content_hash` varchar(250) NOT NULL,
`cached_content` longtext,
`no_orig_date` tinyint(1) NOT NULL DEFAULT '0',
`date_entered` datetime NOT NULL,
`date_updated` datetime NOT NULL,
`num_comments` int(11) NOT NULL DEFAULT '0',
`lang` varchar(2) DEFAULT NULL,
`comments` varchar(250) NOT NULL DEFAULT '',
`author` varchar(250) NOT NULL DEFAULT '',
UNIQUE KEY `guid` (`guid`),
KEY `ttrss_entries_date_entered_index` (`date_entered`),
KEY `ttrss_entries_updated_idx` (`updated`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `ttrss_entry_comments`
CREATE TABLE `ttrss_entry_comments` (
`ref_id` int(11) NOT NULL,
`owner_uid` int(11) NOT NULL,
`private` tinyint(1) NOT NULL DEFAULT '0',
`date_entered` datetime NOT NULL,
KEY `owner_uid` (`owner_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `ttrss_error_log`
CREATE TABLE `ttrss_error_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner_uid` int(11) DEFAULT NULL,
`errno` int(11) NOT NULL,
`filename` text NOT NULL,
`lineno` int(11) NOT NULL,
`created_at` datetime NOT NULL,
KEY `owner_uid` (`owner_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `ttrss_feedbrowser_cache`
CREATE TABLE `ttrss_feedbrowser_cache` (
`feed_url` text NOT NULL,
`site_url` text NOT NULL,
`subscribers` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `ttrss_feeds`
CREATE TABLE `ttrss_feeds` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner_uid` int(11) NOT NULL,
`title` varchar(200) NOT NULL,
`cat_id` int(11) DEFAULT NULL,
`feed_url` text NOT NULL,
`icon_url` varchar(250) NOT NULL DEFAULT '',
`update_interval` int(11) NOT NULL DEFAULT '0',
`purge_interval` int(11) NOT NULL DEFAULT '0',
`last_updated` datetime DEFAULT NULL,
`last_unconditional` datetime DEFAULT NULL,
`last_error` varchar(250) NOT NULL DEFAULT '',
`last_modified` varchar(250) NOT NULL DEFAULT '',
`favicon_avg_color` varchar(11) DEFAULT NULL,
`site_url` varchar(250) NOT NULL DEFAULT '',
`auth_login` varchar(250) NOT NULL DEFAULT '',
`auth_pass` varchar(250) NOT NULL DEFAULT '',
`parent_feed` int(11) DEFAULT NULL,
`private` tinyint(1) NOT NULL DEFAULT '0',
`rtl_content` tinyint(1) NOT NULL DEFAULT '0',
`hidden` tinyint(1) NOT NULL DEFAULT '0',
`include_in_digest` tinyint(1) NOT NULL DEFAULT '1',
`cache_images` tinyint(1) NOT NULL DEFAULT '0',
`hide_images` tinyint(1) NOT NULL DEFAULT '0',
`cache_content` tinyint(1) NOT NULL DEFAULT '0',
`auth_pass_encrypted` tinyint(1) NOT NULL DEFAULT '0',
`last_viewed` datetime DEFAULT NULL,
`last_update_started` datetime DEFAULT NULL,
`always_display_enclosures` tinyint(1) NOT NULL DEFAULT '0',
`update_method` int(11) NOT NULL DEFAULT '0',
`order_id` int(11) NOT NULL DEFAULT '0',
`mark_unread_on_update` tinyint(1) NOT NULL DEFAULT '0',
`update_on_checksum_change` tinyint(1) NOT NULL DEFAULT '0',
`strip_images` tinyint(1) NOT NULL DEFAULT '0',
`view_settings` varchar(250) NOT NULL DEFAULT '',
`pubsub_state` int(11) NOT NULL DEFAULT '0',
`favicon_last_checked` datetime DEFAULT NULL,
`feed_language` varchar(100) NOT NULL DEFAULT '',
UNIQUE KEY `feed_url` (`feed_url`(255),`owner_uid`),
KEY `owner_uid` (`owner_uid`),
KEY `parent_feed` (`parent_feed`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
-- Dumping data for table `ttrss_feeds`
INSERT INTO `ttrss_feeds` VALUES
(1, 1, 'Tiny Tiny RSS: Forum', NULL, 'http://tt-rss.org/forum/rss.php', '', 0, 0, NULL, NULL, '', '', NULL, '', '', '', NULL, 0, 0, 0, 1, 0, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, '', 0, NULL, '');
-- --------------------------------------------------------
-- Table structure for table `ttrss_feed_categories`
CREATE TABLE `ttrss_feed_categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner_uid` int(11) NOT NULL,
`title` varchar(200) NOT NULL,
`collapsed` tinyint(1) NOT NULL DEFAULT '0',
`order_id` int(11) NOT NULL DEFAULT '0',
`parent_cat` int(11) DEFAULT NULL,
`view_settings` varchar(250) NOT NULL DEFAULT '',
KEY `parent_cat` (`parent_cat`),
KEY `owner_uid` (`owner_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `ttrss_filters2`
CREATE TABLE `ttrss_filters2` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner_uid` int(11) NOT NULL,
`match_any_rule` tinyint(1) NOT NULL DEFAULT '0',
`enabled` tinyint(1) NOT NULL DEFAULT '1',
`inverse` tinyint(1) NOT NULL DEFAULT '0',
`title` varchar(250) NOT NULL DEFAULT '',
`order_id` int(11) NOT NULL DEFAULT '0',
`last_triggered` datetime DEFAULT NULL,
KEY `owner_uid` (`owner_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `ttrss_filters2_actions`
CREATE TABLE `ttrss_filters2_actions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`filter_id` int(11) NOT NULL,
`action_id` int(11) NOT NULL DEFAULT '1',
`action_param` varchar(250) NOT NULL DEFAULT '',
KEY `filter_id` (`filter_id`),
KEY `action_id` (`action_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `ttrss_filters2_rules`
CREATE TABLE `ttrss_filters2_rules` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`filter_id` int(11) NOT NULL,
`inverse` tinyint(1) NOT NULL DEFAULT '0',
`filter_type` int(11) NOT NULL,
`feed_id` int(11) DEFAULT NULL,
`cat_id` int(11) DEFAULT NULL,
`cat_filter` tinyint(1) NOT NULL DEFAULT '0',
KEY `filter_id` (`filter_id`),
KEY `filter_type` (`filter_type`),
KEY `feed_id` (`feed_id`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `ttrss_filter_actions`
CREATE TABLE `ttrss_filter_actions` (
`name` varchar(120) NOT NULL,
`description` varchar(250) NOT NULL,
UNIQUE KEY `name` (`name`),
UNIQUE KEY `description` (`description`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table `ttrss_filter_actions`
INSERT INTO `ttrss_filter_actions` VALUES
(1, 'filter', 'Delete article'),
(2, 'catchup', 'Mark as read'),
(3, 'mark', 'Set starred'),
(4, 'tag', 'Assign tags'),
(5, 'publish', 'Publish article'),
(6, 'score', 'Modify score'),
(7, 'label', 'Assign label'),
(8, 'stop', 'Stop / Do nothing'),
(9, 'plugin', 'Invoke plugin');
-- --------------------------------------------------------
-- Table structure for table `ttrss_filter_types`
CREATE TABLE `ttrss_filter_types` (
`name` varchar(120) NOT NULL,
`description` varchar(250) NOT NULL,
UNIQUE KEY `name` (`name`),
UNIQUE KEY `description` (`description`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table `ttrss_filter_types`
INSERT INTO `ttrss_filter_types` VALUES
(2, 'content', 'Content'),
(3, 'both', 'Title or Content'),
(5, 'date', 'Article Date'),
(7, 'tag', 'Article Tags');
-- --------------------------------------------------------
-- Table structure for table `ttrss_labels2`
CREATE TABLE `ttrss_labels2` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner_uid` int(11) NOT NULL,
`caption` varchar(250) NOT NULL,
`fg_color` varchar(15) NOT NULL DEFAULT '',
`bg_color` varchar(15) NOT NULL DEFAULT '',
KEY `owner_uid` (`owner_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `ttrss_linked_feeds`
CREATE TABLE `ttrss_linked_feeds` (
`feed_url` text NOT NULL,
`site_url` text NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`instance_id` int(11) NOT NULL,
`subscribers` int(11) NOT NULL,
KEY `instance_id` (`instance_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `ttrss_linked_instances`
CREATE TABLE `ttrss_linked_instances` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`last_connected` datetime NOT NULL,
`last_status_in` int(11) NOT NULL,
`last_status_out` int(11) NOT NULL,
`access_key` varchar(250) NOT NULL,
`access_url` text NOT NULL,
UNIQUE KEY `access_key` (`access_key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `ttrss_plugin_storage`
CREATE TABLE `ttrss_plugin_storage` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`owner_uid` int(11) NOT NULL,
`content` longtext NOT NULL,
KEY `owner_uid` (`owner_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `ttrss_prefs`
CREATE TABLE `ttrss_prefs` (
`pref_name` varchar(250) NOT NULL,
`type_id` int(11) NOT NULL,
`section_id` int(11) NOT NULL DEFAULT '1',
`access_level` int(11) NOT NULL DEFAULT '0',
`def_value` text NOT NULL,
PRIMARY KEY (`pref_name`),
KEY `type_id` (`type_id`),
KEY `section_id` (`section_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table `ttrss_prefs`
INSERT INTO `ttrss_prefs` VALUES
('ALLOW_DUPLICATE_POSTS', 1, 1, 0, 'false'),
('AUTO_ASSIGN_LABELS', 1, 3, 1, 'false'),
('BLACKLISTED_TAGS', 2, 3, 0, 'main, generic, misc, uncategorized, blog, blogroll, general, news'),
('CDM_AUTO_CATCHUP', 1, 2, 0, 'false'),
('CDM_EXPANDED', 1, 2, 1, 'true'),
('COMBINED_DISPLAY_MODE', 1, 2, 0, 'true'),
('CONFIRM_FEED_CATCHUP', 1, 2, 0, 'true'),
('DEFAULT_ARTICLE_LIMIT', 3, 2, 0, '30'),
('DEFAULT_SEARCH_LANGUAGE', 2, 2, 0, ''),
('DEFAULT_UPDATE_INTERVAL', 3, 1, 0, '30'),
('DIGEST_CATCHUP', 1, 4, 0, 'false'),
('DIGEST_ENABLE', 1, 4, 0, 'false'),
('DIGEST_PREFERRED_TIME', 2, 4, 0, '00:00'),
('ENABLE_API_ACCESS', 1, 1, 0, 'false'),
('ENABLE_FEED_CATS', 1, 2, 0, 'true'),
('FEEDS_SORT_BY_UNREAD', 1, 2, 0, 'false'),
('FRESH_ARTICLE_MAX_AGE', 3, 2, 1, '24'),
('HIDE_READ_FEEDS', 1, 2, 0, 'false'),
('HIDE_READ_SHOWS_SPECIAL', 1, 2, 1, 'true'),
('LONG_DATE_FORMAT', 2, 3, 0, 'D, M d Y - G:i'),
('ON_CATCHUP_SHOW_NEXT_FEED', 1, 2, 1, 'false'),
('PURGE_OLD_DAYS', 3, 1, 0, '60'),
('PURGE_UNREAD_ARTICLES', 1, 3, 0, 'true'),
('REVERSE_HEADLINES', 1, 2, 0, 'false'),
('SHORT_DATE_FORMAT', 2, 3, 0, 'M d, G:i'),
('SHOW_CONTENT_PREVIEW', 1, 2, 1, 'true'),
('SORT_HEADLINES_BY_FEED_DATE', 1, 2, 1, 'false'),
('SSL_CERT_SERIAL', 2, 3, 0, ''),
('STRIP_IMAGES', 1, 2, 0, 'false'),
('STRIP_UNSAFE_TAGS', 1, 3, 0, 'true'),
('USER_CSS_THEME', 2, 2, 0, ''),
('USER_LANGUAGE', 2, 2, 0, ''),
('USER_STYLESHEET', 2, 2, 0, ''),
('USER_TIMEZONE', 2, 1, 0, 'Automatic'),
('VFEED_GROUP_BY_FEED', 1, 2, 1, 'false'),
('_COLLAPSED_FEEDLIST', 1, 1, 0, 'false'),
('_COLLAPSED_LABELS', 1, 1, 0, 'false'),
('_COLLAPSED_SPECIAL', 1, 1, 0, 'false'),
('_COLLAPSED_UNCAT', 1, 1, 0, 'false'),
('_DEFAULT_INCLUDE_CHILDREN', 1, 1, 0, 'false'),
('_DEFAULT_VIEW_LIMIT', 3, 1, 0, '30'),
('_DEFAULT_VIEW_MODE', 2, 1, 0, 'adaptive'),
('_DEFAULT_VIEW_ORDER_BY', 2, 1, 0, 'default'),
('_ENABLED_PLUGINS', 2, 1, 0, ''),
('_MOBILE_BROWSE_CATS', 1, 1, 0, 'true'),
('_MOBILE_ENABLE_CATS', 1, 1, 0, 'false'),