Fixed the default value for fields in database mysql install script.

This commit is contained in:
Llewellyn van der Merwe 2023-05-19 00:00:32 +02:00
parent a325339501
commit 407a8aa345
Signed by untrusted user: Llewellyn
GPG Key ID: A9201372263741E7
5 changed files with 157 additions and 166 deletions

View File

@ -144,7 +144,7 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
+ *First Build*: 30th April, 2015 + *First Build*: 30th April, 2015
+ *Last Build*: 16th May, 2023 + *Last Build*: 18th May, 2023
+ *Version*: 3.1.24 + *Version*: 3.1.24
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt + *License*: GNU General Public License version 2 or later; see LICENSE.txt

View File

@ -144,7 +144,7 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
+ *First Build*: 30th April, 2015 + *First Build*: 30th April, 2015
+ *Last Build*: 16th May, 2023 + *Last Build*: 18th May, 2023
+ *Version*: 3.1.24 + *Version*: 3.1.24
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt + *License*: GNU General Public License version 2 or later; see LICENSE.txt

View File

@ -10052,6 +10052,7 @@ class Interpretation extends Fields
{ {
$default = $data['other']; $default = $data['other'];
} }
// to get just null value add EMPTY to other value.
if ($default === 'EMPTY') if ($default === 'EMPTY')
{ {
$default = $data['null_switch']; $default = $data['null_switch'];
@ -10062,9 +10063,7 @@ class Interpretation extends Fields
$default = $data['null_switch'] . ' DEFAULT ' $default = $data['null_switch'] . ' DEFAULT '
. $default; . $default;
} }
elseif ($default == 0 || $default) elseif (is_numeric($default))
{
if (is_numeric($default))
{ {
$default = $data['null_switch'] . " DEFAULT " $default = $data['null_switch'] . " DEFAULT "
. $default; . $default;
@ -10074,30 +10073,22 @@ class Interpretation extends Fields
$default = $data['null_switch'] . " DEFAULT '" $default = $data['null_switch'] . " DEFAULT '"
. $default . "'"; . $default . "'";
} }
}
elseif ($data['null_switch'] === 'NULL') // set the length (lenght) <-- TYPO :: LVDM :: DON'T TOUCH
{ $length = '';
$default = "DEFAULT NULL";
}
else
{
$default = $data['null_switch'];
}
// set the lenght
$lenght = '';
if (isset($data['lenght']) && $data['lenght'] === 'Other' if (isset($data['lenght']) && $data['lenght'] === 'Other'
&& isset($data['lenght_other']) && isset($data['lenght_other'])
&& $data['lenght_other'] > 0) && $data['lenght_other'] > 0)
{ {
$lenght = '(' . $data['lenght_other'] . ')'; $length = '(' . $data['lenght_other'] . ')';
} }
elseif (isset($data['lenght']) && $data['lenght'] > 0) elseif (isset($data['lenght']) && $data['lenght'] > 0)
{ {
$lenght = '(' . $data['lenght'] . ')'; $length = '(' . $data['lenght'] . ')';
} }
// set the field to db // set the field to db
$db_ .= PHP_EOL . Indent::_(1) . "`" . $field . "` " $db_ .= PHP_EOL . Indent::_(1) . "`" . $field . "` "
. $data['type'] . $lenght . " " . $default . ","; . $data['type'] . $length . " " . $default . ",";
// check if this a new field that should be added via SQL update // check if this a new field that should be added via SQL update
if (CFactory::_('Registry')-> if (CFactory::_('Registry')->
get('builder.add_sql.field.' . $view . '.' . $data['ID'], null)) get('builder.add_sql.field.' . $view . '.' . $data['ID'], null))
@ -10105,10 +10096,10 @@ class Interpretation extends Fields
// to soon.... // to soon....
// $key_ = "ALTERTABLE`#__" . $component . "_" . $view . "`ADDCOLUMNIFNOTEXISTS`" . $field . "`"; // $key_ = "ALTERTABLE`#__" . $component . "_" . $view . "`ADDCOLUMNIFNOTEXISTS`" . $field . "`";
// $value_ = "ALTER TABLE `#__" . $component . "_" . $view . "` ADD COLUMN IF NOT EXISTS `" . $field . "` " . $data['type'] // $value_ = "ALTER TABLE `#__" . $component . "_" . $view . "` ADD COLUMN IF NOT EXISTS `" . $field . "` " . $data['type']
// . $lenght . " " . $default . " AFTER `" . $last_name . "`;"; // . length . " " . $default . " AFTER `" . $last_name . "`;";
$key_ = "ALTERTABLE`#__" . $component . "_" . $view . "`ADD`" . $field . "`"; $key_ = "ALTERTABLE`#__" . $component . "_" . $view . "`ADD`" . $field . "`";
$value_ = "ALTER TABLE `#__" . $component . "_" . $view . "` ADD `" . $field . "` " . $data['type'] $value_ = "ALTER TABLE `#__" . $component . "_" . $view . "` ADD `" . $field . "` " . $data['type']
. $lenght . " " . $default . " AFTER `" . $last_name . "`;"; . $length . " " . $default . " AFTER `" . $last_name . "`;";
CFactory::_('Builder.Update.Mysql')->set($key_, $value_); CFactory::_('Builder.Update.Mysql')->set($key_, $value_);
} }
@ -10131,7 +10122,7 @@ class Interpretation extends Fields
$key_ = "ALTERTABLE`#__" . $component . "_" . $view . "`CHANGE`" . $oldName . "``" $key_ = "ALTERTABLE`#__" . $component . "_" . $view . "`CHANGE`" . $oldName . "``"
. $field . "`"; . $field . "`";
$value_ = "ALTER TABLE `#__" . $component . "_" . $view . "` CHANGE `" . $oldName . "` `" $value_ = "ALTER TABLE `#__" . $component . "_" . $view . "` CHANGE `" . $oldName . "` `"
. $field . "` " . $data['type'] . $lenght . " " . $default . ";"; . $field . "` " . $data['type'] . $length . " " . $default . ";";
CFactory::_('Builder.Update.Mysql')->set($key_, $value_); CFactory::_('Builder.Update.Mysql')->set($key_, $value_);
} }

View File

@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` (
`add_email_helper` TINYINT(1) NOT NULL DEFAULT 0, `add_email_helper` TINYINT(1) NOT NULL DEFAULT 0,
`add_javascript` TINYINT(1) NOT NULL DEFAULT 0, `add_javascript` TINYINT(1) NOT NULL DEFAULT 0,
`add_license` TINYINT(1) NOT NULL DEFAULT 0, `add_license` TINYINT(1) NOT NULL DEFAULT 0,
`add_menu_prefix` CHAR(1) NOT NULL, `add_menu_prefix` CHAR(1) NOT NULL DEFAULT '',
`add_php_helper_admin` TINYINT(1) NOT NULL DEFAULT 0, `add_php_helper_admin` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_helper_both` TINYINT(1) NOT NULL DEFAULT 0, `add_php_helper_both` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_helper_site` TINYINT(1) NOT NULL DEFAULT 0, `add_php_helper_site` TINYINT(1) NOT NULL DEFAULT 0,
@ -28,40 +28,40 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` (
`addreadme` TINYINT(1) NOT NULL DEFAULT 0, `addreadme` TINYINT(1) NOT NULL DEFAULT 0,
`adduikit` TINYINT(1) NOT NULL DEFAULT 0, `adduikit` TINYINT(1) NOT NULL DEFAULT 0,
`assets_table_fix` TINYINT(1) NOT NULL DEFAULT 3, `assets_table_fix` TINYINT(1) NOT NULL DEFAULT 3,
`author` VARCHAR(255) NOT NULL, `author` VARCHAR(255) NOT NULL DEFAULT '',
`bom` CHAR(64) NOT NULL, `bom` CHAR(64) NOT NULL DEFAULT '',
`buildcomp` TINYINT(1) NOT NULL DEFAULT 0, `buildcomp` TINYINT(1) NOT NULL DEFAULT 0,
`buildcompsql` MEDIUMTEXT NOT NULL, `buildcompsql` MEDIUMTEXT NOT NULL,
`companyname` CHAR(64) NOT NULL, `companyname` CHAR(64) NOT NULL DEFAULT '',
`component_version` CHAR(64) NOT NULL, `component_version` CHAR(64) NOT NULL DEFAULT '',
`copyright` VARCHAR(255) NOT NULL, `copyright` VARCHAR(255) NOT NULL DEFAULT '',
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`creatuserhelper` TINYINT(1) NOT NULL DEFAULT 0, `creatuserhelper` TINYINT(1) NOT NULL DEFAULT 0,
`crowdin_account_api_key` TEXT NOT NULL, `crowdin_account_api_key` TEXT NOT NULL,
`crowdin_project_api_key` TEXT NOT NULL, `crowdin_project_api_key` TEXT NOT NULL,
`crowdin_project_identifier` VARCHAR(255) NOT NULL, `crowdin_project_identifier` VARCHAR(255) NOT NULL DEFAULT '',
`crowdin_username` TEXT NOT NULL, `crowdin_username` TEXT NOT NULL,
`css_admin` TEXT NOT NULL, `css_admin` TEXT NOT NULL,
`css_site` TEXT NOT NULL, `css_site` TEXT NOT NULL,
`dashboard` VARCHAR(64) NOT NULL, `dashboard` VARCHAR(64) NOT NULL DEFAULT '',
`dashboard_type` TINYINT(1) NOT NULL DEFAULT 1, `dashboard_type` TINYINT(1) NOT NULL DEFAULT 1,
`debug_linenr` TINYINT(1) NOT NULL DEFAULT 0, `debug_linenr` TINYINT(1) NOT NULL DEFAULT 0,
`description` TEXT NOT NULL, `description` TEXT NOT NULL,
`email` VARCHAR(255) NOT NULL, `email` VARCHAR(255) NOT NULL DEFAULT '',
`emptycontributors` TINYINT(1) NOT NULL DEFAULT 0, `emptycontributors` TINYINT(1) NOT NULL DEFAULT 0,
`export_buy_link` VARCHAR(255) NOT NULL, `export_buy_link` VARCHAR(255) NOT NULL DEFAULT '',
`export_key` TEXT NOT NULL, `export_key` TEXT NOT NULL,
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`image` CHAR(64) NOT NULL, `image` CHAR(64) NOT NULL DEFAULT '',
`javascript` TEXT NOT NULL, `javascript` TEXT NOT NULL,
`joomla_source_link` VARCHAR(255) NOT NULL, `joomla_source_link` VARCHAR(255) NOT NULL DEFAULT '',
`license` VARCHAR(255) NOT NULL, `license` VARCHAR(255) NOT NULL DEFAULT '',
`license_type` TINYINT(1) NOT NULL DEFAULT 0, `license_type` TINYINT(1) NOT NULL DEFAULT 0,
`menu_prefix` VARCHAR(100) NOT NULL, `menu_prefix` VARCHAR(100) NOT NULL DEFAULT '',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`mvc_versiondate` TINYINT(1) NOT NULL DEFAULT 0, `mvc_versiondate` TINYINT(1) NOT NULL DEFAULT 0,
`name` CHAR(64) NOT NULL, `name` CHAR(64) NOT NULL DEFAULT '',
`name_code` VARCHAR(255) NOT NULL, `name_code` VARCHAR(255) NOT NULL DEFAULT '',
`number` INT(11) NOT NULL DEFAULT 0, `number` INT(11) NOT NULL DEFAULT 0,
`php_admin_event` MEDIUMTEXT NOT NULL, `php_admin_event` MEDIUMTEXT NOT NULL,
`php_helper_admin` MEDIUMTEXT NOT NULL, `php_helper_admin` MEDIUMTEXT NOT NULL,
@ -76,19 +76,19 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` (
`readme` TEXT NOT NULL, `readme` TEXT NOT NULL,
`remove_line_breaks` TINYINT(1) NOT NULL DEFAULT 0, `remove_line_breaks` TINYINT(1) NOT NULL DEFAULT 0,
`sales_server` INT(11) NOT NULL DEFAULT 0, `sales_server` INT(11) NOT NULL DEFAULT 0,
`short_description` VARCHAR(255) NOT NULL, `short_description` VARCHAR(255) NOT NULL DEFAULT '',
`sql` MEDIUMTEXT NOT NULL, `sql` MEDIUMTEXT NOT NULL,
`sql_uninstall` MEDIUMTEXT NOT NULL, `sql_uninstall` MEDIUMTEXT NOT NULL,
`system_name` VARCHAR(255) NOT NULL, `system_name` VARCHAR(255) NOT NULL DEFAULT '',
`toignore` TEXT NOT NULL, `toignore` TEXT NOT NULL,
`translation_tool` TINYINT(1) NOT NULL DEFAULT 0, `translation_tool` TINYINT(1) NOT NULL DEFAULT 0,
`update_server` INT(11) NOT NULL DEFAULT 0, `update_server` INT(11) NOT NULL DEFAULT 0,
`update_server_target` TINYINT(1) NOT NULL DEFAULT 0, `update_server_target` TINYINT(1) NOT NULL DEFAULT 0,
`update_server_url` VARCHAR(255) NOT NULL, `update_server_url` VARCHAR(255) NOT NULL DEFAULT '',
`website` CHAR(255) NOT NULL, `website` CHAR(255) NOT NULL DEFAULT '',
`whmcs_buy_link` VARCHAR(255) NOT NULL, `whmcs_buy_link` VARCHAR(255) NOT NULL DEFAULT '',
`whmcs_key` VARCHAR(255) NOT NULL, `whmcs_key` VARCHAR(255) NOT NULL DEFAULT '',
`whmcs_url` VARCHAR(255) NOT NULL, `whmcs_url` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,
@ -171,11 +171,11 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_module` (
`default` MEDIUMTEXT NOT NULL, `default` MEDIUMTEXT NOT NULL,
`description` TEXT NOT NULL, `description` TEXT NOT NULL,
`fields` TEXT NOT NULL, `fields` TEXT NOT NULL,
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`libraries` TEXT NOT NULL, `libraries` TEXT NOT NULL,
`mod_code` TEXT NOT NULL, `mod_code` TEXT NOT NULL,
`module_version` CHAR(64) NOT NULL, `module_version` CHAR(64) NOT NULL DEFAULT '',
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`php_method_uninstall` MEDIUMTEXT NOT NULL, `php_method_uninstall` MEDIUMTEXT NOT NULL,
`php_postflight_install` MEDIUMTEXT NOT NULL, `php_postflight_install` MEDIUMTEXT NOT NULL,
`php_postflight_update` MEDIUMTEXT NOT NULL, `php_postflight_update` MEDIUMTEXT NOT NULL,
@ -188,11 +188,11 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_module` (
`snippet` INT(11) NOT NULL DEFAULT 0, `snippet` INT(11) NOT NULL DEFAULT 0,
`sql` MEDIUMTEXT NOT NULL, `sql` MEDIUMTEXT NOT NULL,
`sql_uninstall` MEDIUMTEXT NOT NULL, `sql_uninstall` MEDIUMTEXT NOT NULL,
`system_name` VARCHAR(255) NOT NULL, `system_name` VARCHAR(255) NOT NULL DEFAULT '',
`target` TINYINT(1) NOT NULL DEFAULT 0, `target` TINYINT(1) NOT NULL DEFAULT 0,
`update_server` INT(11) NOT NULL DEFAULT 0, `update_server` INT(11) NOT NULL DEFAULT 0,
`update_server_target` TINYINT(1) NOT NULL DEFAULT 0, `update_server_target` TINYINT(1) NOT NULL DEFAULT 0,
`update_server_url` VARCHAR(255) NOT NULL, `update_server_url` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,
@ -248,12 +248,12 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_plugin` (
`class_extends` INT(11) NOT NULL DEFAULT 0, `class_extends` INT(11) NOT NULL DEFAULT 0,
`description` TEXT NOT NULL, `description` TEXT NOT NULL,
`fields` TEXT NOT NULL, `fields` TEXT NOT NULL,
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`head` TEXT NOT NULL, `head` TEXT NOT NULL,
`joomla_plugin_group` INT(11) NOT NULL DEFAULT 0, `joomla_plugin_group` INT(11) NOT NULL DEFAULT 0,
`main_class_code` MEDIUMTEXT NOT NULL, `main_class_code` MEDIUMTEXT NOT NULL,
`method_selection` TEXT NOT NULL, `method_selection` TEXT NOT NULL,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`php_method_uninstall` MEDIUMTEXT NOT NULL, `php_method_uninstall` MEDIUMTEXT NOT NULL,
`php_postflight_install` MEDIUMTEXT NOT NULL, `php_postflight_install` MEDIUMTEXT NOT NULL,
`php_postflight_update` MEDIUMTEXT NOT NULL, `php_postflight_update` MEDIUMTEXT NOT NULL,
@ -261,16 +261,16 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_plugin` (
`php_preflight_uninstall` MEDIUMTEXT NOT NULL, `php_preflight_uninstall` MEDIUMTEXT NOT NULL,
`php_preflight_update` MEDIUMTEXT NOT NULL, `php_preflight_update` MEDIUMTEXT NOT NULL,
`php_script_construct` MEDIUMTEXT NOT NULL, `php_script_construct` MEDIUMTEXT NOT NULL,
`plugin_version` CHAR(64) NOT NULL, `plugin_version` CHAR(64) NOT NULL DEFAULT '',
`property_selection` TEXT NOT NULL, `property_selection` TEXT NOT NULL,
`readme` TEXT NOT NULL, `readme` TEXT NOT NULL,
`sales_server` INT(11) NOT NULL DEFAULT 0, `sales_server` INT(11) NOT NULL DEFAULT 0,
`sql` MEDIUMTEXT NOT NULL, `sql` MEDIUMTEXT NOT NULL,
`sql_uninstall` MEDIUMTEXT NOT NULL, `sql_uninstall` MEDIUMTEXT NOT NULL,
`system_name` VARCHAR(255) NOT NULL, `system_name` VARCHAR(255) NOT NULL DEFAULT '',
`update_server` INT(11) NOT NULL DEFAULT 0, `update_server` INT(11) NOT NULL DEFAULT 0,
`update_server_target` TINYINT(1) NOT NULL DEFAULT 0, `update_server_target` TINYINT(1) NOT NULL DEFAULT 0,
`update_server_url` VARCHAR(255) NOT NULL, `update_server_url` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,
@ -318,22 +318,22 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_power` (
`approved_paths` TEXT NOT NULL, `approved_paths` TEXT NOT NULL,
`composer` TEXT NOT NULL, `composer` TEXT NOT NULL,
`description` TEXT NOT NULL, `description` TEXT NOT NULL,
`extends` VARCHAR(36) NOT NULL, `extends` VARCHAR(36) NOT NULL DEFAULT '',
`extends_custom` VARCHAR(64) NOT NULL, `extends_custom` VARCHAR(64) NOT NULL DEFAULT '',
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`head` TEXT NOT NULL, `head` TEXT NOT NULL,
`implements` TEXT NULL, `implements` TEXT NULL,
`implements_custom` VARCHAR(1024) NOT NULL, `implements_custom` VARCHAR(1024) NOT NULL DEFAULT '',
`licensing_template` TEXT NOT NULL, `licensing_template` TEXT NOT NULL,
`load_selection` TEXT NOT NULL, `load_selection` TEXT NOT NULL,
`main_class_code` MEDIUMTEXT NOT NULL, `main_class_code` MEDIUMTEXT NOT NULL,
`method_selection` TEXT NOT NULL, `method_selection` TEXT NOT NULL,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`namespace` VARCHAR(255) NOT NULL, `namespace` VARCHAR(255) NOT NULL DEFAULT '',
`power_version` CHAR(64) NOT NULL, `power_version` CHAR(64) NOT NULL DEFAULT '',
`property_selection` TEXT NOT NULL, `property_selection` TEXT NOT NULL,
`system_name` VARCHAR(255) NOT NULL, `system_name` VARCHAR(255) NOT NULL DEFAULT '',
`type` VARCHAR(64) NOT NULL, `type` VARCHAR(64) NOT NULL DEFAULT '',
`use_selection` TEXT NOT NULL, `use_selection` TEXT NOT NULL,
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
@ -402,17 +402,17 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`addtables` TEXT NOT NULL, `addtables` TEXT NOT NULL,
`addtabs` TEXT NOT NULL, `addtabs` TEXT NOT NULL,
`ajax_input` TEXT NOT NULL, `ajax_input` TEXT NOT NULL,
`alias_builder` VARCHAR(255) NOT NULL, `alias_builder` VARCHAR(255) NOT NULL DEFAULT '',
`alias_builder_type` CHAR NOT NULL, `alias_builder_type` CHAR NOT NULL DEFAULT '',
`css_view` TEXT NOT NULL, `css_view` TEXT NOT NULL,
`css_views` TEXT NOT NULL, `css_views` TEXT NOT NULL,
`custom_button` TEXT NOT NULL, `custom_button` TEXT NOT NULL,
`description` TEXT NOT NULL, `description` TEXT NOT NULL,
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`html_import_view` MEDIUMTEXT NOT NULL, `html_import_view` MEDIUMTEXT NOT NULL,
`icon` CHAR(64) NOT NULL, `icon` CHAR(64) NOT NULL DEFAULT '',
`icon_add` CHAR(64) NOT NULL, `icon_add` CHAR(64) NOT NULL DEFAULT '',
`icon_category` CHAR(64) NOT NULL, `icon_category` CHAR(64) NOT NULL DEFAULT '',
`javascript_view_file` TEXT NOT NULL, `javascript_view_file` TEXT NOT NULL,
`javascript_view_footer` TEXT NOT NULL, `javascript_view_footer` TEXT NOT NULL,
`javascript_views_file` TEXT NOT NULL, `javascript_views_file` TEXT NOT NULL,
@ -421,8 +421,8 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`mysql_table_collate` VARCHAR(64) NOT NULL DEFAULT 1, `mysql_table_collate` VARCHAR(64) NOT NULL DEFAULT 1,
`mysql_table_engine` VARCHAR(64) NOT NULL DEFAULT 1, `mysql_table_engine` VARCHAR(64) NOT NULL DEFAULT 1,
`mysql_table_row_format` VARCHAR(64) NOT NULL DEFAULT 0, `mysql_table_row_format` VARCHAR(64) NOT NULL DEFAULT 0,
`name_list` CHAR(64) NOT NULL, `name_list` CHAR(64) NOT NULL DEFAULT '',
`name_single` CHAR(64) NOT NULL, `name_single` CHAR(64) NOT NULL DEFAULT '',
`php_after_cancel` MEDIUMTEXT NOT NULL, `php_after_cancel` MEDIUMTEXT NOT NULL,
`php_after_delete` MEDIUMTEXT NOT NULL, `php_after_delete` MEDIUMTEXT NOT NULL,
`php_after_publish` MEDIUMTEXT NOT NULL, `php_after_publish` MEDIUMTEXT NOT NULL,
@ -453,10 +453,10 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`php_model_list` MEDIUMTEXT NOT NULL, `php_model_list` MEDIUMTEXT NOT NULL,
`php_postsavehook` MEDIUMTEXT NOT NULL, `php_postsavehook` MEDIUMTEXT NOT NULL,
`php_save` MEDIUMTEXT NOT NULL, `php_save` MEDIUMTEXT NOT NULL,
`short_description` VARCHAR(255) NOT NULL, `short_description` VARCHAR(255) NOT NULL DEFAULT '',
`source` TINYINT(1) NOT NULL DEFAULT 0, `source` TINYINT(1) NOT NULL DEFAULT 0,
`sql` MEDIUMTEXT NOT NULL, `sql` MEDIUMTEXT NOT NULL,
`system_name` VARCHAR(255) NOT NULL, `system_name` VARCHAR(255) NOT NULL DEFAULT '',
`type` INT(11) NOT NULL DEFAULT 0, `type` INT(11) NOT NULL DEFAULT 0,
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
@ -532,22 +532,22 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_admin_view` (
`add_php_jview_display` TINYINT(1) NOT NULL DEFAULT 0, `add_php_jview_display` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_view` TINYINT(1) NOT NULL DEFAULT 0, `add_php_view` TINYINT(1) NOT NULL DEFAULT 0,
`ajax_input` TEXT NOT NULL, `ajax_input` TEXT NOT NULL,
`codename` VARCHAR(255) NOT NULL, `codename` VARCHAR(255) NOT NULL DEFAULT '',
`context` VARCHAR(255) NOT NULL, `context` VARCHAR(255) NOT NULL DEFAULT '',
`css` TEXT NOT NULL, `css` TEXT NOT NULL,
`css_document` TEXT NOT NULL, `css_document` TEXT NOT NULL,
`custom_button` TEXT NOT NULL, `custom_button` TEXT NOT NULL,
`custom_get` TEXT NOT NULL, `custom_get` TEXT NOT NULL,
`default` MEDIUMTEXT NOT NULL, `default` MEDIUMTEXT NOT NULL,
`description` VARCHAR(255) NOT NULL, `description` VARCHAR(255) NOT NULL DEFAULT '',
`dynamic_get` INT(11) NOT NULL DEFAULT 0, `dynamic_get` INT(11) NOT NULL DEFAULT 0,
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`icon` CHAR(64) NOT NULL, `icon` CHAR(64) NOT NULL DEFAULT '',
`javascript_file` TEXT NOT NULL, `javascript_file` TEXT NOT NULL,
`js_document` TEXT NOT NULL, `js_document` TEXT NOT NULL,
`libraries` TEXT NOT NULL, `libraries` TEXT NOT NULL,
`main_get` INT(11) NOT NULL DEFAULT 0, `main_get` INT(11) NOT NULL DEFAULT 0,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`php_ajaxmethod` MEDIUMTEXT NOT NULL, `php_ajaxmethod` MEDIUMTEXT NOT NULL,
`php_controller` MEDIUMTEXT NOT NULL, `php_controller` MEDIUMTEXT NOT NULL,
`php_document` MEDIUMTEXT NOT NULL, `php_document` MEDIUMTEXT NOT NULL,
@ -556,7 +556,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_admin_view` (
`php_model` MEDIUMTEXT NOT NULL, `php_model` MEDIUMTEXT NOT NULL,
`php_view` MEDIUMTEXT NOT NULL, `php_view` MEDIUMTEXT NOT NULL,
`snippet` INT(11) NOT NULL DEFAULT 0, `snippet` INT(11) NOT NULL DEFAULT 0,
`system_name` VARCHAR(255) NOT NULL, `system_name` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,
@ -608,21 +608,21 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_site_view` (
`add_php_view` TINYINT(1) NOT NULL DEFAULT 0, `add_php_view` TINYINT(1) NOT NULL DEFAULT 0,
`ajax_input` TEXT NOT NULL, `ajax_input` TEXT NOT NULL,
`button_position` TINYINT(1) NOT NULL DEFAULT 1, `button_position` TINYINT(1) NOT NULL DEFAULT 1,
`codename` VARCHAR(255) NOT NULL, `codename` VARCHAR(255) NOT NULL DEFAULT '',
`context` VARCHAR(255) NOT NULL, `context` VARCHAR(255) NOT NULL DEFAULT '',
`css` TEXT NOT NULL, `css` TEXT NOT NULL,
`css_document` TEXT NOT NULL, `css_document` TEXT NOT NULL,
`custom_button` TEXT NOT NULL, `custom_button` TEXT NOT NULL,
`custom_get` TEXT NOT NULL, `custom_get` TEXT NOT NULL,
`default` MEDIUMTEXT NOT NULL, `default` MEDIUMTEXT NOT NULL,
`description` VARCHAR(255) NOT NULL, `description` VARCHAR(255) NOT NULL DEFAULT '',
`dynamic_get` INT(11) NOT NULL DEFAULT 0, `dynamic_get` INT(11) NOT NULL DEFAULT 0,
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`javascript_file` TEXT NOT NULL, `javascript_file` TEXT NOT NULL,
`js_document` TEXT NOT NULL, `js_document` TEXT NOT NULL,
`libraries` TEXT NOT NULL, `libraries` TEXT NOT NULL,
`main_get` INT(11) NOT NULL DEFAULT 0, `main_get` INT(11) NOT NULL DEFAULT 0,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`php_ajaxmethod` MEDIUMTEXT NOT NULL, `php_ajaxmethod` MEDIUMTEXT NOT NULL,
`php_controller` MEDIUMTEXT NOT NULL, `php_controller` MEDIUMTEXT NOT NULL,
`php_document` MEDIUMTEXT NOT NULL, `php_document` MEDIUMTEXT NOT NULL,
@ -631,7 +631,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_site_view` (
`php_model` MEDIUMTEXT NOT NULL, `php_model` MEDIUMTEXT NOT NULL,
`php_view` MEDIUMTEXT NOT NULL, `php_view` MEDIUMTEXT NOT NULL,
`snippet` INT(11) NOT NULL DEFAULT 0, `snippet` INT(11) NOT NULL DEFAULT 0,
`system_name` VARCHAR(255) NOT NULL, `system_name` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,
@ -673,11 +673,11 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_template` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`add_php_view` TINYINT(1) NOT NULL DEFAULT 0, `add_php_view` TINYINT(1) NOT NULL DEFAULT 0,
`alias` VARCHAR(255) NOT NULL, `alias` VARCHAR(255) NOT NULL DEFAULT '',
`description` VARCHAR(255) NOT NULL, `description` VARCHAR(255) NOT NULL DEFAULT '',
`dynamic_get` INT(11) NOT NULL DEFAULT 0, `dynamic_get` INT(11) NOT NULL DEFAULT 0,
`libraries` TEXT NOT NULL, `libraries` TEXT NOT NULL,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`php_view` MEDIUMTEXT NOT NULL, `php_view` MEDIUMTEXT NOT NULL,
`snippet` INT(11) NOT NULL DEFAULT 0, `snippet` INT(11) NOT NULL DEFAULT 0,
`template` TEXT NOT NULL, `template` TEXT NOT NULL,
@ -709,12 +709,12 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_layout` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`add_php_view` TINYINT(1) NOT NULL DEFAULT 0, `add_php_view` TINYINT(1) NOT NULL DEFAULT 0,
`alias` VARCHAR(255) NOT NULL, `alias` VARCHAR(255) NOT NULL DEFAULT '',
`description` VARCHAR(255) NOT NULL, `description` VARCHAR(255) NOT NULL DEFAULT '',
`dynamic_get` INT(11) NOT NULL DEFAULT 0, `dynamic_get` INT(11) NOT NULL DEFAULT 0,
`layout` TEXT NOT NULL, `layout` TEXT NOT NULL,
`libraries` TEXT NOT NULL, `libraries` TEXT NOT NULL,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`php_view` MEDIUMTEXT NOT NULL, `php_view` MEDIUMTEXT NOT NULL,
`snippet` INT(11) NOT NULL DEFAULT 0, `snippet` INT(11) NOT NULL DEFAULT 0,
`params` text NULL, `params` text NULL,
@ -750,19 +750,19 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_dynamic_get` (
`add_php_before_getitems` TINYINT(1) NOT NULL DEFAULT 0, `add_php_before_getitems` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_getlistquery` TINYINT(1) NOT NULL DEFAULT 0, `add_php_getlistquery` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_router_parse` TINYINT(1) NOT NULL DEFAULT 0, `add_php_router_parse` TINYINT(1) NOT NULL DEFAULT 0,
`addcalculation` CHAR NOT NULL, `addcalculation` CHAR NOT NULL DEFAULT '',
`db_selection` TEXT NOT NULL, `db_selection` TEXT NOT NULL,
`db_table_main` VARCHAR(255) NOT NULL, `db_table_main` VARCHAR(255) NOT NULL DEFAULT '',
`filter` TEXT NOT NULL, `filter` TEXT NOT NULL,
`getcustom` VARCHAR(255) NOT NULL, `getcustom` VARCHAR(255) NOT NULL DEFAULT '',
`gettype` TINYINT(1) NOT NULL DEFAULT 0, `gettype` TINYINT(1) NOT NULL DEFAULT 0,
`global` TEXT NOT NULL, `global` TEXT NOT NULL,
`group` TEXT NOT NULL, `group` TEXT NOT NULL,
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`join_db_table` TEXT NOT NULL, `join_db_table` TEXT NOT NULL,
`join_view_table` TEXT NOT NULL, `join_view_table` TEXT NOT NULL,
`main_source` TINYINT(1) NOT NULL DEFAULT 0, `main_source` TINYINT(1) NOT NULL DEFAULT 0,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`order` TEXT NOT NULL, `order` TEXT NOT NULL,
`pagination` TINYINT(1) NOT NULL DEFAULT 1, `pagination` TINYINT(1) NOT NULL DEFAULT 1,
`php_after_getitem` MEDIUMTEXT NOT NULL, `php_after_getitem` MEDIUMTEXT NOT NULL,
@ -773,7 +773,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_dynamic_get` (
`php_custom_get` MEDIUMTEXT NOT NULL, `php_custom_get` MEDIUMTEXT NOT NULL,
`php_getlistquery` MEDIUMTEXT NOT NULL, `php_getlistquery` MEDIUMTEXT NOT NULL,
`php_router_parse` MEDIUMTEXT NOT NULL, `php_router_parse` MEDIUMTEXT NOT NULL,
`plugin_events` VARCHAR(255) NOT NULL, `plugin_events` VARCHAR(255) NOT NULL DEFAULT '',
`select_all` TINYINT(1) NOT NULL DEFAULT 0, `select_all` TINYINT(1) NOT NULL DEFAULT 0,
`view_selection` TEXT NOT NULL, `view_selection` TEXT NOT NULL,
`view_table_main` INT(11) NOT NULL DEFAULT 0, `view_table_main` INT(11) NOT NULL DEFAULT 0,
@ -817,14 +817,14 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_code` (
`code` MEDIUMTEXT NOT NULL, `code` MEDIUMTEXT NOT NULL,
`comment_type` TINYINT(1) NOT NULL DEFAULT 1, `comment_type` TINYINT(1) NOT NULL DEFAULT 1,
`component` INT(11) NOT NULL DEFAULT 0, `component` INT(11) NOT NULL DEFAULT 0,
`from_line` VARCHAR(100) NOT NULL, `from_line` VARCHAR(100) NOT NULL DEFAULT '',
`function_name` VARCHAR(255) NOT NULL, `function_name` VARCHAR(255) NOT NULL DEFAULT '',
`hashendtarget` VARCHAR(64) NOT NULL, `hashendtarget` VARCHAR(64) NOT NULL DEFAULT '',
`hashtarget` VARCHAR(64) NOT NULL, `hashtarget` VARCHAR(64) NOT NULL DEFAULT '',
`path` TEXT NOT NULL, `path` TEXT NOT NULL,
`system_name` VARCHAR(255) NOT NULL, `system_name` VARCHAR(255) NOT NULL DEFAULT '',
`target` TINYINT(1) NOT NULL DEFAULT 0, `target` TINYINT(1) NOT NULL DEFAULT 0,
`to_line` VARCHAR(100) NOT NULL, `to_line` VARCHAR(100) NOT NULL DEFAULT '',
`type` TINYINT(1) NOT NULL DEFAULT 0, `type` TINYINT(1) NOT NULL DEFAULT 0,
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
@ -857,11 +857,11 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_class_property` (
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`comment` TEXT NOT NULL, `comment` TEXT NOT NULL,
`default` TEXT NOT NULL, `default` TEXT NOT NULL,
`extension_type` VARCHAR(64) NOT NULL, `extension_type` VARCHAR(64) NOT NULL DEFAULT '',
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`joomla_plugin_group` INT(11) NOT NULL DEFAULT 0, `joomla_plugin_group` INT(11) NOT NULL DEFAULT 0,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`visibility` VARCHAR(255) NOT NULL, `visibility` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,
@ -892,11 +892,11 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_class_method` (
`arguments` TEXT NOT NULL, `arguments` TEXT NOT NULL,
`code` MEDIUMTEXT NOT NULL, `code` MEDIUMTEXT NOT NULL,
`comment` TEXT NOT NULL, `comment` TEXT NOT NULL,
`extension_type` VARCHAR(64) NOT NULL, `extension_type` VARCHAR(64) NOT NULL DEFAULT '',
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`joomla_plugin_group` INT(11) NOT NULL DEFAULT 0, `joomla_plugin_group` INT(11) NOT NULL DEFAULT 0,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`visibility` VARCHAR(255) NOT NULL, `visibility` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,
@ -924,7 +924,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_class_method` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_placeholder` ( CREATE TABLE IF NOT EXISTS `#__componentbuilder_placeholder` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`target` VARCHAR(255) NOT NULL, `target` VARCHAR(255) NOT NULL DEFAULT '',
`value` TEXT NOT NULL, `value` TEXT NOT NULL,
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
@ -951,11 +951,11 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_library` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`addconditions` MEDIUMTEXT NOT NULL, `addconditions` MEDIUMTEXT NOT NULL,
`description` VARCHAR(255) NOT NULL, `description` VARCHAR(255) NOT NULL DEFAULT '',
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`how` TINYINT(1) NOT NULL DEFAULT 1, `how` TINYINT(1) NOT NULL DEFAULT 1,
`libraries` TEXT NOT NULL, `libraries` TEXT NOT NULL,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`php_setdocument` MEDIUMTEXT NOT NULL, `php_setdocument` MEDIUMTEXT NOT NULL,
`target` TINYINT(1) NOT NULL DEFAULT 1, `target` TINYINT(1) NOT NULL DEFAULT 1,
`type` TINYINT(1) NOT NULL DEFAULT 0, `type` TINYINT(1) NOT NULL DEFAULT 0,
@ -985,18 +985,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_library` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_snippet` ( CREATE TABLE IF NOT EXISTS `#__componentbuilder_snippet` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`contributor_company` VARCHAR(255) NOT NULL, `contributor_company` VARCHAR(255) NOT NULL DEFAULT '',
`contributor_email` VARCHAR(255) NOT NULL, `contributor_email` VARCHAR(255) NOT NULL DEFAULT '',
`contributor_name` VARCHAR(255) NOT NULL, `contributor_name` VARCHAR(255) NOT NULL DEFAULT '',
`contributor_website` VARCHAR(255) NOT NULL, `contributor_website` VARCHAR(255) NOT NULL DEFAULT '',
`description` TEXT NOT NULL, `description` TEXT NOT NULL,
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`heading` VARCHAR(255) NOT NULL, `heading` VARCHAR(255) NOT NULL DEFAULT '',
`library` INT(11) NOT NULL DEFAULT 0, `library` INT(11) NOT NULL DEFAULT 0,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`snippet` TEXT NOT NULL, `snippet` TEXT NOT NULL,
`type` INT(11) NOT NULL DEFAULT 0, `type` INT(11) NOT NULL DEFAULT 0,
`url` VARCHAR(255) NOT NULL, `url` VARCHAR(255) NOT NULL DEFAULT '',
`usage` TEXT NOT NULL, `usage` TEXT NOT NULL,
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
@ -1025,10 +1025,10 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_snippet` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_validation_rule` ( CREATE TABLE IF NOT EXISTS `#__componentbuilder_validation_rule` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`inherit` CHAR NOT NULL, `inherit` CHAR NOT NULL DEFAULT '',
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`php` MEDIUMTEXT NOT NULL, `php` MEDIUMTEXT NOT NULL,
`short_description` VARCHAR(255) NOT NULL, `short_description` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,
@ -1060,20 +1060,20 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_field` (
`catid` INT(11) NOT NULL DEFAULT 0, `catid` INT(11) NOT NULL DEFAULT 0,
`css_view` TEXT NOT NULL, `css_view` TEXT NOT NULL,
`css_views` TEXT NOT NULL, `css_views` TEXT NOT NULL,
`datadefault` CHAR(64) NOT NULL, `datadefault` CHAR(64) NOT NULL DEFAULT '',
`datadefault_other` CHAR(64) NOT NULL, `datadefault_other` CHAR(64) NOT NULL DEFAULT '',
`datalenght` CHAR(64) NOT NULL, `datalenght` CHAR(64) NOT NULL DEFAULT '',
`datalenght_other` CHAR(64) NOT NULL, `datalenght_other` CHAR(64) NOT NULL DEFAULT '',
`datatype` CHAR(64) NOT NULL, `datatype` CHAR(64) NOT NULL DEFAULT '',
`fieldtype` INT(11) NOT NULL DEFAULT 0, `fieldtype` INT(11) NOT NULL DEFAULT 0,
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`indexes` CHAR(64) NOT NULL, `indexes` CHAR(64) NOT NULL DEFAULT '',
`initiator_on_get_model` TEXT NOT NULL, `initiator_on_get_model` TEXT NOT NULL,
`initiator_on_save_model` TEXT NOT NULL, `initiator_on_save_model` TEXT NOT NULL,
`javascript_view_footer` TEXT NOT NULL, `javascript_view_footer` TEXT NOT NULL,
`javascript_views_footer` TEXT NOT NULL, `javascript_views_footer` TEXT NOT NULL,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`null_switch` CHAR(64) NOT NULL, `null_switch` CHAR(64) NOT NULL DEFAULT '',
`on_get_model_field` TEXT NOT NULL, `on_get_model_field` TEXT NOT NULL,
`on_save_model_field` TEXT NOT NULL, `on_save_model_field` TEXT NOT NULL,
`store` INT(11) NOT NULL DEFAULT 0, `store` INT(11) NOT NULL DEFAULT 0,
@ -1117,19 +1117,19 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_fieldtype` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`catid` INT(11) NOT NULL DEFAULT 0, `catid` INT(11) NOT NULL DEFAULT 0,
`datadefault` CHAR(64) NOT NULL, `datadefault` CHAR(64) NOT NULL DEFAULT '',
`datadefault_other` CHAR(64) NOT NULL, `datadefault_other` CHAR(64) NOT NULL DEFAULT '',
`datalenght` CHAR(64) NOT NULL, `datalenght` CHAR(64) NOT NULL DEFAULT '',
`datalenght_other` CHAR(64) NOT NULL, `datalenght_other` CHAR(64) NOT NULL DEFAULT '',
`datatype` CHAR(64) NOT NULL, `datatype` CHAR(64) NOT NULL DEFAULT '',
`description` TEXT NOT NULL, `description` TEXT NOT NULL,
`guid` VARCHAR(36) NOT NULL, `guid` VARCHAR(36) NOT NULL DEFAULT '',
`has_defaults` TINYINT(1) NOT NULL DEFAULT 0, `has_defaults` TINYINT(1) NOT NULL DEFAULT 0,
`indexes` CHAR(64) NOT NULL, `indexes` CHAR(64) NOT NULL DEFAULT '',
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`null_switch` CHAR(64) NOT NULL, `null_switch` CHAR(64) NOT NULL DEFAULT '',
`properties` TEXT NOT NULL, `properties` TEXT NOT NULL,
`short_description` VARCHAR(255) NOT NULL, `short_description` VARCHAR(255) NOT NULL DEFAULT '',
`store` INT(11) NOT NULL DEFAULT 0, `store` INT(11) NOT NULL DEFAULT 0,
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
@ -1193,8 +1193,8 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_language_translation` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_language` ( CREATE TABLE IF NOT EXISTS `#__componentbuilder_language` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`langtag` VARCHAR(64) NOT NULL, `langtag` VARCHAR(64) NOT NULL DEFAULT '',
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,
@ -1221,7 +1221,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_server` (
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`authentication` TINYINT(1) NOT NULL DEFAULT 0, `authentication` TINYINT(1) NOT NULL DEFAULT 0,
`host` TEXT NOT NULL, `host` TEXT NOT NULL,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`password` TEXT NOT NULL, `password` TEXT NOT NULL,
`path` TEXT NOT NULL, `path` TEXT NOT NULL,
`port` TEXT NOT NULL, `port` TEXT NOT NULL,
@ -1256,18 +1256,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_server` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_help_document` ( CREATE TABLE IF NOT EXISTS `#__componentbuilder_help_document` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`admin_view` CHAR(255) NOT NULL, `admin_view` CHAR(255) NOT NULL DEFAULT '',
`alias` CHAR(64) NOT NULL, `alias` CHAR(64) NOT NULL DEFAULT '',
`article` TINYINT(1) NOT NULL DEFAULT 0, `article` TINYINT(1) NOT NULL DEFAULT 0,
`content` TEXT NOT NULL, `content` TEXT NOT NULL,
`groups` TEXT NOT NULL, `groups` TEXT NOT NULL,
`location` TINYINT(1) NOT NULL DEFAULT 0, `location` TINYINT(1) NOT NULL DEFAULT 0,
`not_required` INT(1) NOT NULL DEFAULT 0, `not_required` INT(1) NOT NULL DEFAULT 0,
`site_view` CHAR(255) NOT NULL, `site_view` CHAR(255) NOT NULL DEFAULT '',
`target` TINYINT(1) NOT NULL DEFAULT 0, `target` TINYINT(1) NOT NULL DEFAULT 0,
`title` CHAR(64) NOT NULL, `title` CHAR(64) NOT NULL DEFAULT '',
`type` TINYINT(1) NOT NULL DEFAULT 0, `type` TINYINT(1) NOT NULL DEFAULT 0,
`url` VARCHAR(255) NOT NULL, `url` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,
@ -1715,8 +1715,8 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_modules` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_snippet_type` ( CREATE TABLE IF NOT EXISTS `#__componentbuilder_snippet_type` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`description` VARCHAR(255) NOT NULL, `description` VARCHAR(255) NOT NULL DEFAULT '',
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,
@ -1798,9 +1798,9 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_class_extends` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`comment` TEXT NOT NULL, `comment` TEXT NOT NULL,
`extension_type` VARCHAR(64) NOT NULL, `extension_type` VARCHAR(64) NOT NULL DEFAULT '',
`head` TEXT NOT NULL, `head` TEXT NOT NULL,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,
@ -1882,7 +1882,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_plugin_group` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`class_extends` INT(11) NOT NULL DEFAULT 0, `class_extends` INT(11) NOT NULL DEFAULT 0,
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '',
`params` text NULL, `params` text NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1, `published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0, `created_by` INT(10) unsigned NOT NULL DEFAULT 0,

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="4" method="upgrade"> <extension type="component" version="4" method="upgrade">
<name>COM_COMPONENTBUILDER</name> <name>COM_COMPONENTBUILDER</name>
<creationDate>16th May, 2023</creationDate> <creationDate>18th May, 2023</creationDate>
<author>Llewellyn van der Merwe</author> <author>Llewellyn van der Merwe</author>
<authorEmail>joomla@vdm.io</authorEmail> <authorEmail>joomla@vdm.io</authorEmail>
<authorUrl>https://dev.vdm.io</authorUrl> <authorUrl>https://dev.vdm.io</authorUrl>