 -- Table structure for table `#__components`
 --
 
-CREATE TABLE `#__components` (
+CREATE TABLE `#__extensions_components` (
   `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
+  `title` varchar(50) NOT NULL DEFAULT '',
   `name` varchar(50) NOT NULL DEFAULT '',
-  `link` varchar(255) NOT NULL DEFAULT '',
-  `menuid` int(11) unsigned NOT NULL DEFAULT '0',
-  `parent` int(11) unsigned NOT NULL DEFAULT '0',
-  `admin_menu_link` varchar(255) NOT NULL DEFAULT '',
-  `admin_menu_alt` varchar(255) NOT NULL DEFAULT '',
-  `option` varchar(50) NOT NULL DEFAULT '',
-  `ordering` int(11) NOT NULL DEFAULT '0',
-  `admin_menu_img` varchar(255) NOT NULL DEFAULT '',
   `params` text NOT NULL,
   `enabled` tinyint(4) NOT NULL DEFAULT '1',
   PRIMARY KEY (`id`),
-  KEY `parent_option` (`parent`,`option`(32))
 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
 
 -- --------------------------------------------------------

-- Table structure for table `#__pages_modules`
--

CREATE TABLE `#__pages_modules` (
  `modules_module_id` INT NOT NULL,
  `pages_page_id` INT NOT NULL,
  PRIMARY KEY (`modules_module_id`,`pages_page_id`),
  INDEX `ix_pages_page_id` (`pages_page_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------


-- Table structure for table `#__languages_tables`
--

CREATE TABLE `#__languages_tables` (
    `languages_table_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
    `extensions_component_id` INT UNSIGNED NOT NULL,
    `name` VARCHAR(64) NOT NULL,
    `unique_column` VARCHAR(64) NOT NULL,
    `enabled` BOOLEAN NOT NULL DEFAULT 0,
    PRIMARY KEY (`languages_table_id`),
    FOREIGN KEY (`extensions_component_id`) REFERENCES `#__extensions_components` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB CHARSET = utf8;

-- --------------------------------------------------------

