Llewellyn van der Merwe
f15b67cff1
Resolved gh-146 compiler error on joined db in dinamic get thanks to @mwweb & @ro-ot Resolved gh-147 by adding the sort of fields back into the save method Resolved gh-144 to ensure that the published tab (fields overwriting and adding) option is available again. Resolved gh-145 by moving the subforms to their own tab in dynamic get view Converted all repeatable fields to subform fields in Joomla component view Moved 9 subforms and other fields to their own table and view (decopuling them fom Joomla component view), that means we added 9 more views and tables to JCB Added all the ajax for buttons and display views to Joomla component view Added tmp scripts all across the new areas with subforms to ensure all repeatable fields are converted. Will be removed in v2.7.0 Added synced copy, change state and delete in Joomla components view in relation to all tables linked to it (same as with admin views)
236 lines
10 KiB
SQL
236 lines
10 KiB
SQL
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_admin_views` (
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
|
`addadmin_views` TEXT NOT NULL,
|
|
`joomla_component` 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_joomla_component` (`joomla_component`)
|
|
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_site_views` (
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
|
`addsite_views` TEXT NOT NULL,
|
|
`joomla_component` 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_joomla_component` (`joomla_component`)
|
|
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_custom_admin_views` (
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
|
`addcustom_admin_views` TEXT NOT NULL,
|
|
`joomla_component` 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_joomla_component` (`joomla_component`)
|
|
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_updates` (
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
|
`joomla_component` INT(11) NOT NULL DEFAULT 0,
|
|
`version_update` 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_joomla_component` (`joomla_component`)
|
|
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_mysql_tweaks` (
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
|
`joomla_component` INT(11) NOT NULL DEFAULT 0,
|
|
`sql_tweak` 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_joomla_component` (`joomla_component`)
|
|
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_custom_admin_menus` (
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
|
`addcustommenus` TEXT NOT NULL,
|
|
`joomla_component` 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_joomla_component` (`joomla_component`)
|
|
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_config` (
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
|
`addconfig` TEXT NOT NULL,
|
|
`joomla_component` 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_joomla_component` (`joomla_component`)
|
|
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_dashboard` (
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
|
`dashboard_tab` TEXT NOT NULL,
|
|
`joomla_component` INT(11) NOT NULL DEFAULT 0,
|
|
`php_dashboard_methods` MEDIUMTEXT 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_joomla_component` (`joomla_component`)
|
|
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_files_folders` (
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
|
`addfiles` TEXT NOT NULL,
|
|
`addfolders` TEXT NOT NULL,
|
|
`joomla_component` 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_joomla_component` (`joomla_component`)
|
|
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|