forked from joomla/Component-Builder
83 lines
3.6 KiB
MySQL
83 lines
3.6 KiB
MySQL
|
CREATE TABLE IF NOT EXISTS `#__componentbuilder_field` (
|
||
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
||
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
||
|
`add_css_view` TINYINT(1) NOT NULL DEFAULT 0,
|
||
|
`add_css_views` TINYINT(1) NOT NULL DEFAULT 0,
|
||
|
`add_javascript_view_footer` TINYINT(1) NOT NULL DEFAULT 0,
|
||
|
`add_javascript_views_footer` TINYINT(1) NOT NULL DEFAULT 0,
|
||
|
`catid` INT(11) NOT NULL DEFAULT 0,
|
||
|
`css_view` TEXT NOT NULL,
|
||
|
`css_views` TEXT NOT NULL,
|
||
|
`datadefault` CHAR(64) NOT NULL DEFAULT '',
|
||
|
`datadefault_other` CHAR(64) NOT NULL DEFAULT '',
|
||
|
`datalenght` CHAR(64) NOT NULL DEFAULT '',
|
||
|
`datalenght_other` CHAR(64) NOT NULL DEFAULT '',
|
||
|
`datatype` CHAR(64) NOT NULL DEFAULT '',
|
||
|
`fieldtype` INT(11) NOT NULL DEFAULT 0,
|
||
|
`indexes` CHAR(64) NOT NULL DEFAULT '',
|
||
|
`javascript_view_footer` TEXT NOT NULL,
|
||
|
`javascript_views_footer` TEXT NOT NULL,
|
||
|
`name` VARCHAR(255) NOT NULL DEFAULT '',
|
||
|
`null_switch` CHAR(64) NOT NULL DEFAULT '',
|
||
|
`store` INT(11) NOT NULL DEFAULT 0,
|
||
|
`xml` TEXT NOT NULL,
|
||
|
`params` text NOT NULL DEFAULT '',
|
||
|
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
||
|
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||
|
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||
|
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||
|
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||
|
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
|
||
|
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||
|
`version` INT(10) unsigned NOT NULL DEFAULT 1,
|
||
|
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
|
||
|
`access` INT(10) unsigned NOT NULL DEFAULT 0,
|
||
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
||
|
PRIMARY KEY (`id`),
|
||
|
KEY `idx_access` (`access`),
|
||
|
KEY `idx_checkout` (`checked_out`),
|
||
|
KEY `idx_createdby` (`created_by`),
|
||
|
KEY `idx_modifiedby` (`modified_by`),
|
||
|
KEY `idx_state` (`published`),
|
||
|
KEY `idx_name` (`name`),
|
||
|
KEY `idx_fieldtype` (`fieldtype`),
|
||
|
KEY `idx_datatype` (`datatype`),
|
||
|
KEY `idx_indexes` (`indexes`),
|
||
|
KEY `idx_null_switch` (`null_switch`),
|
||
|
KEY `idx_catid` (`catid`),
|
||
|
KEY `idx_add_css_views` (`add_css_views`),
|
||
|
KEY `idx_add_css_view` (`add_css_view`),
|
||
|
KEY `idx_datalenght` (`datalenght`),
|
||
|
KEY `idx_add_javascript_views_footer` (`add_javascript_views_footer`),
|
||
|
KEY `idx_datadefault_other` (`datadefault_other`),
|
||
|
KEY `idx_datadefault` (`datadefault`),
|
||
|
KEY `idx_datalenght_other` (`datalenght_other`),
|
||
|
KEY `idx_add_javascript_view_footer` (`add_javascript_view_footer`)
|
||
|
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_fields_relations` (
|
||
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
||
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
||
|
`addrelations` MEDIUMTEXT NOT NULL,
|
||
|
`admin_view` INT(11) NOT NULL DEFAULT 0,
|
||
|
`params` text NOT NULL DEFAULT '',
|
||
|
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
||
|
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||
|
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||
|
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||
|
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||
|
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
|
||
|
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||
|
`version` INT(10) unsigned NOT NULL DEFAULT 1,
|
||
|
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
|
||
|
`access` INT(10) unsigned NOT NULL DEFAULT 0,
|
||
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
||
|
PRIMARY KEY (`id`),
|
||
|
KEY `idx_access` (`access`),
|
||
|
KEY `idx_checkout` (`checked_out`),
|
||
|
KEY `idx_createdby` (`created_by`),
|
||
|
KEY `idx_modifiedby` (`modified_by`),
|
||
|
KEY `idx_state` (`published`),
|
||
|
KEY `idx_admin_view` (`admin_view`)
|
||
|
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|