Further improved #37 to ensure language strings are set and reversed, also add extra buttons to the compiler page. Major restructure of custom code implementation to make it more stable. Resolved #40 by updating the default field sql values.

This commit is contained in:
2017-02-14 01:24:38 +02:00
parent de008d5907
commit 290a51dd5a
247 changed files with 2394 additions and 1513 deletions

View File

@ -1,6 +1,6 @@
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0',
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`add_admin_event` TINYINT(1) NOT NULL DEFAULT '0',
`add_css` TINYINT(1) NOT NULL DEFAULT '0',
`add_email_helper` TINYINT(1) NOT NULL DEFAULT '0',
@ -76,18 +76,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_component` (
`website` CHAR(255) NOT NULL DEFAULT '',
`whmcs_key` VARCHAR(255) NOT NULL DEFAULT '',
`whmcs_url` VARCHAR(255) NOT NULL DEFAULT '',
`params` TEXT NOT NULL,
`published` TINYINT(1) NOT NULL DEFAULT '1',
`created_by` INT(11) NOT NULL DEFAULT '0',
`modified_by` 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) NOT NULL,
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(11) NOT NULL DEFAULT '1',
`hits` INT(11) NOT NULL DEFAULT '0',
`access` INT(11) DEFAULT NULL,
`ordering` INT(11) NOT NULL DEFAULT '0',
`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`),
@ -127,7 +127,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_component` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0',
`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_custom_button` INT(1) NOT NULL DEFAULT '0',
@ -201,18 +201,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`sql` MEDIUMTEXT NOT NULL,
`system_name` VARCHAR(255) NOT NULL DEFAULT '',
`type` INT(11) NOT NULL DEFAULT '0',
`params` TEXT NOT NULL,
`published` TINYINT(1) NOT NULL DEFAULT '1',
`created_by` INT(11) NOT NULL DEFAULT '0',
`modified_by` 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) NOT NULL,
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(11) NOT NULL DEFAULT '1',
`hits` INT(11) NOT NULL DEFAULT '0',
`access` INT(11) DEFAULT NULL,
`ordering` INT(11) NOT NULL DEFAULT '0',
`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`),
@ -252,7 +252,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_admin_view` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0',
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`add_css` TINYINT(1) NOT NULL DEFAULT '0',
`add_css_document` TINYINT(1) NOT NULL DEFAULT '0',
`add_custom_button` INT(1) NOT NULL DEFAULT '0',
@ -282,18 +282,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_admin_view` (
`php_view` MEDIUMTEXT NOT NULL,
`snippet` INT(11) NOT NULL DEFAULT '0',
`system_name` VARCHAR(255) NOT NULL DEFAULT '',
`params` TEXT NOT NULL,
`published` TINYINT(1) NOT NULL DEFAULT '1',
`created_by` INT(11) NOT NULL DEFAULT '0',
`modified_by` 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) NOT NULL,
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(11) NOT NULL DEFAULT '1',
`hits` INT(11) NOT NULL DEFAULT '0',
`access` INT(11) DEFAULT NULL,
`ordering` INT(11) NOT NULL DEFAULT '0',
`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`),
@ -316,7 +316,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_admin_view` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_site_view` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0',
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`add_css` TINYINT(1) NOT NULL DEFAULT '0',
`add_css_document` TINYINT(1) NOT NULL DEFAULT '0',
`add_custom_button` INT(1) NOT NULL DEFAULT '0',
@ -349,18 +349,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_site_view` (
`php_view` MEDIUMTEXT NOT NULL,
`snippet` INT(11) NOT NULL DEFAULT '0',
`system_name` VARCHAR(255) NOT NULL DEFAULT '',
`params` TEXT NOT NULL,
`published` TINYINT(1) NOT NULL DEFAULT '1',
`created_by` INT(11) NOT NULL DEFAULT '0',
`modified_by` 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) NOT NULL,
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(11) NOT NULL DEFAULT '1',
`hits` INT(11) NOT NULL DEFAULT '0',
`access` INT(11) DEFAULT NULL,
`ordering` INT(11) NOT NULL DEFAULT '0',
`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`),
@ -385,7 +385,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_site_view` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_template` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0',
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`add_php_view` TINYINT(1) NOT NULL DEFAULT '0',
`alias` VARCHAR(255) NOT NULL DEFAULT '',
`description` VARCHAR(255) NOT NULL DEFAULT '',
@ -395,18 +395,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_template` (
`php_view` MEDIUMTEXT NOT NULL,
`snippet` INT(11) NOT NULL DEFAULT '0',
`template` TEXT NOT NULL,
`params` TEXT NOT NULL,
`published` TINYINT(1) NOT NULL DEFAULT '1',
`created_by` INT(11) NOT NULL DEFAULT '0',
`modified_by` 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) NOT NULL,
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(11) NOT NULL DEFAULT '1',
`hits` INT(11) NOT NULL DEFAULT '0',
`access` INT(11) DEFAULT NULL,
`ordering` INT(11) NOT NULL DEFAULT '0',
`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`),
@ -421,7 +421,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_template` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_layout` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0',
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`add_php_view` TINYINT(1) NOT NULL DEFAULT '0',
`alias` VARCHAR(255) NOT NULL DEFAULT '',
`description` VARCHAR(255) NOT NULL DEFAULT '',
@ -431,18 +431,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_layout` (
`not_required` INT(1) NOT NULL DEFAULT '0',
`php_view` MEDIUMTEXT NOT NULL,
`snippet` INT(11) NOT NULL DEFAULT '0',
`params` TEXT NOT NULL,
`published` TINYINT(1) NOT NULL DEFAULT '1',
`created_by` INT(11) NOT NULL DEFAULT '0',
`modified_by` 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) NOT NULL,
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(11) NOT NULL DEFAULT '1',
`hits` INT(11) NOT NULL DEFAULT '0',
`access` INT(11) DEFAULT NULL,
`ordering` INT(11) NOT NULL DEFAULT '0',
`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`),
@ -457,7 +457,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_layout` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_dynamic_get` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0',
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`add_php_after_getitem` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_after_getitems` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_before_getitem` TINYINT(1) NOT NULL DEFAULT '0',
@ -487,18 +487,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_dynamic_get` (
`view_selection` TEXT NOT NULL,
`view_table_main` INT(11) NOT NULL DEFAULT '0',
`where` TEXT NOT NULL,
`params` TEXT NOT NULL,
`published` TINYINT(1) NOT NULL DEFAULT '1',
`created_by` INT(11) NOT NULL DEFAULT '0',
`modified_by` 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) NOT NULL,
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(11) NOT NULL DEFAULT '1',
`hits` INT(11) NOT NULL DEFAULT '0',
`access` INT(11) DEFAULT NULL,
`ordering` INT(11) NOT NULL DEFAULT '0',
`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`),
@ -519,10 +519,12 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_dynamic_get` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_code` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0',
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`code` MEDIUMTEXT NOT NULL,
`comment_type` TINYINT(1) NOT NULL DEFAULT '1',
`component` INT(11) NOT NULL DEFAULT '0',
`from_line` VARCHAR(100) NOT NULL DEFAULT '',
`function_name` VARCHAR(255) NOT NULL DEFAULT '',
`hashendtarget` VARCHAR(64) NOT NULL DEFAULT '',
`hashtarget` VARCHAR(64) NOT NULL DEFAULT '',
`not_required` INT(1) NOT NULL DEFAULT '0',
@ -531,18 +533,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_code` (
`target` TINYINT(1) NOT NULL DEFAULT '0',
`to_line` VARCHAR(100) NOT NULL DEFAULT '',
`type` TINYINT(1) NOT NULL DEFAULT '0',
`params` TEXT NOT NULL,
`published` TINYINT(1) NOT NULL DEFAULT '1',
`created_by` INT(11) NOT NULL DEFAULT '0',
`modified_by` 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) NOT NULL,
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(11) NOT NULL DEFAULT '1',
`hits` INT(11) NOT NULL DEFAULT '0',
`access` INT(11) DEFAULT NULL,
`ordering` INT(11) NOT NULL DEFAULT '0',
`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`),
@ -552,13 +554,14 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_code` (
KEY `idx_component` (`component`),
KEY `idx_target` (`target`),
KEY `idx_type` (`type`),
KEY `idx_function_name` (`function_name`),
KEY `idx_to_line` (`to_line`),
KEY `idx_from_line` (`from_line`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__componentbuilder_snippet` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0',
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`description` TEXT NOT NULL,
`heading` VARCHAR(255) NOT NULL DEFAULT '',
`name` VARCHAR(255) NOT NULL DEFAULT '',
@ -566,18 +569,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_snippet` (
`type` INT(11) NOT NULL DEFAULT '0',
`url` VARCHAR(255) NOT NULL DEFAULT '',
`usage` TEXT NOT NULL,
`params` TEXT NOT NULL,
`published` TINYINT(1) NOT NULL DEFAULT '1',
`created_by` INT(11) NOT NULL DEFAULT '0',
`modified_by` 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) NOT NULL,
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(11) NOT NULL DEFAULT '1',
`hits` INT(11) NOT NULL DEFAULT '0',
`access` INT(11) DEFAULT NULL,
`ordering` INT(11) NOT NULL DEFAULT '0',
`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`),
@ -590,7 +593,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_snippet` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_field` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0',
`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',
@ -612,18 +615,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_field` (
`null_switch` CHAR(64) NOT NULL DEFAULT '',
`store` INT(11) NOT NULL DEFAULT '0',
`xml` TEXT NOT NULL,
`params` TEXT NOT NULL,
`published` TINYINT(1) NOT NULL DEFAULT '1',
`created_by` INT(11) NOT NULL DEFAULT '0',
`modified_by` 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) NOT NULL,
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(11) NOT NULL DEFAULT '1',
`hits` INT(11) NOT NULL DEFAULT '0',
`access` INT(11) DEFAULT NULL,
`ordering` INT(11) NOT NULL DEFAULT '0',
`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`),
@ -648,24 +651,24 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_field` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_fieldtype` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0',
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`catid` INT(11) NOT NULL DEFAULT '0',
`description` TEXT NOT NULL,
`name` VARCHAR(255) NOT NULL DEFAULT '',
`properties` TEXT NOT NULL,
`short_description` VARCHAR(255) NOT NULL DEFAULT '',
`params` TEXT NOT NULL,
`published` TINYINT(1) NOT NULL DEFAULT '1',
`created_by` INT(11) NOT NULL DEFAULT '0',
`modified_by` 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) NOT NULL,
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(11) NOT NULL DEFAULT '1',
`hits` INT(11) NOT NULL DEFAULT '0',
`access` INT(11) DEFAULT NULL,
`ordering` INT(11) NOT NULL DEFAULT '0',
`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`),
@ -678,7 +681,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_fieldtype` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_help_document` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(255) UNSIGNED NOT NULL DEFAULT '0',
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`admin_view` CHAR(255) NOT NULL DEFAULT '',
`alias` CHAR(64) NOT NULL DEFAULT '',
`article` TINYINT(1) NOT NULL DEFAULT '0',
@ -691,17 +694,17 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_help_document` (
`title` CHAR(64) NOT NULL DEFAULT '',
`type` TINYINT(1) NOT NULL DEFAULT '0',
`url` VARCHAR(255) NOT NULL DEFAULT '',
`params` TEXT NOT NULL,
`published` TINYINT(1) NOT NULL DEFAULT '1',
`created_by` INT(11) NOT NULL DEFAULT '0',
`modified_by` 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) NOT NULL,
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` INT(11) NOT NULL DEFAULT '1',
`hits` INT(11) NOT NULL DEFAULT '0',
`ordering` INT(11) NOT NULL DEFAULT '0',
`version` INT(10) unsigned NOT NULL DEFAULT 1,
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
`ordering` INT(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_createdby` (`created_by`),