Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/joomla4/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/joomla4/sql.tar

mysql/install.mysql.sql000064400000044246151156263170011265 0ustar00CREATE
TABLE IF NOT EXISTS `#__rsmembership_categories` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__rsmembership_configuration` (
  `name` varchar(255) NOT NULL,
  `value` text NOT NULL,
  PRIMARY KEY  (`name`)
) DEFAULT CHARSET=utf8;

INSERT IGNORE INTO `#__rsmembership_configuration` (`name`, `value`)
VALUES
('global_register_code', ''),
('date_format', 'd.m.Y H:i:s'),
('currency', 'EUR'),
('delete_pending_after', '168'),
('show_login', '1'),
('create_user_instantly', '1'),
('disable_registration', '0'),
('registration_page', ''),
('price_format', '{price} {currency}'),
('format_decimals', '2'),
('format_decimals_point', '.'),
('format_thousands_sep', ''),
('price_show_free', '1'),
('expire_last_run', '0'),
('expire_emails', '10'),
('expire_check_in', '10'),
('choose_username', '0'),
('captcha_enabled', '0'),
('captcha_enabled_for', '1,0'),
('captcha_characters', '5'),
('captcha_lines', '1'),
('captcha_case_sensitive', '0'),
('recaptcha_public_key', ''),
('recaptcha_private_key', ''),
('recaptcha_theme', 'red'),
('idev_enable', '0'),
('idev_url', ''),
('idev_track_renewals', '0'),
('last_check', '0'),
('choose_password', '0'),
('one_page_checkout', '0'),
('replace_gid', '1'),
('interval', '5'),
('load_bootstrap', '1'),
('footer_enable', '1'),
('full_email_username', '0'),
('allow_resubscribe', '1'),
('footer_content', '<p><small>This message has
been automatically sent by <a href="{siteurl}"
title="{sitename}"><strong>{sitename}</strong></a></small></p>'),
('trigger_content_plugins', '0'),
('recaptcha_new_site_key', ''),
('recaptcha_new_secret_key', ''),
('recaptcha_new_theme', 'light'),
('recaptcha_new_type', 'image'),
('allow_renew_in_advance', '1'),
('store_ip', '1'),
('allow_self_anonymisation', '0'),
('send_user_account_email', '2'),
('general_invoice_title', 'Invoice #{invoice_id}'),
('general_invoice_padding', '7'),
('general_invoice_layout', '<h1>Invoice
#{invoice_id}</h1>\r\n<h3>Date of issue
{date_purchased}</h3>\r\n\r\n<table
width=\"100%\">\r\n	<tr>\r\n		<td>\r\n			<h3>Billed
To</h3>\r\n			<p>{name}</p>\r\n			<p>{email}</p>\r\n		</td>\r\n		<td>\r\n			<h3>My
Company</h3>\r\n			<p>{site_name}</p>\r\n			<p>{site_url}</p>\r\n		</td>\r\n	</tr>\r\n</table>\r\n\r\n\r\n{invoice_transaction_table}'),
('general_invoice_pdf_font', 'freesans'),
('general_invoice_pdf_font_size', '12');

CREATE TABLE IF NOT EXISTS `#__rsmembership_countries` (
  `name` varchar(255) NOT NULL,
  UNIQUE KEY `name` (`name`)
) DEFAULT CHARSET=utf8;

INSERT IGNORE INTO `#__rsmembership_countries` (`name`) VALUES
('Afghanistan'),
('Akrotiri'),
('Albania'),
('Algeria'),
('American Samoa'),
('Andorra'),
('Angola'),
('Anguilla'),
('Antarctica'),
('Antigua and Barbuda'),
('Argentina'),
('Armenia'),
('Aruba'),
('Ashmore and Cartier Islands'),
('Australia'),
('Austria'),
('Azerbaijan'),
('Bahamas, The'),
('Bahrain'),
('Bangladesh'),
('Barbados'),
('Bassas da India'),
('Belarus'),
('Belgium'),
('Belize'),
('Benin'),
('Bermuda'),
('Bhutan'),
('Bolivia'),
('Bosnia and Herzegovina'),
('Botswana'),
('Bouvet Island'),
('Brazil'),
('British Indian Ocean Territory'),
('British Virgin Islands'),
('Brunei'),
('Bulgaria'),
('Burkina Faso'),
('Burma'),
('Burundi'),
('Cambodia'),
('Cameroon'),
('Canada'),
('Cape Verde'),
('Cayman Islands'),
('Central African Republic'),
('Chad'),
('Chile'),
('China'),
('Christmas Island'),
('Clipperton Island'),
('Cocos (Keeling) Islands'),
('Colombia'),
('Comoros'),
('Congo, Democratic Republic of the'),
('Congo, Republic of the'),
('Cook Islands'),
('Coral Sea Islands'),
('Costa Rica'),
('Cote d''Ivoire'),
('Croatia'),
('Cuba'),
('Cyprus'),
('Czech Republic'),
('Denmark'),
('Dhekelia'),
('Djibouti'),
('Dominica'),
('Dominican Republic'),
('Ecuador'),
('Egypt'),
('El Salvador'),
('Equatorial Guinea'),
('Eritrea'),
('Estonia'),
('Ethiopia'),
('Europa Island'),
('Falkland Islands (Islas Malvinas)'),
('Faroe Islands'),
('Fiji'),
('Finland'),
('France'),
('French Guiana'),
('French Polynesia'),
('French Southern and Antarctic Lands'),
('Gabon'),
('Gambia, The'),
('Gaza Strip'),
('Georgia'),
('Germany'),
('Ghana'),
('Gibraltar'),
('Glorioso Islands'),
('Greece'),
('Greenland'),
('Grenada'),
('Guadeloupe'),
('Guam'),
('Guatemala'),
('Guernsey'),
('Guinea'),
('Guinea-Bissau'),
('Guyana'),
('Haiti'),
('Heard Island and McDonald Islands'),
('Holy See (Vatican City)'),
('Honduras'),
('Hong Kong'),
('Hungary'),
('Iceland'),
('India'),
('Indonesia'),
('Iran'),
('Iraq'),
('Ireland'),
('Isle of Man'),
('Israel'),
('Italy'),
('Jamaica'),
('Jan Mayen'),
('Japan'),
('Jersey'),
('Jordan'),
('Juan de Nova Island'),
('Kazakhstan'),
('Kenya'),
('Kiribati'),
('Korea, North'),
('Korea, South'),
('Kuwait'),
('Kyrgyzstan'),
('Laos'),
('Latvia'),
('Lebanon'),
('Lesotho'),
('Liberia'),
('Libya'),
('Liechtenstein'),
('Lithuania'),
('Luxembourg'),
('Macau'),
('Macedonia'),
('Madagascar'),
('Malawi'),
('Malaysia'),
('Maldives'),
('Mali'),
('Malta'),
('Marshall Islands'),
('Martinique'),
('Mauritania'),
('Mauritius'),
('Mayotte'),
('Mexico'),
('Micronesia, Federated States of'),
('Moldova'),
('Monaco'),
('Mongolia'),
('Montserrat'),
('Morocco'),
('Mozambique'),
('Namibia'),
('Nauru'),
('Navassa Island'),
('Nepal'),
('Netherlands'),
('Netherlands Antilles'),
('New Caledonia'),
('New Zealand'),
('Nicaragua'),
('Niger'),
('Nigeria'),
('Niue'),
('Norfolk Island'),
('Northern Mariana Islands'),
('Norway'),
('Oman'),
('Pakistan'),
('Palau'),
('Panama'),
('Papua New Guinea'),
('Paracel Islands'),
('Paraguay'),
('Peru'),
('Philippines'),
('Pitcairn Islands'),
('Poland'),
('Portugal'),
('Puerto Rico'),
('Qatar'),
('Reunion'),
('Romania'),
('Russia'),
('Rwanda'),
('Saint Helena'),
('Saint Kitts and Nevis'),
('Saint Lucia'),
('Saint Pierre and Miquelon'),
('Saint Vincent and the Grenadines'),
('Samoa'),
('San Marino'),
('Sao Tome and Principe'),
('Saudi Arabia'),
('Senegal'),
('Serbia and Montenegro'),
('Seychelles'),
('Sierra Leone'),
('Singapore'),
('Slovakia'),
('Slovenia'),
('Solomon Islands'),
('Somalia'),
('South Africa'),
('South Georgia and the South Sandwich Islands'),
('Spain'),
('Spratly Islands'),
('Sri Lanka'),
('Sudan'),
('Suriname'),
('Svalbard'),
('Swaziland'),
('Sweden'),
('Switzerland'),
('Syria'),
('Taiwan'),
('Tajikistan'),
('Tanzania'),
('Thailand'),
('Timor-Leste'),
('Togo'),
('Tokelau'),
('Tonga'),
('Trinidad and Tobago'),
('Tromelin Island'),
('Tunisia'),
('Turkey'),
('Turkmenistan'),
('Turks and Caicos Islands'),
('Tuvalu'),
('Uganda'),
('Ukraine'),
('United Arab Emirates'),
('United Kingdom'),
('United States'),
('Uruguay'),
('Uzbekistan'),
('Vanuatu'),
('Venezuela'),
('Vietnam'),
('Virgin Islands'),
('Wake Island'),
('Wallis and Futuna'),
('West Bank'),
('Western Sahara'),
('Yemen'),
('Zambia'),
('Zimbabwe');

CREATE TABLE IF NOT EXISTS `#__rsmembership_coupons` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `date_added` DATETIME NOT NULL,
  `date_start` DATETIME NOT NULL,
  `date_end` DATETIME NOT NULL,
  `discount_type` tinyint(1) NOT NULL,
  `discount_price` decimal(10,2) NOT NULL,
  `max_uses` int(11) NOT NULL,
  `published` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
)  DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_coupon_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `coupon_id` int(11) NOT NULL,
  `membership_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `coupon_id` (`coupon_id`,`membership_id`)
)  DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_extras` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `type` enum('dropdown','radio','checkbox')
NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_extra_values` (
  `id` int(11) NOT NULL auto_increment,
  `extra_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `sku` varchar(255) NOT NULL,
  `price` decimal(10, 2) NOT NULL,
  `share_redirect` text NOT NULL,
  `checked` tinyint(1) NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `extra_id` (`extra_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_extra_value_shared` (
  `id` int(11) NOT NULL auto_increment,
  `extra_value_id` int(11) NOT NULL,
  `params` text NOT NULL,
  `type` varchar(255) NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `extra_value_id` (`extra_value_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_fields` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL,
  `label` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `values` text NOT NULL,
  `datetimeformat` varchar(255) NOT NULL,
  `additional` text NOT NULL,
  `validation` text NOT NULL,
  `rule` varchar(64) NOT NULL,
  `required` tinyint(1) NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  `showinsubscribers` tinyint(1) NOT NULL,
  PRIMARY KEY  (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_files` (
  `id` int(11) NOT NULL auto_increment,
  `path` text NOT NULL,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `term_id` int(11) NOT NULL,
  `visits` int(11) NOT NULL,
  `downloads` int(11) NOT NULL,
  `thumb` varchar(255) NOT NULL,
  `thumb_w` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_logs` (
  `id` int(11) NOT NULL auto_increment,
  `date` DATETIME NOT NULL,
  `user_id` int(11) NOT NULL,
  `path` text NOT NULL,
  `ip` varchar(16) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `user_id` (`user_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_memberships` (
  `id` int(11) NOT NULL auto_increment,
  `category_id` int(11) NOT NULL default '0',
  `name` text NOT NULL,
  `description` text NOT NULL,
  `term_id` int(11) NOT NULL,
  `thumb` text NOT NULL,
  `thumb_w` int(11) NOT NULL,
  `sku` text NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `use_renewal_price` tinyint(1) NOT NULL,
  `renewal_price` decimal(10,2) NOT NULL,
  `recurring` tinyint(1) NOT NULL,
  `recurring_times` int(11) NOT NULL,
  `share_redirect` text NOT NULL,
  `period` int(11) NOT NULL,
  `period_type` varchar(1) NOT NULL,
  `use_trial_period` tinyint(1) NOT NULL,
  `trial_period` int(11) NOT NULL,
  `trial_period_type` varchar(1) NOT NULL,
  `trial_price` decimal(10,2) NOT NULL,
  `unique` tinyint(1) NOT NULL default '0',
  `no_renew` tinyint(1) NOT NULL default '0',
  `stock` int(11) NOT NULL,
  `activation` tinyint(1) NOT NULL,
  `action` tinyint(1) NOT NULL,
  `thankyou` text NOT NULL,
  `redirect` text NOT NULL,
  `user_email_use_global` tinyint(1) NOT NULL,
  `user_email_mode` tinyint(1) NOT NULL,
  `user_email_from` text NOT NULL,
  `user_email_from_addr` text NOT NULL,
  `user_email_new_subject` text NOT NULL,
  `user_email_new_text` text NOT NULL,
  `user_email_approved_subject` text NOT NULL,
  `user_email_approved_text` text NOT NULL,
  `user_email_denied_subject` text NOT NULL,
  `user_email_denied_text` text NOT NULL,
  `user_email_renew_subject` text NOT NULL,
  `user_email_renew_text` text NOT NULL,
  `user_email_upgrade_subject` text NOT NULL,
  `user_email_upgrade_text` text NOT NULL,
  `user_email_addextra_subject` text NOT NULL,
  `user_email_addextra_text` text NOT NULL,
  `user_email_expire_subject` text NOT NULL,
  `user_email_expire_text` text NOT NULL,
  `expire_notify_interval` int(3) NOT NULL default '3',
  `admin_email_mode` tinyint(1) NOT NULL,
  `admin_email_from_addr` text NOT NULL,
  `admin_email_to_addr` text NOT NULL,
  `admin_email_new_subject` text NOT NULL,
  `admin_email_new_text` text NOT NULL,
  `admin_email_approved_subject` text NOT NULL,
  `admin_email_approved_text` text NOT NULL,
  `admin_email_denied_subject` text NOT NULL,
  `admin_email_denied_text` text NOT NULL,
  `admin_email_renew_subject` text NOT NULL,
  `admin_email_renew_text` text NOT NULL,
  `admin_email_upgrade_subject` text NOT NULL,
  `admin_email_upgrade_text` text NOT NULL,
  `admin_email_addextra_subject` text NOT NULL,
  `admin_email_addextra_text` text NOT NULL,
  `admin_email_expire_subject` text NOT NULL,
  `admin_email_expire_text` text NOT NULL,
  `use_membership_invoice` tinyint(1) NOT NULL,
  `add_membership_invoice_to_approval` tinyint(1) NOT NULL default
'1',
  `membership_invoice_type` varchar(6) NOT NULL,
  `membership_invoice_padding` int(10) NOT NULL,
  `membership_invoice_title` text NOT NULL,
  `membership_invoice_layout` text NOT NULL,
  `membership_invoice_pdf_font` varchar(15) NOT NULL,
  `membership_invoice_pdf_font_size` int(3) NOT NULL,
  `custom_code_transaction` text NOT NULL,
  `custom_code` text NOT NULL,
  `gid_enable` tinyint(1) NOT NULL default '0',
  `gid_subscribe` text NOT NULL,
  `gid_expire` text NOT NULL,
  `disable_expired_account` tinyint(1) NOT NULL,
  `fixed_expiry` tinyint(1) NOT NULL,
  `fixed_day` int(2) NOT NULL,
  `fixed_month` tinyint(2) NOT NULL,
  `fixed_year` smallint(4) NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MYISAM DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_membership_attachments` (
  `id` int(11) NOT NULL auto_increment,
  `membership_id` int(11) NOT NULL,
  `email_type` varchar( 64 ) NOT NULL,
  `path` text NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `membership_id` (`membership_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_membership_extras` (
  `membership_id` int(11) NOT NULL,
  `extra_id` int(11) NOT NULL,
  PRIMARY KEY  (`membership_id`,`extra_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_membership_fields` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `membership_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `label` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `values` text NOT NULL,
  `datetimeformat` varchar(255) NOT NULL,
  `additional` text NOT NULL,
  `validation` text NOT NULL,
  `rule` varchar(64) NOT NULL,
  `required` tinyint(1) NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY (`id`)
)  DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_membership_shared` (
  `id` int(11) NOT NULL auto_increment,
  `membership_id` int(11) NOT NULL,
  `params` text NOT NULL,
  `type` varchar(255) NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `membership_id` (`membership_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_membership_upgrades` (
  `id` int(11) NOT NULL auto_increment,
  `membership_from_id` int(11) NOT NULL,
  `membership_to_id` int(11) NOT NULL,
  `price` decimal(10, 2) NOT NULL,
  `published` tinyint(1) NOT NULL,
  PRIMARY KEY  (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_membership_subscribers` (
  `id` int(11) NOT NULL auto_increment,
  `user_id` int(11) NOT NULL,
  `membership_id` int(11) NOT NULL,
  `membership_start` DATETIME NOT NULL,
  `membership_end` DATETIME NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `currency` varchar(4) NOT NULL,
  `status` tinyint(4) NOT NULL,
  `extras` varchar(255) NOT NULL,
  `notes` text NOT NULL,
  `from_transaction_id` int(11) NOT NULL,
  `last_transaction_id` int(11) NOT NULL,
  `custom_1` varchar(255) NOT NULL,
  `custom_2` varchar(255) NOT NULL,
  `custom_3` varchar(255) NOT NULL,
  `notified` DATETIME NOT NULL,
  `published` tinyint(1) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `user_id` (`user_id`,`membership_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_payments` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL,
  `details` text NOT NULL,
  `tax_type` tinyint( 1 ) NOT NULL,
  `tax_value` int(11) NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_terms` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_transactions` (
  `id` int(11) NOT NULL auto_increment,
  `user_id` int(11) NOT NULL,
  `user_email` varchar(255) NOT NULL,
  `user_data` text NOT NULL,
  `type` varchar(32) NOT NULL,
  `params` text NOT NULL,
  `date` DATETIME NOT NULL,
  `ip` varchar(16) NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `tax_type` tinyint( 1 ) NOT NULL,
  `tax_value` decimal(10,2) NOT NULL,
  `coupon` varchar(64) NOT NULL,
  `currency` varchar(4) NOT NULL,
  `hash` varchar(255) NOT NULL,
  `custom` varchar(255) NOT NULL,
  `gateway` varchar(64) NOT NULL,
  `status` varchar(64) NOT NULL,
  `response_log` text NOT NULL,
  `transaction_data` text NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `user_id` (`user_id`),
  KEY `coupon` (`coupon`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_subscribers` (
  `user_id` int(11) NOT NULL,
  PRIMARY KEY  (`user_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_syslog` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(300) NOT NULL,
  `message` text NOT NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY (`id`)
)  DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsmembership_tokens` (
  `user_id` int(11) NOT NULL,
  `token` varchar(100) NOT NULL,
  PRIMARY KEY  (`user_id`)
) DEFAULT
CHARSET=utf8;mysql/uninstall.mysql.sql000064400000001437151156263170011623
0ustar00DROP TABLE IF EXISTS
`#__rsmembership_categories`,
`#__rsmembership_configuration`,
`#__rsmembership_coupons`,
`#__rsmembership_coupon_items`,
`#__rsmembership_countries`,
`#__rsmembership_extras`,
`#__rsmembership_extra_values`,
`#__rsmembership_extra_value_shared`,
`#__rsmembership_fields`,
`#__rsmembership_files`,
`#__rsmembership_logs`,
`#__rsmembership_memberships`,
`#__rsmembership_membership_attachments`,
`#__rsmembership_membership_extras`,
`#__rsmembership_membership_fields`,
`#__rsmembership_membership_shared`,
`#__rsmembership_membership_upgrades`,
`#__rsmembership_membership_subscribers`,
`#__rsmembership_payments`,
`#__rsmembership_terms`,
`#__rsmembership_transactions`,
`#__rsmembership_syslog`,
`#__rsmembership_subscribers`,
`#__rsmembership_tokens`;install.mysql.utf8.sql000064400000004534151160115740010773
0ustar00--
-- Table structure for table `#__contact_details`
--

CREATE TABLE IF NOT EXISTS `#__contact_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `con_position` varchar(255),
  `address` text,
  `suburb` varchar(100),
  `state` varchar(100),
  `country` varchar(100),
  `postcode` varchar(100),
  `telephone` varchar(255),
  `fax` varchar(255),
  `misc` mediumtext,
  `image` varchar(255),
  `email_to` varchar(255),
  `default_con` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `published` tinyint(1) NOT NULL DEFAULT 0,
  `checked_out` int(10) unsigned NOT NULL DEFAULT 0,
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `ordering` int(11) NOT NULL DEFAULT 0,
  `params` text NOT NULL,
  `user_id` int(11) NOT NULL DEFAULT 0,
  `catid` int(11) NOT NULL DEFAULT 0,
  `access` int(10) unsigned NOT NULL DEFAULT 0,
  `mobile` varchar(255) NOT NULL DEFAULT '',
  `webpage` varchar(255) NOT NULL DEFAULT '',
  `sortname1` varchar(255) NOT NULL DEFAULT '',
  `sortname2` varchar(255) NOT NULL DEFAULT '',
  `sortname3` varchar(255) NOT NULL DEFAULT '',
  `language` varchar(7) NOT NULL,
  `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_by` int(10) unsigned NOT NULL DEFAULT 0,
  `created_by_alias` varchar(255) NOT NULL DEFAULT '',
  `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `modified_by` int(10) unsigned NOT NULL DEFAULT 0,
  `metakey` text NOT NULL,
  `metadesc` text NOT NULL,
  `metadata` text NOT NULL,
  `featured` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Set if
contact is featured.',
  `xreference` varchar(50) NOT NULL DEFAULT '' COMMENT 'A
reference to enable linkages to external data sets.',
  `publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `publish_down` 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,
  PRIMARY KEY (`id`),
  KEY `idx_access` (`access`),
  KEY `idx_checkout` (`checked_out`),
  KEY `idx_state` (`published`),
  KEY `idx_catid` (`catid`),
  KEY `idx_createdby` (`created_by`),
  KEY `idx_featured_catid` (`featured`,`catid`),
  KEY `idx_language` (`language`),
  KEY `idx_xreference` (`xreference`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
uninstall.mysql.utf8.sql000064400000000054151160115740011327 0ustar00DROP
TABLE IF EXISTS `#__contact_details`;

updates/mysql/3.4.0.2.sql000064400000000000151160115740010670
0ustar00index.html000064400000000054151160174010006534
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>updates/index.html000064400000000054151160174010010201
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>updates/mysql/1.0.0.sql000064400000001275151160174010010534
0ustar00ALTER TABLE `#__moojla_course` ADD `cat_id` INT(10) NOT NULL
DEFAULT 0 AFTER `asset_id`;

ALTER TABLE `#__moojla_course` ADD `cat_name` CHAR(255) NOT NULL DEFAULT
'' AFTER `cat_id`;

ALTER TABLE `#__moojla_course` ADD `cost` INT(50) NOT NULL DEFAULT 0 AFTER
`cat_name`;

ALTER TABLE `#__moojla_course` ADD `guest` INT(10) NOT NULL DEFAULT 0 AFTER
`cost`;

ALTER TABLE `#__moojla_course` ADD `mytextarea` TEXT NOT NULL AFTER
`guest`;

ALTER TABLE `#__moojla_course` ADD `mytextblock` TEXT NOT NULL AFTER
`mytextarea`;

ALTER TABLE `#__moojla_course` ADD `teachers` TEXT NOT NULL AFTER `name`;

ALTER TABLE `#__moojla_course` ADD `title` VARCHAR(255) NOT NULL DEFAULT
'' AFTER `teachers`;
updates/mysql/1.0.1.sql000064400000000242151160174010010526 0ustar00ALTER
TABLE `#__moojla_course` CHANGE `mytextblock` `summary` TEXT NOT NULL;

ALTER TABLE `#__moojla_course` CHANGE `mytextarea` `summary_files` TEXT NOT
NULL;
updates/mysql/1.0.10.sql000064400000000134151160174010010606 0ustar00ALTER
TABLE `#__moojla_course` ADD `enddate` DATETIME NOT NULL DEFAULT
'' AFTER `currency`;
updates/mysql/1.0.11.sql000064400000000257151160174010010615 0ustar00ALTER
TABLE `#__moojla_course` CHANGE `enddate` `enddate` DATE NOT NULL DEFAULT
'';

ALTER TABLE `#__moojla_course` CHANGE `startdate` `startdate` DATE NOT NULL
DEFAULT '';
updates/mysql/1.0.12.sql000064400000000263151160174010010613 0ustar00ALTER
TABLE `#__moojla_course` CHANGE `enddate` `enddate` DATETIME DATETIME NOT
NULL;

ALTER TABLE `#__moojla_course` CHANGE `startdate` `startdate` DATETIME
DATETIME NOT NULL;
updates/mysql/1.0.13.sql000064400000002757151160174010010626 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_section` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`name` VARCHAR(255) NOT NULL DEFAULT '',
	`section_id` INT(10) NULL DEFAULT 0,
	`summary` TEXT NOT NULL,
	`visible` TINYINT(1) NOT NULL DEFAULT 0,
	`params` text NOT NULL,
	`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`),
	UNIQUE KEY `idx_section_id` (`section_id`),
	KEY `idx_access` (`access`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

ALTER TABLE `#__moojla_course` CHANGE `enddate` `enddate` VARCHAR(255) NULL
DEFAULT '0000-00-00 00:00:00';

ALTER TABLE `#__moojla_course` CHANGE `startdate` `startdate` VARCHAR(255)
NULL DEFAULT '0000-00-00 00:00:00';
updates/mysql/1.0.14.sql000064400000000134151160174010010612 0ustar00ALTER
TABLE `#__moojla_section` ADD `courseid` INT(10) NOT NULL DEFAULT 0 AFTER
`asset_id`;
updates/mysql/1.0.15.sql000064400000002722151160174010010620 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_module` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`description` TEXT NOT NULL,
	`modname` VARCHAR(255) NOT NULL DEFAULT '',
	`module_id` INT(10) NOT NULL DEFAULT 0,
	`module_section_id` INT(10) NOT NULL DEFAULT 0,
	`name` VARCHAR(255) NOT NULL DEFAULT '',
	`url` VARCHAR(255) NOT NULL DEFAULT '',
	`visible` TINYINT(1) NOT NULL DEFAULT 0,
	`params` text NOT NULL,
	`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`),
	UNIQUE KEY `idx_module_id` (`module_id`),
	KEY `idx_module_section_id` (`module_section_id`),
	KEY `idx_access` (`access`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.16.sql000064400000000120151160174010010607 0ustar00ALTER
TABLE `#__moojla_module` ADD `modicon` TEXT NOT NULL AFTER `description`;
updates/mysql/1.0.17.sql000064400000002663151160174010010626 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_content` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`contents_module_id` INT(10) NOT NULL DEFAULT 0,
	`filename` VARCHAR(255) NOT NULL DEFAULT '',
	`filesize` INT(64) NOT NULL DEFAULT 0,
	`fileurl` VARCHAR(255) NOT NULL DEFAULT '',
	`mimetype` VARCHAR(64) NOT NULL DEFAULT '',
	`type` VARCHAR(64) NOT NULL DEFAULT '',
	`params` text NOT NULL,
	`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`),
	UNIQUE KEY `idx_contents_module_id` (`contents_module_id`),
	KEY `idx_type` (`type`),
	KEY `idx_access` (`access`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.18.sql000064400000000150151160174010010614 0ustar00ALTER
TABLE `#__moojla_content` ADD `file` VARCHAR(255) NOT NULL DEFAULT
'' AFTER `contents_module_id`;
updates/mysql/1.0.19.sql000064400000000134151160174010010617 0ustar00ALTER
TABLE `#__moojla_module` ADD `uservisible` TINYINT(1) NOT NULL DEFAULT 0
AFTER `url`;
updates/mysql/1.0.2.sql000064400000000123151160174010010525 0ustar00ALTER
TABLE `#__moojla_course` CHANGE `summary_files` `mytextblock` TEXT NOT
NULL;
updates/mysql/1.0.20.sql000064400000000141151160174010010605 0ustar00ALTER
TABLE `#__moojla_section` ADD `uservisible` TINYINT(1) NOT NULL DEFAULT 0
AFTER `summary`;
updates/mysql/1.0.21.sql000064400000000155151160174010010613 0ustar00ALTER
TABLE `#__moojla_course` ADD `permanent_fields` VARCHAR(64) NOT NULL
DEFAULT '' AFTER `in_enrol_date`;
updates/mysql/1.0.22.sql000064400000000117151160174010010612 0ustar00ALTER
TABLE `#__moojla_user_map` ADD `courses` TEXT NOT NULL AFTER `asset_id`;
updates/mysql/1.0.23.sql000064400000000143151160174010010612 0ustar00ALTER
TABLE `#__moojla_user_map` ADD `mysecretvariable` TINYINT(1) NOT NULL
DEFAULT 0 AFTER `mid`;
updates/mysql/1.0.24.sql000064400000002252151160174010010616 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_user_field_map` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`juserfields` VARCHAR(64) NOT NULL DEFAULT '',
	`params` text NOT NULL,
	`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_juserfields` (`juserfields`),
	KEY `idx_access` (`access`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.25.sql000064400000000156151160174010010620 0ustar00ALTER
TABLE `#__moojla_user_field_map` ADD `muserfields` VARCHAR(64) NOT NULL
DEFAULT '' AFTER `juserfields`;
updates/mysql/1.0.26.sql000064400000000134151160174010010615 0ustar00ALTER
TABLE `#__moojla_enrolment` ADD `course` INT(11) NOT NULL DEFAULT 0 AFTER
`asset_id`;
updates/mysql/1.0.27.sql000064400000000127151160174010010620 0ustar00ALTER
TABLE `#__moojla_enrolment` ADD `jid` INT(11) NOT NULL DEFAULT 0 AFTER
`course`;
updates/mysql/1.0.28.sql000064400000002326151160174010010624 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_course_group_map` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`course_group` INT(7) NOT NULL DEFAULT 0,
	`mid` INT(64) NOT NULL DEFAULT 0,
	`role` INT(7) NOT NULL DEFAULT 0,
	`params` text NOT NULL,
	`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,
	`ordering` INT(11) NOT NULL DEFAULT 0,
	PRIMARY KEY  (`id`),
	KEY `idx_mid` (`mid`),
	KEY `idx_course_group` (`course_group`),
	KEY `idx_role` (`role`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.29.sql000064400000000151151160174010010617 0ustar00ALTER
TABLE `#__moojla_course_group_map` ADD `remoteid` INT(10) NOT NULL DEFAULT
0 AFTER `course_group`;
updates/mysql/1.0.3.sql000064400000000123151160174010010526 0ustar00ALTER
TABLE `#__moojla_course` CHANGE `mytextblock` `summary_files` TEXT NOT
NULL;
updates/mysql/1.0.30.sql000064400000000143151160174010010610 0ustar00ALTER
TABLE `#__moojla_course_group_map` ADD `course` INT(11) NOT NULL DEFAULT 0
AFTER `asset_id`;
updates/mysql/1.0.31.sql000064400000000143151160174010010611 0ustar00ALTER
TABLE `#__moojla_course_group_map` ADD `course` INT(11) NOT NULL DEFAULT 0
AFTER `asset_id`;
updates/mysql/1.0.32.sql000064400000000143151160174010010612 0ustar00ALTER
TABLE `#__moojla_course_group_map` ADD `course` INT(11) NOT NULL DEFAULT 0
AFTER `asset_id`;
updates/mysql/1.0.33.sql000064400000000143151160174010010613 0ustar00ALTER
TABLE `#__moojla_course_group_map` ADD `course` INT(11) NOT NULL DEFAULT 0
AFTER `asset_id`;
updates/mysql/1.0.34.sql000064400000000144151160174010010615 0ustar00ALTER
TABLE `#__moojla_course_group_map` CHANGE `course` `moojlacourse` INT(11)
NOT NULL DEFAULT 0;
updates/mysql/1.0.35.sql000064400000000155151160174010010620 0ustar00ALTER
TABLE `#__moojla_course_group_map` ADD `moojlacourse` INT(11) NOT NULL
DEFAULT 0 AFTER `course_group`;
updates/mysql/1.0.36.sql000064400000000142151160174010010615 0ustar00ALTER
TABLE `#__moojla_user_field_map` ADD `iscv` TINYINT(1) NOT NULL DEFAULT 0
AFTER `asset_id`;
updates/mysql/1.0.37.sql000064400000002111151160174010010614 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_course_field_mapper` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`alias` INT(10) NOT NULL DEFAULT 0,
	`params` text NOT NULL,
	`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,
	`ordering` INT(11) NOT NULL DEFAULT 0,
	PRIMARY KEY  (`id`),
	KEY `idx_alias` (`alias`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.38.sql000064400000000001151160174010010611 0ustar00
updates/mysql/1.0.39.sql000064400000000343151160174010010623 0ustar00ALTER
TABLE `#__moojla_course_field_mapper` ADD `coursefield` INT(10) NOT NULL
DEFAULT 0 AFTER `asset_id`;

ALTER TABLE `#__moojla_course_field_mapper` ADD `mcoursefields` VARCHAR(64)
NOT NULL DEFAULT '' AFTER `coursefield`;
updates/mysql/1.0.4.sql000064400000000577151160174010010544 0ustar00ALTER
TABLE `#__moojla_course` ADD `currency` VARCHAR(10) NOT NULL DEFAULT 0
AFTER `cost`;

ALTER TABLE `#__moojla_course` ADD `fullname` VARCHAR(255) NOT NULL DEFAULT
'' AFTER `currency`;

ALTER TABLE `#__moojla_course` ADD `remoteid` INT(10) NOT NULL DEFAULT 0
AFTER `guest`;

ALTER TABLE `#__moojla_course` ADD `shortname` VARCHAR(255) NOT NULL
DEFAULT '' AFTER `remoteid`;
updates/mysql/1.0.40.sql000064400000000163151160174010010613 0ustar00ALTER
TABLE `#__moojla_course_field_mapper` ADD `field_icon` VARCHAR(255) NOT
NULL DEFAULT '' AFTER `coursefield`;
updates/mysql/1.0.41.sql000064400000000165151160174010010616 0ustar00ALTER
TABLE `#__moojla_course_field_mapper` ADD `mcoursefields` VARCHAR(64) NOT
NULL DEFAULT '' AFTER `coursefield`;
updates/mysql/1.0.42.sql000064400000000163151160174010010615 0ustar00ALTER
TABLE `#__moojla_course_field_mapper` ADD `somefield` VARCHAR(10) NOT NULL
DEFAULT '' AFTER `mcoursefields`;
updates/mysql/1.0.43.sql000064400000000162151160174010010615 0ustar00ALTER
TABLE `#__moojla_course_field_mapper` ADD `imageicon` VARCHAR(255) NOT NULL
DEFAULT '' AFTER `coursefield`;
updates/mysql/1.0.44.sql000064400000002354151160174010010623 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_course_field_mapper` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`coursefield` INT(10) NOT NULL DEFAULT 0,
	`field_icon` VARCHAR(255) NOT NULL DEFAULT '',
	`mcoursefields` VARCHAR(64) NOT NULL DEFAULT '',
	`params` text NOT NULL,
	`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,
	`ordering` INT(11) NOT NULL DEFAULT 0,
	PRIMARY KEY  (`id`),
	KEY `idx_coursefield` (`coursefield`),
	KEY `idx_mcoursefields` (`mcoursefields`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.45.sql000064400000004742151160174010010627 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_tag` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`isstandard` TINYINT(1) NOT NULL DEFAULT 0,
	`tagid` INT(10) NOT NULL DEFAULT 0,
	`tagname` VARCHAR(64) NOT NULL DEFAULT '',
	`params` text NOT NULL,
	`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_tagid` (`tagid`),
	KEY `idx_access` (`access`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `#__moojla_tag_instance` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`moodletag` INT(10) NOT NULL DEFAULT 0,
	`moojlacourse` INT(11) NOT NULL DEFAULT 0,
	`params` text NOT NULL,
	`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`),
	UNIQUE KEY `idx_moodletag` (`moodletag`),
	KEY `idx_moojlacourse` (`moojlacourse`),
	KEY `idx_access` (`access`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.46.sql000064400000002473151160174010010627 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_course_field_mapper` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`coursefield` INT(10) NOT NULL DEFAULT 0,
	`field_icon` VARCHAR(255) NOT NULL DEFAULT '',
	`mcoursefields` VARCHAR(64) NOT NULL DEFAULT '',
	`params` text NOT NULL,
	`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_mcoursefields` (`mcoursefields`),
	KEY `idx_coursefield` (`coursefield`),
	KEY `idx_access` (`access`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.47.sql000064400000002220151160174010010616 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_tag_test` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`name` VARCHAR(255) NOT NULL DEFAULT '',
	`params` text NOT NULL,
	`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_name` (`name`),
	KEY `idx_access` (`access`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.48.sql000064400000000141151160174010010617 0ustar00ALTER
TABLE `#__moojla_joomla_tag` ADD `name` VARCHAR(255) NOT NULL DEFAULT
'' AFTER `asset_id`;
updates/mysql/1.0.49.sql000064400000002222151160174010010622 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_joomla_tag` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`name` VARCHAR(255) NOT NULL DEFAULT '',
	`params` text NOT NULL,
	`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_name` (`name`),
	KEY `idx_access` (`access`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.5.sql000064400000002305151160174010010534 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_enrolment` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`remoteid` INT(10) NOT NULL DEFAULT 0,
	`username` VARCHAR(64) NOT NULL DEFAULT '',
	`params` text NOT NULL,
	`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_remoteid` (`remoteid`),
	KEY `idx_access` (`access`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.50.sql000064400000002221151160174010010611 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_joomlatag` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`name` VARCHAR(255) NOT NULL DEFAULT '',
	`params` text NOT NULL,
	`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_name` (`name`),
	KEY `idx_access` (`access`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.51.sql000064400000000142151160174010010612 0ustar00ALTER
TABLE `#__moojla_tag_instance` CHANGE `moodletags` `moodletag` INT(100) NOT
NULL DEFAULT 0;
updates/mysql/1.0.52.sql000064400000000142151160174010010613 0ustar00ALTER
TABLE `#__moojla_tag_instance` ADD `moodletag` INT(10) NOT NULL DEFAULT 0
AFTER `asset_id`;
updates/mysql/1.0.53.sql000064400000000457151160174010010625 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_favorite` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
`userid` INT(11) NOT NULL DEFAULT 0,
`courseid` INT(11) NOT NULL DEFAULT 0,
	PRIMARY KEY  (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.54.sql000064400000000516151160174010010622 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_rate` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
`userid` INT(11) NOT NULL DEFAULT 0,
`courseid` INT(11) NOT NULL DEFAULT 0,
`rate` INT(4) NOT NULL DEFAULT 0,
	PRIMARY KEY  (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.55.sql000064400000000135151160174010010620 0ustar00ALTER
TABLE `#__moojla_enrolment` ADD `moojlacourse` INT(11) NOT NULL DEFAULT 0
AFTER `jid`;
updates/mysql/1.0.56.sql000064400000002326151160174010010625 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_enrolment` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`jid` INT(11) NOT NULL DEFAULT 0,
	`moojlacourse` INT(11) NOT NULL DEFAULT 0,
	`role` VARCHAR(64) NOT NULL DEFAULT '',
	`params` text NOT NULL,
	`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,
	`ordering` INT(11) NOT NULL DEFAULT 0,
	PRIMARY KEY  (`id`),
	KEY `idx_jid` (`jid`),
	KEY `idx_moojlacourse` (`moojlacourse`),
	KEY `idx_role` (`role`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.57.sql000064400000000135151160174010010622 0ustar00ALTER
TABLE `#__moojla_enrolment` ADD `moojlacourse` INT(11) NOT NULL DEFAULT 0
AFTER `jid`;
updates/mysql/1.0.58.sql000064400000000124151160174010010621 0ustar00ALTER
TABLE `#__moojla_course` ADD `catid` INT(64) NULL DEFAULT 0 AFTER
`cat_name`;
updates/mysql/1.0.59.sql000064400000000121151160174010010617 0ustar00ALTER
TABLE `#__moojla_user_map` ADD `userimage` varchar(255) NULL DEFAULT NULL;
updates/mysql/1.0.6.sql000064400000000313151160174010010532 0ustar00ALTER
TABLE `#__moojla_course` ADD `in_enrol_date` VARCHAR(10) NOT NULL DEFAULT
'' AFTER `guest`;

ALTER TABLE `#__moojla_course` ADD `self_enrolment` VARCHAR(10) NOT NULL
DEFAULT '' AFTER `remoteid`;
updates/mysql/1.0.60.sql000064400000002105151160174010010613 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_category_map` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`jcatid` INT(64) NULL DEFAULT 0,
	`mcatid` INT(64) NULL DEFAULT 0,
	`params` text NOT NULL,
	`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,
	`ordering` INT(11) NOT NULL DEFAULT 0,
	PRIMARY KEY  (`id`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.61.sql000064400000002044151160174010010616 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_language` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`language` VARCHAR(7) NULL DEFAULT '',
	`params` text NOT NULL,
	`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,
	`ordering` INT(11) NOT NULL DEFAULT 0,
	PRIMARY KEY  (`id`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.62.sql000064400000000272151160174010010620 0ustar00ALTER
TABLE `#__moojla_language` ADD `key` VARCHAR(255) NULL DEFAULT ''
AFTER `asset_id`;

ALTER TABLE `#__moojla_language` ADD `value` VARCHAR(1024) NULL DEFAULT
'' AFTER `language`;
updates/mysql/1.0.63.sql000064400000000205151160174010010615 0ustar00ALTER
TABLE `#__moojla_course` ADD `course_detail_layout` VARCHAR(255) NULL
DEFAULT '' AFTER `course_templatestyle_forcourseconfig`;
updates/mysql/1.0.64.sql000064400000000321151160174010010615 0ustar00ALTER
TABLE `#__moojla_course` ADD `loginurl` VARCHAR(255) NULL DEFAULT
'' AFTER `in_enrol_date`;

ALTER TABLE `#__moojla_course` ADD `registrationurl` VARCHAR(255) NULL
DEFAULT '' AFTER `permanent_fields`;
updates/mysql/1.0.65.sql000064400000000135151160174010010621 0ustar00ALTER
TABLE `#__moojla_user_map` ADD `updatetype` TINYINT(3) NOT NULL DEFAULT 1
AFTER `mid`;
updates/mysql/1.0.66.sql000064400000000141151160174010010617 0ustar00ALTER
TABLE `#__moojla_user_map` CHANGE `updatetype` `updatetype` TINYINT(3) NOT
NULL DEFAULT 1;
updates/mysql/1.0.67.sql000064400000000155151160174010010625 0ustar00ALTER
TABLE `#__moojla_enrolment` ADD `enrolldate` DATETIME NOT NULL DEFAULT
CURRENT_TIMESTAMP AFTER `role`;
updates/mysql/1.0.68.sql000064400000000136151160174010010625 0ustar00ALTER
TABLE `#__moojla_user_map` ADD `debug` VARCHAR(10) NULL DEFAULT NULL AFTER
`userimage`;
updates/mysql/1.0.69.sql000064400000000001151160174010010615 0ustar00
updates/mysql/1.0.7.sql000064400000000134151160174010010534 0ustar00ALTER
TABLE `#__moojla_enrolment` ADD `userid` INT(10) NOT NULL DEFAULT 0 AFTER
`remoteid`;
updates/mysql/1.0.70.sql000064400000002232151160174010010615 0ustar00CREATE
TABLE IF NOT EXISTS `#__moojla_cohort` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the
#__assets table.',
	`course_group` INT(11) NOT NULL DEFAULT 0,
	`mcohort` INT(11) NOT NULL DEFAULT 0,
	`params` text NOT NULL,
	`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,
	`ordering` INT(11) NOT NULL DEFAULT 0,
	PRIMARY KEY  (`id`),
	KEY `idx_mcohort` (`mcohort`),
	KEY `idx_course_group` (`course_group`),
	KEY `idx_checkout` (`checked_out`),
	KEY `idx_createdby` (`created_by`),
	KEY `idx_modifiedby` (`modified_by`),
	KEY `idx_state` (`published`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT
COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
updates/mysql/1.0.71.sql000064400000001641151160174010010621 0ustar00ALTER
TABLE `#__moojla_course` ADD `addcontrols` TINYINT(1) NOT NULL DEFAULT 1
AFTER `asset_id`;

ALTER TABLE `#__moojla_course` ADD `autoplay` TINYINT(1) NOT NULL DEFAULT 0
AFTER `addcontrols`;

ALTER TABLE `#__moojla_course` ADD `autoplayaudio` TINYINT(1) NOT NULL
DEFAULT 0 AFTER `autoplay`;

ALTER TABLE `#__moojla_course` ADD `muted` TINYINT(1) NOT NULL DEFAULT 0
AFTER `loginurl`;

ALTER TABLE `#__moojla_course` ADD `preloadaudio` TINYINT(1) NOT NULL
DEFAULT 0 AFTER `permanent_fields`;

ALTER TABLE `#__moojla_course` ADD `preloadvideo` TINYINT(1) NOT NULL
DEFAULT 0 AFTER `preloadaudio`;

ALTER TABLE `#__moojla_course` ADD `preventdownload` TINYINT(1) NOT NULL
DEFAULT 0 AFTER `preloadvideo`;

ALTER TABLE `#__moojla_course` ADD `preventdownloadaudio` TINYINT(1) NOT
NULL DEFAULT 0 AFTER `preventdownload`;

ALTER TABLE `#__moojla_course` ADD `videotype` TINYINT(1) NOT NULL DEFAULT
1 AFTER `teachers`;
updates/mysql/1.0.72.sql000064400000000321151160174010010614 0ustar00ALTER
TABLE `#__moojla_course` ADD `useglobalaudio` TINYINT(1) NOT NULL DEFAULT 1
AFTER `teachers`;

ALTER TABLE `#__moojla_course` ADD `useglobalvideo` TINYINT(1) NOT NULL
DEFAULT 1 AFTER `useglobalaudio`;
updates/mysql/1.0.73.sql000064400000001533151160174010010623 0ustar00--
ALTER TABLE `#__moojla_course` ADD `autoplay` TINYINT(1) NOT NULL DEFAULT 0
AFTER `addcontrols`;

-- ALTER TABLE `#__moojla_course` ADD `autoplayaudio` TINYINT(1) NOT NULL
DEFAULT 0 AFTER `autoplay`;

-- ALTER TABLE `#__moojla_course` ADD `muted` TINYINT(1) NOT NULL DEFAULT 0
AFTER `loginurl`;

-- ALTER TABLE `#__moojla_course` ADD `preloadaudio` TINYINT(1) NOT NULL
DEFAULT 0 AFTER `permanent_fields`;

-- ALTER TABLE `#__moojla_course` ADD `preloadvideo` TINYINT(1) NOT NULL
DEFAULT 0 AFTER `preloadaudio`;

-- ALTER TABLE `#__moojla_course` ADD `preventdownload` TINYINT(1) NOT NULL
DEFAULT 0 AFTER `preloadvideo`;

-- ALTER TABLE `#__moojla_course` ADD `preventdownloadaudio` TINYINT(1) NOT
NULL DEFAULT 0 AFTER `preventdownload`;

-- ALTER TABLE `#__moojla_course` ADD `videotype` TINYINT(1) NOT NULL
DEFAULT 1 AFTER `useglobalvideo`;
updates/mysql/1.0.74.sql000064400000002010151160174010010613 0ustar00ALTER
TABLE `#__moojla_course` ADD `alterurl` VARCHAR(255) NULL DEFAULT
'' AFTER `addcontrols`;

ALTER TABLE `#__moojla_course` ADD `availabilityinfolink` TINYINT(1) NOT
NULL DEFAULT 2 AFTER `autoplayaudio`;

ALTER TABLE `#__moojla_course` ADD `buylbl` VARCHAR(50) NULL DEFAULT
'' AFTER `availabilityinfolink`;

ALTER TABLE `#__moojla_course` ADD `cangotomoodle` TINYINT(1) NOT NULL
DEFAULT 2 AFTER `buylbl`;

ALTER TABLE `#__moojla_course` ADD `enrollbl` VARCHAR(50) NULL DEFAULT
'' AFTER `enddate`;

ALTER TABLE `#__moojla_course` ADD `enterlbl` VARCHAR(50) NULL DEFAULT
'' AFTER `enrollbl`;

ALTER TABLE `#__moojla_course` ADD `freeenterlbl` VARCHAR(50) NULL DEFAULT
'' AFTER `enterlbl`;

ALTER TABLE `#__moojla_course` ADD `loginlbl` VARCHAR(50) NULL DEFAULT
'' AFTER `in_enrol_date`;

ALTER TABLE `#__moojla_course` ADD `popupbutton` TINYINT(1) NOT NULL
DEFAULT 2 AFTER `permanent_fields`;

ALTER TABLE `#__moojla_course` ADD `redirect_after_enrol` TINYINT(1) NOT
NULL DEFAULT 2 AFTER `preventdownloadaudio`;
updates/mysql/1.0.75.sql000064400000000135151160174010010622 0ustar00ALTER
TABLE `#__moojla_course` ADD `alias` CHAR(64) NOT NULL DEFAULT ''
AFTER `addcontrols`;
updates/mysql/1.0.76.sql000064400000000362151160174010010625 0ustar00ALTER
TABLE `#__moojla_course` ADD COLUMN IF NOT EXISTS `showlogintab` TINYINT(1)
NOT NULL DEFAULT 1 AFTER `shortname`;

ALTER TABLE `#__moojla_course` ADD COLUMN IF NOT EXISTS `showregtab`
TINYINT(1) NOT NULL DEFAULT 1 AFTER `showlogintab`;
updates/mysql/1.0.8.sql000064400000000142151160174010010534 0ustar00ALTER
TABLE `#__moojla_course` ADD `startdate` VARCHAR(255) NOT NULL DEFAULT 0
AFTER `shortname`;
updates/mysql/1.0.9.sql000064400000000137151160174010010541 0ustar00ALTER
TABLE `#__moojla_enrolment` ADD `role` VARCHAR(64) NOT NULL DEFAULT
'' AFTER `remoteid`;
updates/mysql/index.html000064400000000054151160174010011346
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>install.sql000064400000044344151160230000006730
0ustar00-- noinspection SqlDialectInspectionForFile
-- noinspection SqlNoDataSourceInspectionForFile
CREATE TABLE IF NOT EXISTS `#__rsticketspro_configuration` (
  `name` varchar(255) NOT NULL,
  `value` text NOT NULL,
  UNIQUE KEY `name` (`name`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_custom_fields` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `department_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `label` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `values` text NOT NULL,
  `additional` text NOT NULL,
  `validation` text NOT NULL,
  `required` tinyint(1) NOT NULL,
  `description` text NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  UNIQUE KEY `id` (`id`),
  KEY `department_id` (`department_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_custom_fields_values` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `custom_field_id` int(11) NOT NULL,
  `ticket_id` int(11) NOT NULL,
  `value` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `custom_field_id` (`custom_field_id`),
  KEY `ticket_id` (`ticket_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_departments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `prefix` varchar(255) NOT NULL,
  `assignment_type` tinyint(1) NOT NULL,
  `generation_rule` tinyint(1) NOT NULL,
  `next_number` int(11) NOT NULL DEFAULT '1',
  `email_address` varchar(255) NOT NULL,
  `email_address_fullname` varchar(255) NOT NULL,
  `email_use_global` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `customer_send_email` tinyint(1) NOT NULL,
  `customer_send_copy_email` tinyint(1) NOT NULL DEFAULT '1',
  `customer_attach_email` tinyint(1) NOT NULL DEFAULT '1',
  `staff_send_email` tinyint(1) NOT NULL,
  `staff_attach_email` tinyint(1) NOT NULL DEFAULT '1',
  `upload` tinyint(1) NOT NULL,
  `upload_ticket_required` tinyint(1) unsigned NOT NULL DEFAULT
'0',
  `upload_extensions` text NOT NULL,
  `upload_size` decimal(10,2) unsigned NOT NULL,
  `upload_files` int(11) NOT NULL,
  `download_type` varchar(255) NOT NULL DEFAULT 'attachment',
  `notify_new_tickets_to` text NOT NULL,
  `notify_assign` tinyint(1) NOT NULL,
  `priority_id` int(11) NOT NULL,
  `cc` text NOT NULL,
  `bcc` text NOT NULL,
  `predefined_subjects` text NOT NULL,
  `jgroups` mediumtext NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  UNIQUE KEY `id` (`id`),
  KEY `customer_send_email` (`customer_send_email`),
  KEY `staff_send_email` (`staff_send_email`),
  KEY `upload` (`upload`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_emails` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `lang` varchar(64) NOT NULL,
  `type` varchar(255) NOT NULL,
  `subject` varchar(255) NOT NULL,
  `message` text NOT NULL,
  `published` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `lang` (`lang`,`type`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `add_ticket` tinyint(1) NOT NULL,
  `add_ticket_customers` tinyint(1) NOT NULL,
  `add_ticket_staff` tinyint(1) NOT NULL,
  `update_ticket` tinyint(1) NOT NULL,
  `update_ticket_custom_fields` tinyint(1) NOT NULL,
  `delete_ticket` tinyint(1) NOT NULL,
  `answer_ticket` tinyint(1) NOT NULL,
  `update_ticket_replies` tinyint(1) NOT NULL,
  `update_ticket_replies_customers` tinyint(1) NOT NULL,
  `update_ticket_replies_staff` tinyint(1) NOT NULL,
  `delete_ticket_replies_customers` tinyint(1) NOT NULL,
  `delete_ticket_replies_staff` tinyint(1) NOT NULL,
  `delete_ticket_replies` tinyint(1) NOT NULL,
  `assign_tickets` tinyint(1) NOT NULL,
  `change_ticket_status` tinyint(1) NOT NULL,
  `see_unassigned_tickets` tinyint(1) NOT NULL,
  `see_other_tickets` tinyint(1) NOT NULL,
  `move_ticket` tinyint(1) NOT NULL,
  `view_notes` tinyint(1) NOT NULL,
  `add_note` tinyint(1) NOT NULL,
  `update_note` tinyint(1) NOT NULL,
  `update_note_staff` tinyint(1) NOT NULL,
  `delete_note` tinyint(1) NOT NULL,
  `delete_note_staff` tinyint(1) NOT NULL,
  `export_tickets` tinyint(1) NOT NULL,
  UNIQUE KEY `GroupId` (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_kb_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `parent_id` int(11) NOT NULL,
  `thumb` varchar(64) NOT NULL,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `meta_description` text NOT NULL,
  `meta_keywords` text NOT NULL,
  `private` tinyint(1) NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `parent_id` (`parent_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_kb_content` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `text` text NOT NULL,
  `category_id` int(11) NOT NULL,
  `meta_description` text NOT NULL,
  `meta_keywords` text NOT NULL,
  `private` tinyint(1) NOT NULL,
  `from_ticket_id` int(11) NOT NULL,
  `hits` int(10) unsigned NOT NULL DEFAULT '0',
  `created` datetime NOT NULL,
  `modified` datetime NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `category_id` (`category_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_kb_rules` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `category_id` int(11) NOT NULL,
  `conditions` text NOT NULL,
  `publish_article` tinyint(1) NOT NULL,
  `private` tinyint(1) NOT NULL,
  `published` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_priorities` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `bg_color` varchar(7) NOT NULL,
  `fg_color` varchar(7) NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_searches` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `params` text NOT NULL,
  `default` tinyint(1) NOT NULL DEFAULT '0',
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  UNIQUE KEY `id` (`id`),
  KEY `user_id` (`user_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_staff` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `group_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `priority_id` int(11) NOT NULL,
  `signature` text NOT NULL,
  `exclude_auto_assign` tinyint(1) NOT NULL DEFAULT '0',
  `can_delete_time_history` tinyint(1) NOT NULL DEFAULT '0',
  `can_delete_own_time_history` tinyint(1) NOT NULL DEFAULT '0',
  UNIQUE KEY `id` (`id`),
  KEY `group_id` (`group_id`,`user_id`),
  KEY `priority_id` (`priority_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_staff_to_department` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `department_id` int(11) NOT NULL,
  UNIQUE KEY `id` (`id`),
  KEY `department_id` (`department_id`),
  KEY `user_id` (`user_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_statuses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `published` tinyint(1) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_tickets` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `department_id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `code` varchar(255) NOT NULL,
  `subject` varchar(255) NOT NULL,
  `status_id` int(11) NOT NULL,
  `priority_id` int(11) NOT NULL,
  `date` datetime NOT NULL,
  `alternative_email` varchar(255) NOT NULL,
  `last_reply` datetime NOT NULL,
  `last_reply_customer` tinyint(1) NOT NULL,
  `replies` int(11) NOT NULL,
  `autoclose_sent` int(11) NOT NULL DEFAULT '0',
  `closed` datetime NOT NULL,
  `flagged` tinyint(1) NOT NULL DEFAULT '0',
  `agent` text NOT NULL,
  `referer` text NOT NULL,
  `ip` varchar(16) NOT NULL,
  `logged` tinyint(1) NOT NULL,
  `feedback` tinyint(1) NOT NULL,
  `followup_sent` tinyint(1) NOT NULL DEFAULT '0',
  `has_files` tinyint(1) unsigned NOT NULL,
  `time_spent` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `department_id` (`department_id`),
  KEY `staff_id` (`staff_id`),
  KEY `customer_id` (`customer_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_ticket_files` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ticket_id` int(11) NOT NULL,
  `ticket_message_id` int(11) NOT NULL,
  `filename` varchar(255) NOT NULL,
  `downloads` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_ticket_history` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ticket_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `ip` varchar(16) NOT NULL,
  `date` datetime NOT NULL,
  `type` varchar(64) NOT NULL,
  PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_ticket_messages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ticket_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `message` text NOT NULL,
  `date` datetime NOT NULL,
  `html` tinyint(1) NOT NULL,
  `submitted_by_staff` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `ticket_id` (`ticket_id`),
  KEY `user_id` (`user_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_timespent` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `ticket_id` int(11) NOT NULL,
  `start` datetime NOT NULL,
  `end` datetime NOT NULL,
   PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_ticket_notes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ticket_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `text` text NOT NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `ticket_id` (`ticket_id`),
  KEY `user_id` (`user_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__rsticketspro_tokens` (
  `user_id` int(11) NOT NULL,
  `token` varchar(100) NOT NULL,
  PRIMARY KEY  (`user_id`)
) DEFAULT CHARSET=utf8;

INSERT IGNORE INTO `#__rsticketspro_configuration` (`name`, `value`)
VALUES
('global_register_code', ''),
('date_format', 'd.m.Y H:i:s'),
('date_format_notime', 'd.m.Y'),
('rsticketspro_link', '1'),
('allow_rich_editor', '1'),
('allow_rich_editor_buttons', '1'),
('global_message', ''),
('submit_message', ''),
('ticket_view', 'accordion'),
('rsticketspro_add_tickets', '1'),
('show_ticket_info', '1'),
('show_user_info', 'name'),
('show_ticket_voting', '1'),
('allow_ticket_closing', '1'),
('allow_ticket_reopening', '1'),
('ticket_viewing_history', '1'),
('avatars', ''),
('captcha_enabled', '1'),
('captcha_enabled_for',
'unregistered,customers,staff'),
('captcha_characters', '5'),
('captcha_case_sensitive', '0'),
('email_use_global', '1'),
('email_address', 'your@email.com'),
('email_address_fullname', 'Customer Support'),
('reply_above', 'Please reply above this line'),
('use_reply_above', '1'),
('autoclose_enabled', '1'),
('autoclose_automatically', '0'),
('autoclose_cron_lastcheck', '0'),
('autoclose_cron_interval', '10'),
('autoclose_email_interval', '1'),
('autoclose_interval', '1'),
('followup_interval', '1'),
('enable_followup', '0'),
('followup_enabled_time', '0'),
('followup_cron_lastcheck', '0'),
('followup_cron_interval', '10'),
('show_email_link', '1'),
('messages_direction', 'DESC'),
('color_whole_ticket', '0'),
('submit_redirect', ''),
('staff_force_departments', '0'),
('kb_template_body',
'<div>\r\n<h2>{ticket_subject}</h2>\r\n<p><strong>Department:</strong>
{ticket_department}</p>\r\n<p><strong>Date:</strong>
{ticket_date}</p>\r\n{ticket_messages}</div>'),
('kb_template_ticket_body', '<div
class="ticket_message">\r\n<p><strong>{message_date}</strong></p>\r\n<p><strong
class="message_user">{message_user}:</strong></p>\r\n<div
class="message_text">{message_text}</div>\r\n</div>'),
('kb_hot_hits', '200'),
('notice_email_address', ''),
('notice_max_replies_nr', '0'),
('notice_not_allowed_keywords', ''),
('notice_replies_with_no_response_nr', '0'),
('kb_comments', '0'),
('show_kb_search', '1'),
('show_signature', '1'),
('allow_predefined_subjects', '0'),
('customer_itemid', ''),
('staff_itemid', ''),
('enable_time_spent', '1'),
('time_spent_unit', 'h'),
('calculate_itemids', '1'),
('allow_password_change', '0'),
('emails_as_usernames', '0'),
('user_type', '2'),
('admin_groups', '6,7,8'),
('kb_load_plugin', '0'),
('bootstrap', '1'),
('jquery', '1'),
('use_magnific_popup', '0'),
('recaptcha_new_site_key', ''),
('recaptcha_new_secret_key', ''),
('recaptcha_new_theme', 'light'),
('recaptcha_new_type', 'image'),
('store_ip', '1'),
('store_user_agent', '1'),
('allow_self_anonymisation', '0'),
('anonymise_joomla_data', '1'),
('forms_consent', '1'),
('show_alternative_email', '0'),
('show_reply_as_customer', '1'),
('time_spent_type', 'input'),
('export_limit', '100'),
('blocklist', '');

INSERT IGNORE INTO `#__rsticketspro_emails` (`lang`, `type`, `subject`,
`message`) VALUES
('en-GB', 'add_ticket_customer', '',
'<p>Hello {customer_name},</p>\r\n<p>Thank you for
contacting us. One of our staff members will attend to your problem as soon
as possible.<br />You can view your ticket here:<br /><a
href="{ticket}">{code}</a></p>'),
('en-GB', 'add_ticket_staff', '',
'<p>Hello,</p>\r\n<p>A new ticket requires your
attention:</p>\r\n<p><a
href="{ticket}">{code}</a></p>\r\n<p>{customer_email}
wrote:</p>\r\n<p>{message}</p>\r\n<p>{custom_fields}</p>'),
('en-GB', 'add_ticket_reply_customer', '',
'<p>Hello {customer_name}.</p>\r\n<p>You have a new
message from {staff_name}.<br />Re: {subject}<br />Message:
{message}<br /><br />You can view your ticket here:<br
/><a href="{ticket}">{code}</a></p>'),
('en-GB', 'add_ticket_reply_staff', '',
'<p>Hello {staff_name}.</p>\r\n<p>You have a new
message from  {customer_name}.<br /> Re: {subject}<br />
Message: {message}<br /> <br /> You can view the ticket
here:<br /> <a
href="{ticket}">{code}</a></p>'),
('en-GB', 'notification_email', 'Your ticket will
be closed', '<p>Your ticket with subject
"{subject}" had no activity for {inactive_interval}
days.</p>\r\n<p>It will be automatically closed in
{close_interval} days if no additional action is
performed.</p>\r\n<p>Please log in to <br /><br />
<a href="{live_site}index.php?option=com_rsticketspro">Our
Support Center</a> <br /><br /> and go to <a
href="{live_site}index.php?option=com_rsticketspro">My
Tickets</a> in order to view the status of your support
request.</p>'),
('en-GB', 'reject_email', 'Re: {subject}',
'<p>Hello {customer_name},<br /><br />Unfortunately
your email for department {department} could not be processed. Only
registered users can submit tickets by email.<br />We are sorry for
the inconvenience. You can visit <a href="{live_site}">our
website</a> instead.</p>'),
('en-GB', 'add_ticket_notify', '',
'<p>Hello,</p>\r\n<p>A new ticket has been
added:</p>\r\n<p><a
href="{ticket}">{code}</a></p>\r\n<p>{customer_email}
wrote:</p>\r\n<p>{message}</p>\r\n<p>{custom_fields}</p>'),
('en-GB', 'new_user_email', 'New user
details', '<p>Here are your login
details:</p>\r\n<p>Username:
<strong>{username}</strong></p>\r\n<p>Password:
<strong>{password}</strong></p>\r\n<p>Please note
that this is your temporary password. You can login and change it at any
time.</p>\r\n<p> Please log in to <br/><br/>\r\n 
<a href="{live_site}index.php?option=com_rsticketspro">Our
Support Center</a> <br/><br/>\r\n  and go to <a
href="{live_site}">My Tickets</a> in order to view the
status of your support request.</p>'),
('en-GB', 'notification_max_replies_nr', '{code}
This unassigned ticket has received too many replies', 'The
ticket <a href="{ticket}">{code}</a> has received
{replies} replies without a staff member being assigned to
it.\r\n<p><u>Customer
Information</u></p>\r\n<p>Name:
{customer_name}</p>\r\n<p>Username:
{customer_username}</p>\r\n<p>Email:
{customer_email}</p>\r\n\r\n<p><u>Staff
Information</u></p>\r\n<p>Unassigned</p>\r\n\r\n<p><u>Ticket
Information</u></p>\r\n<p>Subject:
{subject}</p>\r\n<p>Message:<br
/>{message}</p>'),
('en-GB', 'notification_replies_with_no_response_nr',
'{code} This ticket has received too many replies', 'The
ticket <a href="{ticket}">{code}</a> has received
{replies} replies without any response from the designated staff
member.\r\n<p><u>Customer
Information</u></p>\r\n<p>Name:
{customer_name}</p>\r\n<p>Username:
{customer_username}</p>\r\n<p>Email:
{customer_email}</p>\r\n\r\n<p><u>Staff
Information</u></p>\r\n<p>Name:
{staff_name}</p>\r\n<p>Username:
{staff_username}</p>\r\n<p>Email:
{staff_email}</p>\r\n\r\n<p><u>Ticket
Information</u></p>\r\n<p>Subject:
{subject}</p>\r\n<p>Message:<br
/>{message}</p>'),
('en-GB', 'notification_not_allowed_keywords',
'This ticket contains a keyword', 'The ticket <a
href="{ticket}">{code}</a> contains a
keyword.\r\n<p><u>Customer
Information</u></p>\r\n<p>Name:
{customer_name}</p>\r\n<p>Username:
{customer_username}</p>\r\n<p>Email:
{customer_email}</p>\r\n\r\n<p><u>Staff
Information</u></p>\r\n<p>Name:
{staff_name}</p>\r\n<p>Username:
{staff_username}</p>\r\n<p>Email:
{staff_email}</p>\r\n\r\n<p><u>Ticket
Information</u></p>\r\n<p>Subject:
{subject}</p>\r\n<p>Message:<br
/>{message}</p>'),
('en-GB', 'notification_department_change',
'Department changed', 'The ticket <a
href="{ticket}">{code}</a> had the department changed
from {department_from} to {department_to}'),
('en-GB', 'feedback_followup_email', 'How would
you rate the help you received?', '<p>The ticket <a
href="{ticket}">{code}</a> regarding
"{subject}" has been closed.</p>\r\n<p>Did we help
you solve your problem?</p>\r\n<p><a
href="{yes}">Yes, my problem has been
solved.</a></p>\r\n<p><a
href="{no}">No.</a></p>\r\n<p>Your feedback
helps us improve our services!</p>');

INSERT IGNORE INTO `#__rsticketspro_priorities` (`id`, `name`, `bg_color`,
`fg_color`, `published`, `ordering`) VALUES
(1, 'low', '', '', 1, 1),
(2, 'normal', '', '', 1, 2),
(3, 'high', '', '', 1, 3);

INSERT IGNORE INTO `#__rsticketspro_statuses` (`id`, `name`, `published`,
`ordering`) VALUES
(1, 'open', 1, 1),
(2, 'closed', 1, 3),
(3, 'on-hold', 1,
2);sample.sql000064400000006034151160230000006535 0ustar00INSERT IGNORE
INTO `#__rsticketspro_departments` (`id`, `name`, `prefix`,
`assignment_type`, `generation_rule`, `next_number`, `email_address`,
`email_address_fullname`, `email_use_global`, `customer_send_email`,
`customer_send_copy_email`, `customer_attach_email`, `staff_send_email`,
`staff_attach_email`, `upload`, `upload_extensions`, `upload_size`,
`upload_files`, `notify_new_tickets_to`, `notify_assign`, `priority_id`,
`cc`, `bcc`, `predefined_subjects`, `published`, `ordering`) VALUES(1,
'Billing', 'BILLING', 1, 0, 1, '',
'', 1, 1, 1, 1, 1, 1, 0, '', '0.00', 0,
'', 1, 1, '', '', '', 1, 1);
INSERT IGNORE INTO `#__rsticketspro_departments` (`id`, `name`, `prefix`,
`assignment_type`, `generation_rule`, `next_number`, `email_address`,
`email_address_fullname`, `email_use_global`, `customer_send_email`,
`customer_send_copy_email`, `customer_attach_email`, `staff_send_email`,
`staff_attach_email`, `upload`, `upload_extensions`, `upload_size`,
`upload_files`, `notify_new_tickets_to`, `notify_assign`, `priority_id`,
`cc`, `bcc`, `predefined_subjects`, `published`, `ordering`) VALUES(2,
'Licensing', 'LICENSE', 1, 0, 1, '',
'', 1, 1, 1, 1, 1, 1, 0, '', '0.00', 0,
'', 1, 3, '', '', '', 1, 3);
INSERT IGNORE INTO `#__rsticketspro_departments` (`id`, `name`, `prefix`,
`assignment_type`, `generation_rule`, `next_number`, `email_address`,
`email_address_fullname`, `email_use_global`, `customer_send_email`,
`customer_send_copy_email`, `customer_attach_email`, `staff_send_email`,
`staff_attach_email`, `upload`, `upload_extensions`, `upload_size`,
`upload_files`, `notify_new_tickets_to`, `notify_assign`, `priority_id`,
`cc`, `bcc`, `predefined_subjects`, `published`, `ordering`) VALUES(3,
'Tech Support', 'TECH', 1, 0, 1, '',
'', 1, 1, 1, 1, 1, 1, 1, 'zip\r\njpg',
'0.00', 0, '', 1, 1, '', '',
'', 1, 2);
INSERT IGNORE INTO `#__rsticketspro_departments` (`id`, `name`, `prefix`,
`assignment_type`, `generation_rule`, `next_number`, `email_address`,
`email_address_fullname`, `email_use_global`, `customer_send_email`,
`customer_send_copy_email`, `customer_attach_email`, `staff_send_email`,
`staff_attach_email`, `upload`, `upload_extensions`, `upload_size`,
`upload_files`, `notify_new_tickets_to`, `notify_assign`, `priority_id`,
`cc`, `bcc`, `predefined_subjects`, `published`, `ordering`) VALUES(4,
'Pre Sales', 'PRE', 0, 1, 1, '',
'', 1, 1, 1, 1, 1, 1, 0, '', '0.00', 0,
'', 0, 1, '', '', '', 1, 4);

INSERT IGNORE INTO `#__rsticketspro_groups` (`id`, `name`, `add_ticket`,
`add_ticket_customers`, `add_ticket_staff`, `update_ticket`,
`update_ticket_custom_fields`, `delete_ticket`, `answer_ticket`,
`update_ticket_replies`, `update_ticket_replies_customers`,
`update_ticket_replies_staff`, `delete_ticket_replies_customers`,
`delete_ticket_replies_staff`, `delete_ticket_replies`, `assign_tickets`,
`change_ticket_status`, `see_unassigned_tickets`, `see_other_tickets`,
`move_ticket`, `view_notes`, `add_note`, `update_note`,
`update_note_staff`, `delete_note`, `delete_note_staff`) VALUES(1,
'Staff', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1);uninstall.sql000064400000001270151160230000007262
0ustar00DROP TABLE IF EXISTS `#__rsticketspro_accounts`,
`#__rsticketspro_accounts_log`, `#__rsticketspro_configuration`,
`#__rsticketspro_custom_fields`, `#__rsticketspro_custom_fields_values`,
`#__rsticketspro_departments`, `#__rsticketspro_emails`,
`#__rsticketspro_groups`, `#__rsticketspro_kb_categories`,
`#__rsticketspro_kb_content`, `#__rsticketspro_kb_rules`,
`#__rsticketspro_priorities`, `#__rsticketspro_searches`,
`#__rsticketspro_staff`, `#__rsticketspro_staff_to_department`,
`#__rsticketspro_statuses`, `#__rsticketspro_tickets`,
`#__rsticketspro_ticket_files`, `#__rsticketspro_ticket_history`,
`#__rsticketspro_ticket_messages`, `#__rsticketspro_ticket_notes`,
`#__rsticketspro_tokens`;updates/mysql/2.0.sql000064400000000107151160655030010376
0ustar00# Dummy SQL file to set schema version to 2.0 so next update will
work
updates/mysql/2.1.sql000064400000000220151160655030010373 0ustar00ALTER
TABLE `#__jea_properties` CHANGE `orientation` `orientation` ENUM(
'0', 'N', 'NE', 'NW',
'E', 'W', 'S', 'SW', 'SE'
) NOT NULL DEFAULT '0'
updates/mysql/2.2.sql000064400000000577151160655030010413 0ustar00ALTER
TABLE #__jea_properties ADD `publish_down` datetime NOT NULL default
'0000-00-00 00:00:00' AFTER `modified`;
ALTER TABLE #__jea_properties ADD `publish_up` datetime NOT NULL default
'0000-00-00 00:00:00' AFTER `modified`;
ALTER TABLE #__jea_properties ADD `access` int(11) NOT NULL default
'0' AFTER `published`;

UPDATE #__jea_properties SET `publish_up`=`created`, access=1;
updates/mysql/2.30.sql000064400000000144151160655030010462 0ustar00ALTER
TABLE `#__jea_properties` CHANGE `department_id` `department_id` INT(11)
NOT NULL DEFAULT '0'
updates/mysql/3.1.sql000064400000000234151160655030010401 0ustar00ALTER
TABLE `#__jea_properties` CHANGE `orientation` `orientation` ENUM(
'0', 'N', 'NE', 'NW',
'NS', 'E', 'W', 'S',
'SW', 'SE', 'EW' ) NOT NULL DEFAULT
'0'
updates/mysql/3.4.sql000064400000001565151160655030010414 0ustar00UPDATE
`#__jea_tools` SET `title`='com_jea_import',
`link`='index.php?option=com_jea&view=gateways&layout=import',
`icon`='download',
`params`=''
WHERE `title`='com_jea_import_from_jea';

UPDATE `#__jea_tools` SET `title`='com_jea_export',
`link`='index.php?option=com_jea&view=gateways&layout=export',
`icon`='upload',
`params`=''
WHERE `title`='com_jea_import_from_csv';

CREATE TABLE IF NOT EXISTS `#__jea_gateways` (
  `id` int(11) NOT NULL auto_increment,
  `type` varchar(50) NOT NULL default '',
  `provider` varchar(50) NOT NULL default '',
  `title` varchar(255) NOT NULL default '',
  `published` tinyint(1) NOT NULL default '0',
  `ordering` int(11) NOT NULL default '0',
  `params` TEXT NOT NULL,
  PRIMARY KEY  (`id`)
) AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;

ALTER TABLE #__jea_properties ADD `provider` varchar(50) NOT NULL default
'' COMMENT 'A gateway provider name';
install.mysql.sql000064400000035541151161351170010110 0ustar00--
-- Table structure for table `#__finder_filters`
--

CREATE TABLE IF NOT EXISTS `#__finder_filters` (
  `filter_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `alias` varchar(255) NOT NULL,
  `state` tinyint(1) NOT NULL DEFAULT 1,
  `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_by` int(10) unsigned NOT NULL,
  `created_by_alias` varchar(255) NOT NULL,
  `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `modified_by` int(10) unsigned NOT NULL DEFAULT 0,
  `checked_out` int(10) unsigned NOT NULL DEFAULT 0,
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `map_count` int(10) unsigned NOT NULL DEFAULT 0,
  `data` text NOT NULL,
  `params` mediumtext,
  PRIMARY KEY (`filter_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links`
--

CREATE TABLE IF NOT EXISTS `#__finder_links` (
  `link_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `url` varchar(255) NOT NULL,
  `route` varchar(255) NOT NULL,
  `title` varchar(400) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `indexdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `md5sum` varchar(32) DEFAULT NULL,
  `published` tinyint(1) NOT NULL DEFAULT 1,
  `state` int(5) DEFAULT 1,
  `access` int(5) DEFAULT 0,
  `language` varchar(8) NOT NULL,
  `publish_start_date` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `publish_end_date` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `end_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `list_price` double unsigned NOT NULL DEFAULT 0,
  `sale_price` double unsigned NOT NULL DEFAULT 0,
  `type_id` int(11) NOT NULL,
  `object` mediumblob NOT NULL,
  PRIMARY KEY (`link_id`),
  KEY `idx_type` (`type_id`),
  KEY `idx_title` (`title`(100)),
  KEY `idx_md5` (`md5sum`),
  KEY `idx_url` (`url`(75)),
  KEY `idx_published_list`
(`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`list_price`),
  KEY `idx_published_sale`
(`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`sale_price`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_terms0`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_terms0` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_terms1`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_terms1` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_terms2`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_terms2` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_terms3`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_terms3` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_terms4`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_terms4` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_terms5`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_terms5` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_terms6`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_terms6` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_terms7`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_terms7` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_terms8`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_terms8` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_terms9`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_terms9` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_termsa`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_termsa` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_termsb`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_termsb` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_termsc`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_termsc` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_termsd`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_termsd` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_termse`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_termse` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_links_termsf`
--

CREATE TABLE IF NOT EXISTS `#__finder_links_termsf` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_taxonomy`
--

CREATE TABLE IF NOT EXISTS `#__finder_taxonomy` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` int(10) unsigned NOT NULL DEFAULT 0,
  `title` varchar(255) NOT NULL,
  `state` tinyint(1) unsigned NOT NULL DEFAULT 1,
  `access` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `ordering` tinyint(1) unsigned NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `parent_id` (`parent_id`),
  KEY `state` (`state`),
  KEY `ordering` (`ordering`),
  KEY `access` (`access`),
  KEY `idx_parent_published` (`parent_id`,`state`,`access`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `#__finder_taxonomy`
--

REPLACE INTO `#__finder_taxonomy` (`id`, `parent_id`, `title`, `state`,
`access`, `ordering`) VALUES
(1, 0, 'ROOT', 0, 0, 0);

--
-- Table structure for table `#__finder_taxonomy_map`
--

CREATE TABLE IF NOT EXISTS `#__finder_taxonomy_map` (
  `link_id` int(10) unsigned NOT NULL,
  `node_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`link_id`,`node_id`),
  KEY `link_id` (`link_id`),
  KEY `node_id` (`node_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_terms`
--

CREATE TABLE IF NOT EXISTS `#__finder_terms` (
  `term_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `term` varchar(75) NOT NULL,
  `stem` varchar(75) NOT NULL,
  `common` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `phrase` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `weight` float unsigned NOT NULL DEFAULT 0,
  `soundex` varchar(75) NOT NULL,
  `links` int(10) NOT NULL DEFAULT 0,
  `language` char(3) NOT NULL DEFAULT '',
  PRIMARY KEY (`term_id`),
  UNIQUE KEY `idx_term` (`term`),
  KEY `idx_term_phrase` (`term`,`phrase`),
  KEY `idx_stem_phrase` (`stem`,`phrase`),
  KEY `idx_soundex_phrase` (`soundex`,`phrase`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_terms_common`
--

CREATE TABLE IF NOT EXISTS `#__finder_terms_common` (
  `term` varchar(75) NOT NULL,
  `language` varchar(3) NOT NULL,
  KEY `idx_word_lang` (`term`,`language`),
  KEY `idx_lang` (`language`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `#__finder_terms_common`
--

REPLACE INTO `#__finder_terms_common` (`term`, `language`) VALUES
('a', 'en'),
('about', 'en'),
('after', 'en'),
('ago', 'en'),
('all', 'en'),
('am', 'en'),
('an', 'en'),
('and', 'en'),
('any', 'en'),
('are', 'en'),
('aren''t', 'en'),
('as', 'en'),
('at', 'en'),
('be', 'en'),
('but', 'en'),
('by', 'en'),
('for', 'en'),
('from', 'en'),
('get', 'en'),
('go', 'en'),
('how', 'en'),
('if', 'en'),
('in', 'en'),
('into', 'en'),
('is', 'en'),
('isn''t', 'en'),
('it', 'en'),
('its', 'en'),
('me', 'en'),
('more', 'en'),
('most', 'en'),
('must', 'en'),
('my', 'en'),
('new', 'en'),
('no', 'en'),
('none', 'en'),
('not', 'en'),
('nothing', 'en'),
('of', 'en'),
('off', 'en'),
('often', 'en'),
('old', 'en'),
('on', 'en'),
('onc', 'en'),
('once', 'en'),
('only', 'en'),
('or', 'en'),
('other', 'en'),
('our', 'en'),
('ours', 'en'),
('out', 'en'),
('over', 'en'),
('page', 'en'),
('she', 'en'),
('should', 'en'),
('small', 'en'),
('so', 'en'),
('some', 'en'),
('than', 'en'),
('thank', 'en'),
('that', 'en'),
('the', 'en'),
('their', 'en'),
('theirs', 'en'),
('them', 'en'),
('then', 'en'),
('there', 'en'),
('these', 'en'),
('they', 'en'),
('this', 'en'),
('those', 'en'),
('thus', 'en'),
('time', 'en'),
('times', 'en'),
('to', 'en'),
('too', 'en'),
('true', 'en'),
('under', 'en'),
('until', 'en'),
('up', 'en'),
('upon', 'en'),
('use', 'en'),
('user', 'en'),
('users', 'en'),
('version', 'en'),
('very', 'en'),
('via', 'en'),
('want', 'en'),
('was', 'en'),
('way', 'en'),
('were', 'en'),
('what', 'en'),
('when', 'en'),
('where', 'en'),
('which', 'en'),
('who', 'en'),
('whom', 'en'),
('whose', 'en'),
('why', 'en'),
('wide', 'en'),
('will', 'en'),
('with', 'en'),
('within', 'en'),
('without', 'en'),
('would', 'en'),
('yes', 'en'),
('yet', 'en'),
('you', 'en'),
('your', 'en'),
('yours', 'en');

--
-- Table structure for table `#__finder_tokens`
--

CREATE TABLE IF NOT EXISTS `#__finder_tokens` (
  `term` varchar(75) NOT NULL,
  `stem` varchar(75) NOT NULL,
  `common` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `phrase` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `weight` float unsigned NOT NULL DEFAULT 1,
  `context` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `language` char(3) NOT NULL DEFAULT '',
  KEY `idx_word` (`term`),
  KEY `idx_context` (`context`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_tokens_aggregate`
--

CREATE TABLE IF NOT EXISTS `#__finder_tokens_aggregate` (
  `term_id` int(10) unsigned NOT NULL,
  `map_suffix` char(1) NOT NULL,
  `term` varchar(75) NOT NULL,
  `stem` varchar(75) NOT NULL,
  `common` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `phrase` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `term_weight` float unsigned NOT NULL,
  `context` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `context_weight` float unsigned NOT NULL,
  `total_weight` float unsigned NOT NULL,
  `language` char(3) NOT NULL DEFAULT '',
  KEY `token` (`term`),
  KEY `keyword_id` (`term_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `#__finder_types`
--

CREATE TABLE IF NOT EXISTS `#__finder_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(100) NOT NULL,
  `mime` varchar(100) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `title` (`title`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;
install.postgresql.sql000064400000120756151161351170011151 0ustar00--
-- Table: #__finder_filters
--
CREATE TABLE "#__finder_filters" (
  "filter_id" serial NOT NULL,
  "title" character varying(255) NOT NULL,
  "alias" character varying(255) NOT NULL,
  "state" smallint DEFAULT 1 NOT NULL,
  "created" timestamp without time zone DEFAULT '1970-01-01
00:00:00' NOT NULL,
  "created_by" integer NOT NULL,
  "created_by_alias" character varying(255) NOT NULL,
  "modified" timestamp without time zone DEFAULT '1970-01-01
00:00:00' NOT NULL,
  "modified_by" integer DEFAULT 0 NOT NULL,
  "checked_out" integer DEFAULT 0 NOT NULL,
  "checked_out_time" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "map_count" integer DEFAULT 0 NOT NULL,
  "data" text NOT NULL,
  "params" text,
  PRIMARY KEY ("filter_id")
);

--
-- Table: #__finder_links
--
CREATE TABLE "#__finder_links" (
  "link_id" serial NOT NULL,
  "url" character varying(255) NOT NULL,
  "route" character varying(255) NOT NULL,
  "title" character varying(255) DEFAULT NULL,
  "description" character varying(255) DEFAULT NULL,
  "indexdate" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "md5sum" character varying(32) DEFAULT NULL,
  "published" smallint DEFAULT 1 NOT NULL,
  "state" integer DEFAULT 1,
  "access" integer DEFAULT 0,
  "language" character varying(8) NOT NULL,
  "publish_start_date" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "publish_end_date" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "start_date" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "end_date" timestamp without time zone DEFAULT '1970-01-01
00:00:00' NOT NULL,
  "list_price" numeric(8,2) DEFAULT 0 NOT NULL,
  "sale_price" numeric(8,2) DEFAULT 0 NOT NULL,
  "type_id" bigint NOT NULL,
  "object" bytea NOT NULL,
  PRIMARY KEY ("link_id")
);
CREATE INDEX "#__finder_links_idx_type" on
"#__finder_links" ("type_id");
CREATE INDEX "#__finder_links_idx_title" on
"#__finder_links" ("title");
CREATE INDEX "#__finder_links_idx_md5" on
"#__finder_links" ("md5sum");
CREATE INDEX "#__finder_links_idx_url" on
"#__finder_links" (url(75));
CREATE INDEX "#__finder_links_idx_published_list" on
"#__finder_links" ("published", "state",
"access", "publish_start_date",
"publish_end_date", "list_price");
CREATE INDEX "#__finder_links_idx_published_sale" on
"#__finder_links" ("published", "state",
"access", "publish_start_date",
"publish_end_date", "sale_price");

--
-- Table: #__finder_links_terms0
--
CREATE TABLE "#__finder_links_terms0" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_terms0_idx_term_weight" on
"#__finder_links_terms0" ("term_id",
"weight");
CREATE INDEX "#__finder_links_terms0_idx_link_term_weight" on
"#__finder_links_terms0" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_terms1
--
CREATE TABLE "#__finder_links_terms1" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_terms1_idx_term_weight" on
"#__finder_links_terms1" ("term_id",
"weight");
CREATE INDEX "#__finder_links_terms1_idx_link_term_weight" on
"#__finder_links_terms1" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_terms2
--
CREATE TABLE "#__finder_links_terms2" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_terms2_idx_term_weight" on
"#__finder_links_terms2" ("term_id",
"weight");
CREATE INDEX "#__finder_links_terms2_idx_link_term_weight" on
"#__finder_links_terms2" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_terms3
--
CREATE TABLE "#__finder_links_terms3" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_terms3_idx_term_weight" on
"#__finder_links_terms3" ("term_id",
"weight");
CREATE INDEX "#__finder_links_terms3_idx_link_term_weight" on
"#__finder_links_terms3" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_terms4
--
CREATE TABLE "#__finder_links_terms4" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_terms4_idx_term_weight" on
"#__finder_links_terms4" ("term_id",
"weight");
CREATE INDEX "#__finder_links_terms4_idx_link_term_weight" on
"#__finder_links_terms4" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_terms5
--
CREATE TABLE "#__finder_links_terms5" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_terms5_idx_term_weight" on
"#__finder_links_terms5" ("term_id",
"weight");
CREATE INDEX "#__finder_links_terms5_idx_link_term_weight" on
"#__finder_links_terms5" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_terms6
--
CREATE TABLE "#__finder_links_terms6" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_terms6_idx_term_weight" on
"#__finder_links_terms6" ("term_id",
"weight");
CREATE INDEX "#__finder_links_terms6_idx_link_term_weight" on
"#__finder_links_terms6" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_terms7
--
CREATE TABLE "#__finder_links_terms7" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_terms7_idx_term_weight" on
"#__finder_links_terms7" ("term_id",
"weight");
CREATE INDEX "#__finder_links_terms7_idx_link_term_weight" on
"#__finder_links_terms7" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_terms8
--
CREATE TABLE "#__finder_links_terms8" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_terms8_idx_term_weight" on
"#__finder_links_terms8" ("term_id",
"weight");
CREATE INDEX "#__finder_links_terms8_idx_link_term_weight" on
"#__finder_links_terms8" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_terms9
--
CREATE TABLE "#__finder_links_terms9" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_terms9_idx_term_weight" on
"#__finder_links_terms9" ("term_id",
"weight");
CREATE INDEX "#__finder_links_terms9_idx_link_term_weight" on
"#__finder_links_terms9" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_termsa
--
CREATE TABLE "#__finder_links_termsa" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_termsa_idx_term_weight" on
"#__finder_links_termsa" ("term_id",
"weight");
CREATE INDEX "#__finder_links_termsa_idx_link_term_weight" on
"#__finder_links_termsa" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_termsb
--
CREATE TABLE "#__finder_links_termsb" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_termsb_idx_term_weight" on
"#__finder_links_termsb" ("term_id",
"weight");
CREATE INDEX "#__finder_links_termsb_idx_link_term_weight" on
"#__finder_links_termsb" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_termsc
--
CREATE TABLE "#__finder_links_termsc" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_termsc_idx_term_weight" on
"#__finder_links_termsc" ("term_id",
"weight");
CREATE INDEX "#__finder_links_termsc_idx_link_term_weight" on
"#__finder_links_termsc" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_termsd
--
CREATE TABLE "#__finder_links_termsd" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_termsd_idx_term_weight" on
"#__finder_links_termsd" ("term_id",
"weight");
CREATE INDEX "#__finder_links_termsd_idx_link_term_weight" on
"#__finder_links_termsd" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_termse
--
CREATE TABLE "#__finder_links_termse" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_termse_idx_term_weight" on
"#__finder_links_termse" ("term_id",
"weight");
CREATE INDEX "#__finder_links_termse_idx_link_term_weight" on
"#__finder_links_termse" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_links_termsf
--
CREATE TABLE "#__finder_links_termsf" (
  "link_id" integer NOT NULL,
  "term_id" integer NOT NULL,
  "weight" numeric(8,2) NOT NULL,
  PRIMARY KEY ("link_id", "term_id")
);
CREATE INDEX "#__finder_links_termsf_idx_term_weight" on
"#__finder_links_termsf" ("term_id",
"weight");
CREATE INDEX "#__finder_links_termsf_idx_link_term_weight" on
"#__finder_links_termsf" ("link_id",
"term_id", "weight");

--
-- Table: #__finder_taxonomy
--
CREATE TABLE "#__finder_taxonomy" (
  "id" serial NOT NULL,
  "parent_id" integer DEFAULT 0 NOT NULL,
  "title" character varying(255) NOT NULL,
  "state" smallint DEFAULT 1 NOT NULL,
  "access" smallint DEFAULT 0 NOT NULL,
  "ordering" smallint DEFAULT 0 NOT NULL,
  PRIMARY KEY ("id")
);
CREATE INDEX "#__finder_taxonomy_parent_id" on
"#__finder_taxonomy" ("parent_id");
CREATE INDEX "#__finder_taxonomy_state" on
"#__finder_taxonomy" ("state");
CREATE INDEX "#__finder_taxonomy_ordering" on
"#__finder_taxonomy" ("ordering");
CREATE INDEX "#__finder_taxonomy_access" on
"#__finder_taxonomy" ("access");
CREATE INDEX "#__finder_taxonomy_idx_parent_published" on
"#__finder_taxonomy" ("parent_id", "state",
"access");

--
-- Dumping data for table #__finder_taxonomy
--
UPDATE "#__finder_taxonomy" SET ("id",
"parent_id", "title", "state",
"access", "ordering") = (1, 0, 'ROOT', 0, 0,
0) 
WHERE "id"=1;

INSERT INTO "#__finder_taxonomy" ("id",
"parent_id", "title", "state",
"access", "ordering") 
SELECT 1, 0, 'ROOT', 0, 0, 0 WHERE 1 NOT IN 
(SELECT 1 FROM "#__finder_taxonomy" WHERE "id"=1);



--
-- Table: #__finder_taxonomy_map
--
CREATE TABLE "#__finder_taxonomy_map" (
  "link_id" integer NOT NULL,
  "node_id" integer NOT NULL,
  PRIMARY KEY ("link_id", "node_id")
);
CREATE INDEX "#__finder_taxonomy_map_link_id" on
"#__finder_taxonomy_map" ("link_id");
CREATE INDEX "#__finder_taxonomy_map_node_id" on
"#__finder_taxonomy_map" ("node_id");

--
-- Table: #__finder_terms
--
CREATE TABLE "#__finder_terms" (
  "term_id" serial NOT NULL,
  "term" character varying(75) NOT NULL,
  "stem" character varying(75) NOT NULL,
  "common" smallint DEFAULT 0 NOT NULL,
  "phrase" smallint DEFAULT 0 NOT NULL,
  "weight" numeric(8,2) DEFAULT 0 NOT NULL,
  "soundex" character varying(75) NOT NULL,
  "links" integer DEFAULT 0 NOT NULL,
  PRIMARY KEY ("term_id"),
  CONSTRAINT "#__finder_terms_idx_term" UNIQUE ("term")
);
CREATE INDEX "#__finder_terms_idx_term_phrase" on
"#__finder_terms" ("term", "phrase");
CREATE INDEX "#__finder_terms_idx_stem_phrase" on
"#__finder_terms" ("stem", "phrase");
CREATE INDEX "#__finder_terms_idx_soundex_phrase" on
"#__finder_terms" ("soundex", "phrase");

--
-- Table: #__finder_terms_common
--
CREATE TABLE "#__finder_terms_common" (
  "term" character varying(75) NOT NULL,
  "language" character varying(3) NOT NULL
);
CREATE INDEX "#__finder_terms_common_idx_word_lang" on
"#__finder_terms_common" ("term",
"language");
CREATE INDEX "#__finder_terms_common_idx_lang" on
"#__finder_terms_common" ("language");


--
-- Dumping data for table `#__finder_terms_common`
--

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('a', 'en') WHERE
"term"='a';

INSERT INTO "#__finder_terms_common" ("term",
"language") 
SELECT 'a', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='a');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('about', 'en') WHERE
"term"='about';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'about', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='about');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('after', 'en') WHERE
"term"='after';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'after', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='after');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('ago', 'en') WHERE
"term"='ago';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'ago', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='ago');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('all', 'en') WHERE
"term"='all';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'all', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='all');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('am', 'en') WHERE
"term"='am';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'am', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='am');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('an', 'en') WHERE
"term"='an';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'an', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='an');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('and', 'en') WHERE
"term"='and';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'and', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='and');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('any', 'en') WHERE
"term"='any';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'any', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='any');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('are', 'en') WHERE
"term"='are';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'are', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='are');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('aren''t', 'en')
WHERE "term"='aren''t';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'aren''t', 'en' WHERE 1 NOT IN (SELECT
1 FROM "#__finder_terms_common" WHERE
"term"='aren''t');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('as', 'en') WHERE
"term"='as';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'as', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='as');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('at', 'en') WHERE
"term"='at';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'at', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='at');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('be', 'en') WHERE
"term"='be';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'be', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='be');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('but', 'en') WHERE
"term"='but';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'but', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='but');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('by', 'en') WHERE
"term"='by';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'by', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='by');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('for', 'en') WHERE
"term"='for';

INSERT INTO "#__finder_terms_common" ("term",
"language") SELECT 'for', 'en' WHERE 1 NOT IN

(SELECT 1 FROM "#__finder_terms_common" WHERE
"term"='for');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('from', 'en') WHERE
"term"='from';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'from', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='from');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('get', 'en') WHERE
"term"='get';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'get', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='get');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('go', 'en') WHERE
"term"='go';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'go', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='go');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('how', 'en') WHERE
"term"='how';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'how', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='how');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('if', 'en') WHERE
"term"='if';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'if', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='if');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('in', 'en') WHERE
"term"='in';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'in', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='in');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('into', 'en') WHERE
"term"='into';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'into', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='into');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('is', 'en') WHERE
"term"='is';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'is', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='is');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('isn''t', 'en')
WHERE "term"='isn''t';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'isn''t', 'en' WHERE 1 NOT IN (SELECT
1 FROM "#__finder_terms_common" WHERE
"term"='isn''t');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('it', 'en') WHERE
"term"='it';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'it', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='it');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('its', 'en') WHERE
"term"='its';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'its', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='its');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('me', 'en') WHERE
"term"='me';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'me', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='me');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('more', 'en') WHERE
"term"='more';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'more', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='more');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('most', 'en') WHERE
"term"='most';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'most', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='most');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('must', 'en') WHERE
"term"='must';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'must', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='must');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('my', 'en') WHERE
"term"='my';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'my', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='my');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('new', 'en') WHERE
"term"='new';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'new', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='new');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('no', 'en') WHERE
"term"='no';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'no', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='no');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('none', 'en') WHERE
"term"='none';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'none', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='none');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('not', 'en') WHERE
"term"='not';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'not', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='not');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('nothing', 'en') WHERE
"term"='nothing';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'nothing', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='nothing');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('of', 'en') WHERE
"term"='of';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'of', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='of');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('off', 'en') WHERE
"term"='off';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'off', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='off');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('often', 'en') WHERE
"term"='often';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'often', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='often');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('old', 'en') WHERE
"term"='old';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'old', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='old');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('on', 'en') WHERE
"term"='on';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'on', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='on');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('onc', 'en') WHERE
"term"='onc';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'onc', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='onc');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('once', 'en') WHERE
"term"='once';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'once', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='once');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('only', 'en') WHERE
"term"='only';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'only', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='only');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('or', 'en') WHERE
"term"='or';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'or', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='or');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('other', 'en') WHERE
"term"='other';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'other', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='other');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('our', 'en') WHERE
"term"='our';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'our', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='our');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('ours', 'en') WHERE
"term"='ours';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'ours', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='ours');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('out', 'en') WHERE
"term"='out';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'out', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='out');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('over', 'en') WHERE
"term"='over';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'over', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='over');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('page', 'en') WHERE
"term"='page';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'page', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='page');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('she', 'en') WHERE
"term"='she';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'she', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='she');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('should', 'en') WHERE
"term"='should';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'should', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='should');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('small', 'en') WHERE
"term"='small';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'small', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='small');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('so', 'en') WHERE
"term"='so';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'so', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='so');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('some', 'en') WHERE
"term"='some';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'some', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='some');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('than', 'en') WHERE
"term"='than';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'than', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='than');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('thank', 'en') WHERE
"term"='thank';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'thank', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='thank');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('that', 'en') WHERE
"term"='that';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'that', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='that');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('the', 'en') WHERE
"term"='the';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'the', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='the');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('their', 'en') WHERE
"term"='their';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'their', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='their');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('theirs', 'en') WHERE
"term"='theirs';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'theirs', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='theirs');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('them', 'en') WHERE
"term"='them';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'them', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='them');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('then', 'en') WHERE
"term"='then';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'then', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='then');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('there', 'en') WHERE
"term"='there';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'there', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='there');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('these', 'en') WHERE
"term"='these';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'these', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='these');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('they', 'en') WHERE
"term"='they';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'they', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='they');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('this', 'en') WHERE
"term"='this';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'this', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='this');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('those', 'en') WHERE
"term"='those';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'those', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='those');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('thus', 'en') WHERE
"term"='thus';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'thus', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='thus');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('time', 'en') WHERE
"term"='time';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'time', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='time');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('times', 'en') WHERE
"term"='times';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'times', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='times');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('to', 'en') WHERE
"term"='to';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'to', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='to');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('too', 'en') WHERE
"term"='too';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'too', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='too');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('true', 'en') WHERE
"term"='true';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'true', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='true');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('under', 'en')WHERE
"term"='under';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'under', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='under');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('until', 'en') WHERE
"term"='until';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'until', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='until');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('up', 'en') WHERE
"term"='up';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'up', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='up');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('upon', 'en') WHERE
"term"='upon';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'upon', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='upon');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('use', 'en') WHERE
"term"='use';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'use', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='use');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('user', 'en') WHERE
"term"='user';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'user', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='user');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('users', 'en') WHERE
"term"='users';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'users', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='users');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('version', 'en') WHERE
"term"='version';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'version', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='version');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('very', 'en') WHERE
"term"='very';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'very', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='very');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('via', 'en') WHERE
"term"='via';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'via', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='via');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('want', 'en') WHERE
"term"='want';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'want', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='want');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('was', 'en') WHERE
"term"='was';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'was', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='was');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('way', 'en') WHERE
"term"='way';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'way', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='way');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('were', 'en') WHERE
"term"='were';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'were', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='were');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('what', 'en') WHERE
"term"='what';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'what', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='what');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('when', 'en') WHERE
"term"='when';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'when', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='when');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('where', 'en') WHERE
"term"='where';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'where', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='where');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('which', 'en') WHERE
"term"='which';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'which', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='which');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('who', 'en') WHERE
"term"='who';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'who', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='who');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('whom', 'en') WHERE
"term"='whom';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'whom', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='whom');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('whose', 'en') WHERE
"term"='whose';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'whose', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='whose');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('why', 'en') WHERE
"term"='why';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'why', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='why');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('wide', 'en') WHERE
"term"='wide';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'wide', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='wide');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('will', 'en') WHERE
"term"='will';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'will', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='will');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('with', 'en') WHERE
"term"='with';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'with', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='with');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('within', 'en') WHERE
"term"='within';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'within', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='within');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('without', 'en') WHERE
"term"='without';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'without', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='without');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('would', 'en') WHERE
"term"='would';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'would', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='would');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('yes', 'en') WHERE
"term"='yes';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'yes', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='yes');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('yet', 'en') WHERE
"term"='yet';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'yet', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='yet');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('you', 'en') WHERE
"term"='you';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'you', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE "term"='you');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('your', 'en') WHERE
"term"='your';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'your', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='your');

--
UPDATE "#__finder_terms_common" SET ("term",
"language") = ('yours', 'en') WHERE
"term"='yours';

INSERT INTO "#__finder_terms_common" ("term",
"language")
SELECT 'yours', 'en' WHERE 1 NOT IN (SELECT 1 FROM
"#__finder_terms_common" WHERE
"term"='yours');



--
-- Table: #__finder_tokens
--
CREATE TABLE "#__finder_tokens" (
  "term" character varying(75) NOT NULL,
  "stem" character varying(75) NOT NULL,
  "common" smallint DEFAULT 0 NOT NULL,
  "phrase" smallint DEFAULT 0 NOT NULL,
  "weight" numeric(8,2) DEFAULT 1 NOT NULL,
  "context" smallint DEFAULT 2 NOT NULL
);
CREATE INDEX "#__finder_tokens_idx_word" on
"#__finder_tokens" ("term");
CREATE INDEX "#__finder_tokens_idx_context" on
"#__finder_tokens" ("context");

--
-- Table: #__finder_tokens_aggregate
--
CREATE TABLE "#__finder_tokens_aggregate" (
  "term_id" integer NOT NULL,
  "map_suffix" character(1) NOT NULL,
  "term" character varying(75) NOT NULL,
  "stem" character varying(75) NOT NULL,
  "common" smallint DEFAULT 0 NOT NULL,
  "phrase" smallint DEFAULT 0 NOT NULL,
  "term_weight" numeric(8,2) NOT NULL,
  "context" smallint DEFAULT 2 NOT NULL,
  "context_weight" numeric(8,2) NOT NULL,
  "total_weight" numeric(8,2) NOT NULL
);
CREATE INDEX "#__finder_tokens_aggregate_token" on
"#__finder_tokens_aggregate" ("term");
CREATE INDEX "_#__finder_tokens_aggregate_keyword_id" on
"#__finder_tokens_aggregate" ("term_id");

--
-- Table: #__finder_types
--
CREATE TABLE "#__finder_types" (
  "id" serial NOT NULL,
  "title" character varying(100) NOT NULL,
  "mime" character varying(100) NOT NULL,
  PRIMARY KEY ("id"),
  CONSTRAINT "#__finder_types_title" UNIQUE ("title")
);

uninstall.mysql.sql000064400000002167151161351170010451 0ustar00DROP TABLE
IF EXISTS `#__finder_filters`;
DROP TABLE IF EXISTS `#__finder_links`;
DROP TABLE IF EXISTS `#__finder_links_terms0`;
DROP TABLE IF EXISTS `#__finder_links_terms1`;
DROP TABLE IF EXISTS `#__finder_links_terms2`;
DROP TABLE IF EXISTS `#__finder_links_terms3`;
DROP TABLE IF EXISTS `#__finder_links_terms4`;
DROP TABLE IF EXISTS `#__finder_links_terms5`;
DROP TABLE IF EXISTS `#__finder_links_terms6`;
DROP TABLE IF EXISTS `#__finder_links_terms7`;
DROP TABLE IF EXISTS `#__finder_links_terms8`;
DROP TABLE IF EXISTS `#__finder_links_terms9`;
DROP TABLE IF EXISTS `#__finder_links_termsa`;
DROP TABLE IF EXISTS `#__finder_links_termsb`;
DROP TABLE IF EXISTS `#__finder_links_termsc`;
DROP TABLE IF EXISTS `#__finder_links_termsd`;
DROP TABLE IF EXISTS `#__finder_links_termse`;
DROP TABLE IF EXISTS `#__finder_links_termsf`;
DROP TABLE IF EXISTS `#__finder_taxonomy`;
DROP TABLE IF EXISTS `#__finder_taxonomy_map`;
DROP TABLE IF EXISTS `#__finder_terms`;
DROP TABLE IF EXISTS `#__finder_terms_common`;
DROP TABLE IF EXISTS `#__finder_tokens`;
DROP TABLE IF EXISTS `#__finder_tokens_aggregate`;
DROP TABLE IF EXISTS `#__finder_types`;
uninstall.postgresql.sql000064400000002167151161351170011507 0ustar00DROP
TABLE IF EXISTS "#__finder_filters";
DROP TABLE IF EXISTS "#__finder_links";
DROP TABLE IF EXISTS "#__finder_links_terms0";
DROP TABLE IF EXISTS "#__finder_links_terms1";
DROP TABLE IF EXISTS "#__finder_links_terms2";
DROP TABLE IF EXISTS "#__finder_links_terms3";
DROP TABLE IF EXISTS "#__finder_links_terms4";
DROP TABLE IF EXISTS "#__finder_links_terms5";
DROP TABLE IF EXISTS "#__finder_links_terms6";
DROP TABLE IF EXISTS "#__finder_links_terms7";
DROP TABLE IF EXISTS "#__finder_links_terms8";
DROP TABLE IF EXISTS "#__finder_links_terms9";
DROP TABLE IF EXISTS "#__finder_links_termsa";
DROP TABLE IF EXISTS "#__finder_links_termsb";
DROP TABLE IF EXISTS "#__finder_links_termsc";
DROP TABLE IF EXISTS "#__finder_links_termsd";
DROP TABLE IF EXISTS "#__finder_links_termse";
DROP TABLE IF EXISTS "#__finder_links_termsf";
DROP TABLE IF EXISTS "#__finder_taxonomy";
DROP TABLE IF EXISTS "#__finder_taxonomy_map";
DROP TABLE IF EXISTS "#__finder_terms";
DROP TABLE IF EXISTS "#__finder_terms_common";
DROP TABLE IF EXISTS "#__finder_tokens";
DROP TABLE IF EXISTS "#__finder_tokens_aggregate";
DROP TABLE IF EXISTS "#__finder_types";
others/mysql/utf8mb4-conversion-01.sql000064400000002735151161446600013643
0ustar00--
-- Step 1 of the UTF-8 Multibyte (utf8mb4) conversion for MySQL
--
-- Drop indexes which will be added again in step 2,
utf8mb4-conversion-02.sql.
--
-- Do not rename this file or any other of the utf8mb4-conversion-*.sql
-- files unless you want to change PHP code, too.
--
-- This file here will be processed ignoring any exceptions caused by
indexes
-- to be dropped do not exist.
--
-- The file for step 2 will the be processed with reporting exceptions.
--

ALTER TABLE `#__banners` DROP KEY `idx_metakey_prefix`;
ALTER TABLE `#__banner_clients` DROP KEY `idx_metakey_prefix`;
ALTER TABLE `#__categories` DROP KEY `idx_path`;
ALTER TABLE `#__categories` DROP KEY `idx_alias`;
ALTER TABLE `#__content` DROP KEY `idx_alias`;
ALTER TABLE `#__content_types` DROP KEY `idx_alias`;
ALTER TABLE `#__fields` DROP KEY `idx_context`;
ALTER TABLE `#__fields_groups` DROP KEY `idx_context`;
ALTER TABLE `#__fields_values` DROP KEY `idx_item_id`;
ALTER TABLE `#__finder_links` DROP KEY `idx_title`;
ALTER TABLE `#__menu` DROP KEY `idx_alias`;
ALTER TABLE `#__menu` DROP KEY `idx_client_id_parent_id_alias_language`;
ALTER TABLE `#__menu` DROP KEY `idx_path`;
ALTER TABLE `#__redirect_links` DROP KEY `idx_old_url`;
ALTER TABLE `#__tags` DROP KEY `idx_path`;
ALTER TABLE `#__tags` DROP KEY `idx_alias`;
ALTER TABLE `#__ucm_content` DROP KEY `idx_alias`;
ALTER TABLE `#__ucm_content` DROP KEY `idx_title`;
ALTER TABLE `#__ucm_content` DROP KEY `idx_content_type`;
ALTER TABLE `#__users` DROP KEY `idx_name`;
others/mysql/utf8mb4-conversion-02.sql000064400000044367151161446600013653
0ustar00--
-- Step 2 of the UTF-8 Multibyte (utf8mb4) conversion for MySQL
--
-- Enlarge some database columns to avoid data losses, then convert all
tables
-- to utf8mb4 or utf8, then set default character sets and collations for
all
-- tables, then add back indexes previosly dropped with step 1,
-- utf8mb4-conversion-01.sql, but add them back with limited lenghts of
-- columns.
--
-- Do not rename this file or any other of the utf8mb4-conversion-*.sql
-- files unless you want to change PHP code, too.
--
-- IMPORTANT: When adding an index modification to this file for limiting
the
-- length by which one or more columns go into that index,
--
-- 1. remember to add the statement to drop the index to the file for step
1,
--    utf8mb4-conversion-01.sql, and
--
-- 2. check if the index is created created or modified in some old schema
--    update sql in an "ALTER TABLE" statement and limit the
column length
--    there, too ("CREATE TABLE" is ok, no need to modify those).
--
-- This file here will the be processed with reporting exceptions, in
opposite
-- to the file for step 1.
--

--
-- Step 2.1: Enlarge columns to avoid data loss on later conversion to
utf8mb4
--

ALTER TABLE `#__banners` MODIFY `alias` varchar(400) NOT NULL DEFAULT
'';
ALTER TABLE `#__banners` MODIFY `metakey_prefix` varchar(400) NOT NULL
DEFAULT '';
ALTER TABLE `#__categories` MODIFY `path` varchar(400) NOT NULL DEFAULT
'';
ALTER TABLE `#__categories` MODIFY `alias` varchar(400) NOT NULL DEFAULT
'';
ALTER TABLE `#__content_types` MODIFY `type_alias` varchar(400) NOT NULL
DEFAULT '';
ALTER TABLE `#__finder_links` MODIFY `title` varchar(400) DEFAULT NULL;
ALTER TABLE `#__contact_details` MODIFY `alias` varchar(400) NOT NULL
DEFAULT '';
ALTER TABLE `#__content` MODIFY `alias` varchar(400) NOT NULL DEFAULT
'';
ALTER TABLE `#__menu` MODIFY `alias` varchar(400) NOT NULL COMMENT
'The SEF alias of the menu item.';
ALTER TABLE `#__newsfeeds` MODIFY `alias` varchar(400) NOT NULL DEFAULT
'';
ALTER TABLE `#__tags` MODIFY `path` varchar(400) NOT NULL DEFAULT
'';
ALTER TABLE `#__tags` MODIFY `alias` varchar(400) NOT NULL DEFAULT
'';
ALTER TABLE `#__ucm_content` MODIFY `core_type_alias` varchar(400) NOT NULL
DEFAULT '' COMMENT 'FK to the content types table';
ALTER TABLE `#__ucm_content` MODIFY `core_title` varchar(400) NOT NULL
DEFAULT '';
ALTER TABLE `#__ucm_content` MODIFY `core_alias` varchar(400) NOT NULL
DEFAULT '';
ALTER TABLE `#__users` MODIFY `name` varchar(400) NOT NULL DEFAULT
'';

--
-- Step 2.2: Convert all tables to utf8mb4 character set with
utf8mb4_unicode_ci collation
-- except #__finder_xxx tables, those will have utf8mb4_general_ci
collation.
-- Note: The database driver for mysql will change utf8mb4 to utf8 if
utf8mb4 is not supported
--

ALTER TABLE `#__assets` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__associations` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__banners` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__banner_clients` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__banner_tracks` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__categories` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__contact_details` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__content` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__content_frontpage` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__content_rating` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__content_types` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__contentitem_tag_map` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__core_log_searches` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__extensions` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__fields` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__fields_categories` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__fields_groups` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__fields_values` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__finder_filters` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms0` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms1` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms2` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms3` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms4` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms5` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms6` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms7` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms8` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms9` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_termsa` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_termsb` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_termsc` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_termsd` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_termse` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_links_termsf` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_taxonomy` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_taxonomy_map` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_terms` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_terms_common` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_tokens` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_tokens_aggregate` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_types` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__languages` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__menu` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__menu_types` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__messages` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__messages_cfg` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__modules` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__modules_menu` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__newsfeeds` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__overrider` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__postinstall_messages` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__redirect_links` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__schemas` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__session` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__tags` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__template_styles` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__ucm_base` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__ucm_content` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__ucm_history` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__updates` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__update_sites` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__update_sites_extensions` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__usergroups` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__users` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__user_keys` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__user_notes` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__user_profiles` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__user_usergroup_map` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__utf8_conversion` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__viewlevels` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;

--
-- Step 2.3: Set collation to utf8mb4_bin for formerly utf8_bin collated
columns
-- and for the lang_code column of the languages table
--

ALTER TABLE `#__banners` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4
COLLATE utf8mb4_bin NOT NULL DEFAULT '';
ALTER TABLE `#__categories` MODIFY `alias` varchar(400) CHARACTER SET
utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';
ALTER TABLE `#__contact_details` MODIFY `alias` varchar(400) CHARACTER SET
utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';
ALTER TABLE `#__content` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4
COLLATE utf8mb4_bin NOT NULL DEFAULT '';
ALTER TABLE `#__languages` MODIFY `lang_code` char(7) CHARACTER SET utf8mb4
COLLATE utf8mb4_bin NOT NULL;
ALTER TABLE `#__menu` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4
COLLATE utf8mb4_bin NOT NULL COMMENT 'The SEF alias of the menu
item.';
ALTER TABLE `#__newsfeeds` MODIFY `alias` varchar(400) CHARACTER SET
utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';
ALTER TABLE `#__tags` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4
COLLATE utf8mb4_bin NOT NULL DEFAULT '';
ALTER TABLE `#__ucm_content` MODIFY `core_alias` varchar(400) CHARACTER SET
utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';

--
-- Step 2.4: Set default character set and collation for all tables
--

ALTER TABLE `#__assets` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__associations` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__banners` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__banner_clients` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__banner_tracks` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__categories` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__contact_details` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__content` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__content_frontpage` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__content_rating` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__content_types` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__contentitem_tag_map` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__core_log_searches` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__extensions` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__fields` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__fields_categories` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__fields_groups` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__fields_values` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__finder_filters` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms0` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms1` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms2` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms3` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms4` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms5` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms6` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms7` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms8` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_terms9` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_termsa` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_termsb` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_termsc` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_termsd` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_termse` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_links_termsf` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_taxonomy` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_taxonomy_map` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_terms` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_terms_common` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_tokens` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__finder_tokens_aggregate` DEFAULT CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `#__finder_types` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_general_ci;
ALTER TABLE `#__languages` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__menu` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__menu_types` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__messages` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__messages_cfg` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__modules` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__modules_menu` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__newsfeeds` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__overrider` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__postinstall_messages` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__redirect_links` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__schemas` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__session` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__tags` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__template_styles` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__ucm_base` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__ucm_content` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__ucm_history` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__updates` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__update_sites` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__update_sites_extensions` DEFAULT CHARACTER SET utf8mb4
COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__usergroups` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__users` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__user_keys` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__user_notes` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__user_profiles` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__user_usergroup_map` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__utf8_conversion` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__viewlevels` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;

--
-- Step 2.5: Limit indexes to first 100 so their max allowed lengths would
not get exceeded with utf8mb4
--

ALTER TABLE `#__banners` ADD KEY `idx_metakey_prefix`
(`metakey_prefix`(100));
ALTER TABLE `#__banner_clients` ADD KEY `idx_metakey_prefix`
(`metakey_prefix`(100));
ALTER TABLE `#__categories` ADD KEY `idx_path` (`path`(100));
ALTER TABLE `#__categories` ADD KEY `idx_alias` (`alias`(100));
ALTER TABLE `#__content` ADD KEY `idx_alias` (`alias`(191));
ALTER TABLE `#__content_types` ADD KEY `idx_alias` (`type_alias`(100));
ALTER TABLE `#__fields` ADD KEY `idx_context` (`context`(191));
ALTER TABLE `#__fields_groups` ADD KEY `idx_context` (`context`(191));
ALTER TABLE `#__fields_values` ADD KEY `idx_item_id` (`item_id`(191));
ALTER TABLE `#__finder_links` ADD KEY `idx_title` (`title`(100));
ALTER TABLE `#__menu` ADD KEY `idx_alias` (`alias`(100));
ALTER TABLE `#__menu` ADD UNIQUE `idx_client_id_parent_id_alias_language`
(`client_id`,`parent_id`,`alias`(100),`language`);
ALTER TABLE `#__menu` ADD KEY `idx_path` (`path`(100));
ALTER TABLE `#__redirect_links` ADD KEY `idx_old_url` (`old_url`(100));
ALTER TABLE `#__tags` ADD KEY `idx_path` (`path`(100));
ALTER TABLE `#__tags` ADD KEY `idx_alias` (`alias`(100));
ALTER TABLE `#__ucm_content` ADD KEY `idx_alias` (`core_alias`(100));
ALTER TABLE `#__ucm_content` ADD KEY `idx_title` (`core_title`(100));
ALTER TABLE `#__ucm_content` ADD KEY `idx_content_type`
(`core_type_alias`(100));
ALTER TABLE `#__users` ADD KEY `idx_name` (`name`(100));
others/mysql/utf8mb4-conversion-03.sql000064400000003335151161446600013642
0ustar00--
-- Step 3 of the UTF-8 Multibyte (utf8mb4) conversion for MySQL
--
-- Convert the tables for action logs and the privacy suite which have been
-- forgotten to be added to the utf8mb4 conversion before.
--
-- This file here will be processed with reporting exceptions, in opposite
-- to the file for step 1.
--

--
-- Step 3.1: Convert action logs and privacy suite tables to utf8mb4
character set with
-- utf8mb4_unicode_ci collation
-- Note: The database driver for mysql will change utf8mb4 to utf8 if
utf8mb4 is not supported
--

ALTER TABLE `#__action_logs` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__action_logs_extensions` CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__action_logs_users` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__action_log_config` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__privacy_consents` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__privacy_requests` CONVERT TO CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;

--
-- Step 3.2: Set default character set and collation for previously
converted tables
--

ALTER TABLE `#__action_logs` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__action_logs_extensions` DEFAULT CHARACTER SET utf8mb4
COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__action_logs_users` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__action_log_config` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__privacy_consents` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
ALTER TABLE `#__privacy_requests` DEFAULT CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci;
updates/mysql/2.5.0-2011-12-06.sql000064400000001531151161446600011571
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(437, 'plg_quickicon_joomlaupdate', 'plugin',
'joomlaupdate', 'quickicon', 0, 1, 1, 1, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(438, 'plg_quickicon_extensionupdate', 'plugin',
'extensionupdate', 'quickicon', 0, 1, 1, 1,
'', '{}', '', '', 0,
'0000-00-00 00:00:00', 0, 0);

ALTER TABLE  `#__update_sites` ADD COLUMN `last_check_timestamp` bigint(20)
DEFAULT '0' AFTER `enabled`;

REPLACE INTO `#__update_sites` VALUES
(1, 'Joomla Core', 'collection',
'https://update.joomla.org/core/list.xml', 1, 0),
(2, 'Joomla Extension Directory', 'collection',
'https://update.joomla.org/jed/list.xml', 1, 0);
updates/mysql/2.5.0-2011-12-16.sql000064400000000365151161446600011576
0ustar00CREATE TABLE IF NOT EXISTS `#__overrider` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',
  `constant` varchar(255) NOT NULL,
  `string` text NOT NULL,
  `file` varchar(255) NOT NULL,
  PRIMARY KEY  (`id`)
) DEFAULT
CHARSET=utf8;updates/mysql/2.5.0-2011-12-19.sql000064400000001724151161446600011601
0ustar00CREATE TABLE IF NOT EXISTS `#__user_notes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL DEFAULT '0',
  `catid` int(10) unsigned NOT NULL DEFAULT '0',
  `subject` varchar(100) NOT NULL DEFAULT '',
  `body` text NOT NULL,
  `state` tinyint(3) NOT NULL DEFAULT '0',
  `checked_out` int(10) unsigned NOT NULL DEFAULT '0',
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `created_user_id` int(10) unsigned NOT NULL DEFAULT '0',
  `created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `modified_user_id` int(10) unsigned NOT NULL,
  `modified_time` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `review_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `publish_up` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
  `publish_down` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `idx_user_id` (`user_id`),
  KEY `idx_category_id` (`catid`)
) DEFAULT CHARSET=utf8;
updates/mysql/2.5.0-2011-12-20.sql000064400000000500151161446600011560
0ustar00SELECT @old_params:= CONCAT(SUBSTRING_INDEX(SUBSTRING(params,
LOCATE('"filters":', params)), '}}', 1),
'}}') as filters
FROM `#__extensions` 
WHERE name="com_content";

UPDATE `#__extensions`
SET params=CONCAT('{',SUBSTRING(params, 2,
CHAR_LENGTH(params)-2),IF(params='','',','),@old_params,'}')
WHERE
name="com_config";updates/mysql/2.5.0-2011-12-21-1.sql000064400000004343151161446600011730
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(27, 'com_finder', 'component', 'com_finder',
'', 1, 1, 0, 0, '',
'{"show_description":"1","description_length":255,"allow_empty_query":"0","show_url":"1","show_advanced":"1","expand_advanced":"0","show_date_filters":"0","highlight_terms":"1","opensearch_name":"","opensearch_description":"","batch_size":"50","memory_table_limit":30000,"title_multiplier":"1.7","text_multiplier":"0.7","meta_multiplier":"1.2","path_multiplier":"2.0","misc_multiplier":"0.3","stemmer":"porter_en"}',
'', '', 0, '0000-00-00 00:00:00', 0, 0),
(439, 'plg_captcha_recaptcha', 'plugin',
'recaptcha', 'captcha', 0, 1, 1, 0, '{}',
'{"public_key":"","private_key":"","theme":"clean"}',
'', '', 0, '0000-00-00 00:00:00', 0, 0),
(440, 'plg_system_highlight', 'plugin',
'highlight', 'system', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 7, 0),
(441, 'plg_content_finder', 'plugin',
'finder', 'content', 0, 0, 1, 0,
'{"legacy":false,"name":"plg_content_finder","type":"plugin","creationDate":"December
2011","author":"Joomla!
Project","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"1.7.0","description":"PLG_CONTENT_FINDER_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(442, 'plg_finder_categories', 'plugin',
'categories', 'finder', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 1, 0),
(443, 'plg_finder_contacts', 'plugin',
'contacts', 'finder', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 2, 0),
(444, 'plg_finder_content', 'plugin',
'content', 'finder', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 3, 0),
(445, 'plg_finder_newsfeeds', 'plugin',
'newsfeeds', 'finder', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 4, 0),
(446, 'plg_finder_weblinks', 'plugin',
'weblinks', 'finder', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 5, 0),
(223, 'mod_finder', 'module', 'mod_finder',
'', 0, 1, 0, 0, '', '', '',
'', 0, '0000-00-00 00:00:00', 0, 0);
updates/mysql/2.5.0-2011-12-21-2.sql000064400000020167151161446600011733
0ustar00CREATE TABLE IF NOT EXISTS `#__finder_links_terms0` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__finder_links_terms1` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__finder_links_terms2` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__finder_links_terms3` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_links_terms4` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_links_terms5` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_links_terms6` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_links_terms7` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_links_terms8` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_links_terms9` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_links_termsa` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_links_termsb` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_links_termsc` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_links_termsd` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_links_termse` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_links_termsf` (
  `link_id` int(10) unsigned NOT NULL,
  `term_id` int(10) unsigned NOT NULL,
  `weight` float unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`term_id`),
  KEY `idx_term_weight` (`term_id`,`weight`),
  KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_taxonomy` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `parent_id` int(10) unsigned NOT NULL default '0',
  `title` varchar(255) NOT NULL,
  `state` tinyint(1) unsigned NOT NULL default '1',
  `access` tinyint(1) unsigned NOT NULL default '0',
  `ordering` tinyint(1) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `parent_id` (`parent_id`),
  KEY `state` (`state`),
  KEY `ordering` (`ordering`),
  KEY `access` (`access`),
  KEY `idx_parent_published` (`parent_id`,`state`,`access`)
)   DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_taxonomy_map` (
  `link_id` int(10) unsigned NOT NULL,
  `node_id` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`link_id`,`node_id`),
  KEY `link_id` (`link_id`),
  KEY `node_id` (`node_id`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_terms` (
  `term_id` int(10) unsigned NOT NULL auto_increment,
  `term` varchar(75) NOT NULL,
  `stem` varchar(75) NOT NULL,
  `common` tinyint(1) unsigned NOT NULL default '0',
  `phrase` tinyint(1) unsigned NOT NULL default '0',
  `weight` float unsigned NOT NULL default '0',
  `soundex` varchar(75) NOT NULL,
  `links` int(10) NOT NULL default '0',
  PRIMARY KEY  (`term_id`),
  UNIQUE KEY `idx_term` (`term`),
  KEY `idx_term_phrase` (`term`,`phrase`),
  KEY `idx_stem_phrase` (`stem`,`phrase`),
  KEY `idx_soundex_phrase` (`soundex`,`phrase`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_terms_common` (
  `term` varchar(75) NOT NULL,
  `language` varchar(3) NOT NULL,
  KEY `idx_word_lang` (`term`,`language`),
  KEY `idx_lang` (`language`)
)  DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_tokens` (
  `term` varchar(75) NOT NULL,
  `stem` varchar(75) NOT NULL,
  `common` tinyint(1) unsigned NOT NULL default '0',
  `phrase` tinyint(1) unsigned NOT NULL default '0',
  `weight` float unsigned NOT NULL default '1',
  `context` tinyint(1) unsigned NOT NULL default '2',
  KEY `idx_word` (`term`),
  KEY `idx_context` (`context`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_tokens_aggregate` (
  `term_id` int(10) unsigned NOT NULL,
  `map_suffix` char(1) NOT NULL,
  `term` varchar(75) NOT NULL,
  `stem` varchar(75) NOT NULL,
  `common` tinyint(1) unsigned NOT NULL default '0',
  `phrase` tinyint(1) unsigned NOT NULL default '0',
  `term_weight` float unsigned NOT NULL,
  `context` tinyint(1) unsigned NOT NULL default '2',
  `context_weight` float unsigned NOT NULL,
  `total_weight` float unsigned NOT NULL,
  KEY `token` (`term`),
  KEY `keyword_id` (`term_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__finder_types` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `title` varchar(100) NOT NULL,
  `mime` varchar(100) NOT NULL,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `title` (`title`)
)   DEFAULT CHARSET=utf8;


updates/mysql/2.5.0-2011-12-22.sql000064400000004675151161446600011603
0ustar00REPLACE INTO `#__finder_taxonomy` (`id`, `parent_id`, `title`,
`state`, `access`, `ordering`) VALUES
(1, 0, 'ROOT', 0, 0, 0);

REPLACE INTO `#__finder_terms_common` (`term`, `language`) VALUES
('a', 'en'),
('about', 'en'),
('after', 'en'),
('ago', 'en'),
('all', 'en'),
('am', 'en'),
('an', 'en'),
('and', 'en'),
('ani', 'en'),
('any', 'en'),
('are', 'en'),
('aren''t', 'en'),
('as', 'en'),
('at', 'en'),
('be', 'en'),
('but', 'en'),
('by', 'en'),
('for', 'en'),
('from', 'en'),
('get', 'en'),
('go', 'en'),
('how', 'en'),
('if', 'en'),
('in', 'en'),
('into', 'en'),
('is', 'en'),
('isn''t', 'en'),
('it', 'en'),
('its', 'en'),
('me', 'en'),
('more', 'en'),
('most', 'en'),
('must', 'en'),
('my', 'en'),
('new', 'en'),
('no', 'en'),
('none', 'en'),
('not', 'en'),
('noth', 'en'),
('nothing', 'en'),
('of', 'en'),
('off', 'en'),
('often', 'en'),
('old', 'en'),
('on', 'en'),
('onc', 'en'),
('once', 'en'),
('onli', 'en'),
('only', 'en'),
('or', 'en'),
('other', 'en'),
('our', 'en'),
('ours', 'en'),
('out', 'en'),
('over', 'en'),
('page', 'en'),
('she', 'en'),
('should', 'en'),
('small', 'en'),
('so', 'en'),
('some', 'en'),
('than', 'en'),
('thank', 'en'),
('that', 'en'),
('the', 'en'),
('their', 'en'),
('theirs', 'en'),
('them', 'en'),
('then', 'en'),
('there', 'en'),
('these', 'en'),
('they', 'en'),
('this', 'en'),
('those', 'en'),
('thus', 'en'),
('time', 'en'),
('times', 'en'),
('to', 'en'),
('too', 'en'),
('true', 'en'),
('under', 'en'),
('until', 'en'),
('up', 'en'),
('upon', 'en'),
('use', 'en'),
('user', 'en'),
('users', 'en'),
('veri', 'en'),
('version', 'en'),
('very', 'en'),
('via', 'en'),
('want', 'en'),
('was', 'en'),
('way', 'en'),
('were', 'en'),
('what', 'en'),
('when', 'en'),
('where', 'en'),
('whi', 'en'),
('which', 'en'),
('who', 'en'),
('whom', 'en'),
('whose', 'en'),
('why', 'en'),
('wide', 'en'),
('will', 'en'),
('with', 'en'),
('within', 'en'),
('without', 'en'),
('would', 'en'),
('yes', 'en'),
('yet', 'en'),
('you', 'en'),
('your', 'en'),
('yours', 'en');


INSERT INTO `#__menu` (`menutype`, `title`, `alias`, `note`, `path`,
`link`, `type`, `published`, `parent_id`, `level`, `component_id`,
`ordering`, `checked_out`, `checked_out_time`, `browserNav`, `access`,
`img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`,
`client_id`) VALUES
('menu', 'com_finder', 'Smart Search',
'', 'Smart Search',
'index.php?option=com_finder', 'component', 0, 1, 1,
27, 0, 0, '0000-00-00 00:00:00', 0, 0, 'class:finder',
0, '', 41, 42, 0, '*', 1);
updates/mysql/2.5.0-2011-12-23.sql000064400000004030151161446600011565
0ustar00CREATE TABLE IF NOT EXISTS `#__finder_filters` (
  `filter_id` int(10) unsigned NOT NULL auto_increment,
  `title` varchar(255) NOT NULL,
  `alias` varchar(255) NOT NULL,
  `state` tinyint(1) NOT NULL default '1',
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `created_by` int(10) unsigned NOT NULL,
  `created_by_alias` varchar(255) NOT NULL,
  `modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `modified_by` int(10) unsigned NOT NULL default '0',
  `checked_out` int(10) unsigned NOT NULL default '0',
  `checked_out_time` datetime NOT NULL default '0000-00-00
00:00:00',
  `map_count` int(10) unsigned NOT NULL default '0',
  `data` text NOT NULL,
  `params` mediumtext,
  PRIMARY KEY  (`filter_id`)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `#__finder_links` (
  `link_id` int(10) unsigned NOT NULL auto_increment,
  `url` varchar(255) NOT NULL,
  `route` varchar(255) NOT NULL,
  `title` varchar(255) default NULL,
  `description` varchar(255) default NULL,
  `indexdate` datetime NOT NULL default '0000-00-00 00:00:00',
  `md5sum` varchar(32) default NULL,
  `published` tinyint(1) NOT NULL default '1',
  `state` int(5) default '1',
  `access` int(5) default '0',
  `language` varchar(8) NOT NULL,
  `publish_start_date` datetime NOT NULL default '0000-00-00
00:00:00',
  `publish_end_date` datetime NOT NULL default '0000-00-00
00:00:00',
  `start_date` datetime NOT NULL default '0000-00-00 00:00:00',
  `end_date` datetime NOT NULL default '0000-00-00 00:00:00',
  `list_price` double unsigned NOT NULL default '0',
  `sale_price` double unsigned NOT NULL default '0',
  `type_id` int(11) NOT NULL,
  `object` mediumblob NOT NULL,
  PRIMARY KEY  (`link_id`),
  KEY `idx_type` (`type_id`),
  KEY `idx_title` (`title`),
  KEY `idx_md5` (`md5sum`),
  KEY `idx_url` (`url`(75)),
  KEY `idx_published_list`
(`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`list_price`),
  KEY `idx_published_sale`
(`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`sale_price`)
) DEFAULT CHARSET=utf8;

updates/mysql/2.5.0-2011-12-24.sql000064400000000475151161446600011577
0ustar00ALTER TABLE `#__menu` DROP INDEX `idx_client_id_parent_id_alias`;

--
-- The following statment had to be modified for utf8mb4 in Joomla! 3.5.1,
changing
-- `alias` to `alias`(100)
--

ALTER TABLE `#__menu` ADD UNIQUE `idx_client_id_parent_id_alias_language` (
`client_id` , `parent_id` , `alias`(100) , `language`
);updates/mysql/2.5.0-2012-01-10.sql000064400000000120151161446600011554
0ustar00ALTER TABLE `#__updates` ADD COLUMN `infourl` text NOT NULL AFTER
`detailsurl`;
updates/mysql/2.5.0-2012-01-14.sql000064400000000136151161446600011567
0ustar00ALTER TABLE `#__languages` CHANGE `sitename` `sitename` VARCHAR(
1024 ) NOT NULL DEFAULT '';

updates/mysql/2.5.1-2012-01-26.sql000064400000002403151161446600011572
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(314, 'mod_version', 'module', 'mod_version',
'', 1, 1, 1, 0,
'{"legacy":false,"name":"mod_version","type":"module","creationDate":"January
2012","author":"Joomla!
Project","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"2.5.0","description":"MOD_VERSION_XML_DESCRIPTION","group":""}',
'{"format":"short","product":"1","cache":"0"}',
'', '', 0, '0000-00-00 00:00:00', 0, 0);

INSERT INTO `#__modules` (`title`, `note`, `content`, `ordering`,
`position`, `checked_out`, `checked_out_time`, `publish_up`,
`publish_down`, `published`, `module`, `access`, `showtitle`, `params`,
`client_id`, `language`) VALUES
('Joomla Version', '', '', 1,
'footer', 0, '0000-00-00 00:00:00', '0000-00-00
00:00:00', '0000-00-00 00:00:00', 1,
'mod_version', 3, 1,
'{"format":"short","product":"1","layout":"_:default","moduleclass_sfx":"","cache":"0"}',
1, '*');

INSERT INTO `#__modules_menu` (`moduleid`, `menuid`) VALUES 
(LAST_INSERT_ID(),
0);updates/mysql/2.5.2-2012-03-05.sql000064400000000046151161446600011573
0ustar00# Dummy SQL file to set schema
versionupdates/mysql/2.5.3-2012-03-13.sql000064400000000046151161446600011573
0ustar00# Dummy SQL file to set schema
versionupdates/mysql/2.5.4-2012-03-18.sql000064400000002306151161446600011602
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(28, 'com_joomlaupdate', 'component',
'com_joomlaupdate', '', 1, 1, 0, 1,
'{"legacy":false,"name":"com_joomlaupdate","type":"component","creationDate":"February
2012","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"2.5.2","description":"COM_JOOMLAUPDATE_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0);

INSERT INTO `#__menu` (`menutype`, `title`, `alias`, `note`, `path`,
`link`, `type`, `published`, `parent_id`, `level`, `component_id`,
`ordering`, `checked_out`, `checked_out_time`, `browserNav`, `access`,
`img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`,
`client_id`) VALUES
('menu', 'com_joomlaupdate', 'Joomla!
Update', '', 'Joomla! Update',
'index.php?option=com_joomlaupdate', 'component', 0, 1,
1, 28, 0, 0, '0000-00-00 00:00:00', 0, 0,
'class:joomlaupdate', 0, '', 41, 42, 0, '*',
1);
updates/mysql/2.5.4-2012-03-19.sql000064400000000536151161446600011606
0ustar00ALTER TABLE `#__languages` ADD COLUMN `access` integer unsigned NOT
NULL default 0 AFTER `published`;

ALTER TABLE `#__languages` ADD INDEX `idx_access` (`access`);

UPDATE `#__categories` SET `extension` = 'com_users.notes' WHERE
`extension` = 'com_users';

UPDATE `#__extensions` SET `enabled` = '1' WHERE `protected` =
'1' AND `type` <> 'plugin';
updates/mysql/2.5.5.sql000064400000000565151161446600010560 0ustar00ALTER
TABLE `#__redirect_links` ADD COLUMN `hits` INT(10) UNSIGNED NOT NULL
DEFAULT '0' AFTER `comment`;
ALTER TABLE `#__users` ADD COLUMN `lastResetTime` datetime NOT NULL DEFAULT
'0000-00-00 00:00:00' COMMENT 'Date of last password
reset';
ALTER TABLE `#__users` ADD COLUMN `resetCount` int(11) NOT NULL DEFAULT
'0' COMMENT 'Count of password resets since
lastResetTime';updates/mysql/2.5.6.sql000064400000000071151161446600010551
0ustar00# Placeholder file for database changes for version
2.5.6updates/mysql/2.5.7.sql000064400000001005151161446600010550
0ustar00INSERT INTO `#__update_sites` (`name`, `type`, `location`,
`enabled`, `last_check_timestamp`) VALUES('Accredited Joomla!
Translations','collection','https://update.joomla.org/language/translationlist.xml',1,0);INSERT
INTO `#__update_sites_extensions` (`update_site_id`, `extension_id`)
VALUES(LAST_INSERT_ID(),600);UPDATE  `#__assets` SET name=REPLACE( name,
'com_user.notes.category','com_users.category' 
);UPDATE  `#__categories` SET extension=REPLACE( extension,
'com_user.notes.category','com_users.category' 
);updates/mysql/3.0.0.sql000064400000021503151161446600010542 0ustar00ALTER
TABLE `#__users` DROP INDEX `usertype`;
ALTER TABLE `#__session` DROP INDEX `whosonline`;

DROP TABLE IF EXISTS `#__update_categories`;

ALTER TABLE `#__contact_details` DROP `imagepos`;
ALTER TABLE `#__content` DROP COLUMN `title_alias`;
ALTER TABLE `#__content` DROP COLUMN `sectionid`;
ALTER TABLE `#__content` DROP COLUMN `mask`;
ALTER TABLE `#__content` DROP COLUMN `parentid`;
ALTER TABLE `#__newsfeeds` DROP COLUMN `filename`;
ALTER TABLE `#__menu` DROP COLUMN `ordering`;
ALTER TABLE `#__session` DROP COLUMN `usertype`;
ALTER TABLE `#__users` DROP COLUMN `usertype`;
ALTER TABLE `#__updates` DROP COLUMN `categoryid`;

UPDATE `#__extensions` SET protected = 0 WHERE
`name` = 'com_search' OR
`name` = 'mod_articles_archive' OR
`name` = 'mod_articles_latest' OR
`name` = 'mod_banners' OR
`name` = 'mod_feed' OR
`name` = 'mod_footer' OR
`name` = 'mod_users_latest' OR
`name` = 'mod_articles_category' OR
`name` = 'mod_articles_categories' OR
`name` = 'plg_content_pagebreak' OR
`name` = 'plg_content_pagenavigation' OR
`name` = 'plg_content_vote' OR
`name` = 'plg_editors_tinymce' OR
`name` = 'plg_system_p3p' OR
`name` = 'plg_user_contactcreator' OR
`name` = 'plg_user_profile';

DELETE FROM `#__extensions` WHERE `extension_id` = 800;

ALTER TABLE `#__assets` ENGINE=InnoDB;
ALTER TABLE `#__associations` ENGINE=InnoDB;
ALTER TABLE `#__banners` ENGINE=InnoDB;
ALTER TABLE `#__banner_clients` ENGINE=InnoDB;
ALTER TABLE `#__banner_tracks` ENGINE=InnoDB;
ALTER TABLE `#__categories` ENGINE=InnoDB;
ALTER TABLE `#__contact_details` ENGINE=InnoDB;
ALTER TABLE `#__content` ENGINE=InnoDB;
ALTER TABLE `#__content_frontpage` ENGINE=InnoDB;
ALTER TABLE `#__content_rating` ENGINE=InnoDB;
ALTER TABLE `#__core_log_searches` ENGINE=InnoDB;
ALTER TABLE `#__extensions` ENGINE=InnoDB;
ALTER TABLE `#__finder_filters` ENGINE=InnoDB;
ALTER TABLE `#__finder_links` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_terms0` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_terms1` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_terms2` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_terms3` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_terms4` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_terms5` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_terms6` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_terms7` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_terms8` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_terms9` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_termsa` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_termsb` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_termsc` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_termsd` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_termse` ENGINE=InnoDB;
ALTER TABLE `#__finder_links_termsf` ENGINE=InnoDB;
ALTER TABLE `#__finder_taxonomy` ENGINE=InnoDB;
ALTER TABLE `#__finder_taxonomy_map` ENGINE=InnoDB;
ALTER TABLE `#__finder_terms` ENGINE=InnoDB;
ALTER TABLE `#__finder_terms_common` ENGINE=InnoDB;
ALTER TABLE `#__finder_types` ENGINE=InnoDB;
ALTER TABLE `#__languages` ENGINE=InnoDB;
ALTER TABLE `#__menu` ENGINE=InnoDB;
ALTER TABLE `#__menu_types` ENGINE=InnoDB;
ALTER TABLE `#__messages` ENGINE=InnoDB;
ALTER TABLE `#__messages_cfg` ENGINE=InnoDB;
ALTER TABLE `#__modules` ENGINE=InnoDB;
ALTER TABLE `#__modules_menu` ENGINE=InnoDB;
ALTER TABLE `#__newsfeeds` ENGINE=InnoDB;
ALTER TABLE `#__overrider` ENGINE=InnoDB;
ALTER TABLE `#__redirect_links` ENGINE=InnoDB;
ALTER TABLE `#__schemas` ENGINE=InnoDB;
ALTER TABLE `#__session` ENGINE=InnoDB;
ALTER TABLE `#__template_styles` ENGINE=InnoDB;
ALTER TABLE `#__updates` ENGINE=InnoDB;
ALTER TABLE `#__update_sites` ENGINE=InnoDB;
ALTER TABLE `#__update_sites_extensions` ENGINE=InnoDB;
ALTER TABLE `#__users` ENGINE=InnoDB;
ALTER TABLE `#__usergroups` ENGINE=InnoDB;
ALTER TABLE `#__user_notes` ENGINE=InnoDB;
ALTER TABLE `#__user_profiles` ENGINE=InnoDB;
ALTER TABLE `#__user_usergroup_map` ENGINE=InnoDB;
ALTER TABLE `#__viewlevels` ENGINE=InnoDB;

ALTER TABLE `#__newsfeeds` ADD COLUMN `description` text NOT NULL;
ALTER TABLE `#__newsfeeds` ADD COLUMN `version` int(10) unsigned NOT NULL
DEFAULT '1';
ALTER TABLE `#__newsfeeds` ADD COLUMN `hits` int(10) unsigned NOT NULL
DEFAULT '0';
ALTER TABLE `#__newsfeeds` ADD COLUMN `images` text NOT NULL;
ALTER TABLE `#__contact_details` ADD COLUMN `version` int(10) unsigned NOT
NULL DEFAULT '1';
ALTER TABLE `#__contact_details` ADD COLUMN `hits` int(10) unsigned NOT
NULL DEFAULT '0';
ALTER TABLE `#__banners` ADD COLUMN `created_by` int(10) unsigned NOT NULL
DEFAULT '0';
ALTER TABLE `#__banners` ADD COLUMN `created_by_alias` varchar(255) NOT
NULL DEFAULT '';
ALTER TABLE `#__banners` ADD COLUMN `modified` datetime NOT NULL DEFAULT
'0000-00-00 00:00:00';
ALTER TABLE `#__banners` ADD COLUMN `modified_by` int(10) unsigned NOT NULL
DEFAULT '0';
ALTER TABLE `#__banners` ADD COLUMN `version` int(10) unsigned NOT NULL
DEFAULT '1';
ALTER TABLE `#__categories` ADD COLUMN `version` int(10) unsigned NOT NULL
DEFAULT '1';
UPDATE  `#__assets` SET name=REPLACE( name,
'com_user.notes.category','com_users.category'  );
UPDATE  `#__categories` SET extension=REPLACE( extension,
'com_user.notes.category','com_users.category'  );

ALTER TABLE `#__finder_terms` ADD COLUMN `language` char(3) NOT NULL
DEFAULT '';
ALTER TABLE `#__finder_tokens` ADD COLUMN `language` char(3) NOT NULL
DEFAULT '';
ALTER TABLE `#__finder_tokens_aggregate` ADD COLUMN `language` char(3) NOT
NULL DEFAULT '';

INSERT INTO `#__extensions`
	(`name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`,
`protected`, `manifest_cache`, `params`, `custom_data`, `system_data`,
`checked_out`, `checked_out_time`, `ordering`, `state`)
	VALUES
	('isis', 'template', 'isis', '',
1, 1, 1, 0,
'{"name":"isis","type":"template","creationDate":"3\\/30\\/2012","author":"Kyle
Ledbetter","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters, Inc. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"","version":"1.0","description":"TPL_ISIS_XML_DESCRIPTION","group":""}',
'{"templateColor":"","logoFile":""}',
'', '', 0, '0000-00-00 00:00:00', 0, 0),
	('protostar', 'template', 'protostar',
'', 0, 1, 1, 0,
'{"name":"protostar","type":"template","creationDate":"4\\/30\\/2012","author":"Kyle
Ledbetter","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters, Inc. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"","version":"1.0","description":"TPL_PROTOSTAR_XML_DESCRIPTION","group":""}',
'{"templateColor":"","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"}',
'', '', 0, '0000-00-00 00:00:00', 0, 0),
	('beez3', 'template', 'beez3', '',
0, 1, 1, 0,
'{"legacy":false,"name":"beez3","type":"template","creationDate":"25
November 2009","author":"Angie
Radtke","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters, Inc. All rights
reserved.","authorEmail":"a.radtke@derauftritt.de","authorUrl":"http:\\/\\/www.der-auftritt.de","version":"1.6.0","description":"TPL_BEEZ3_XML_DESCRIPTION","group":""}',
'{"wrapperSmall":"53","wrapperLarge":"72","sitetitle":"","sitedescription":"","navposition":"center","templatecolor":"nature"}',
'', '', 0, '0000-00-00 00:00:00', 0, 0);

INSERT INTO `#__template_styles` (`template`, `client_id`, `home`, `title`,
`params`) VALUES
	('protostar', 0, '0', 'protostar - Default',
'{"templateColor":"","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"}'),
	('isis', 1, '1', 'isis - Default',
'{"templateColor":"","logoFile":""}'),
	('beez3', 0, '0', 'beez3 - Default',
'{"wrapperSmall":53,"wrapperLarge":72,"logo":"","sitetitle":"","sitedescription":"","navposition":"center","bootstrap":"","templatecolor":"nature","headerImage":"","backgroundcolor":"#eee"}');

UPDATE `#__template_styles`
SET home = (CASE WHEN (SELECT count FROM (SELECT count(`id`) AS count
			FROM `#__template_styles`
			WHERE home = '1'
			AND client_id = 1) as c) = 0
			THEN '1'
			ELSE '0'
			END)
WHERE template = 'isis'
AND home != '1';

UPDATE `#__template_styles`
SET home = 0
WHERE template = 'bluestork';

INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`,
`folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`,
`params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`,
`ordering`, `state`) VALUES
(315, 'mod_stats_admin', 'module',
'mod_stats_admin', '', 1, 1, 1, 0,
'{"name":"mod_stats_admin","type":"module","creationDate":"September
2012","author":"Joomla!
Project","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_STATS_XML_DESCRIPTION","group":""}',
'{"serverinfo":"0","siteinfo":"0","counter":"0","increase":"0","cache":"1","cache_time":"900","cachemode":"static"}',
'', '', 0, '0000-00-00 00:00:00', 0, 0);

UPDATE `#__update_sites`
SET location =
'https://update.joomla.org/language/translationlist_3.xml'
WHERE location =
'https://update.joomla.org/language/translationlist.xml'
AND name = 'Accredited Joomla! Translations';
updates/mysql/3.0.1.sql000064400000000071151161446600010540 0ustar00#
Placeholder file for database changes for version
3.0.1updates/mysql/3.0.2.sql000064400000000071151161446600010541 0ustar00#
Placeholder file for database changes for version
3.0.2updates/mysql/3.0.3.sql000064400000000156151161446600010546
0ustar00ALTER TABLE `#__associations` CHANGE `id` `id` INT(11) NOT NULL
COMMENT 'A reference to the associated
item.';updates/mysql/3.1.0.sql000064400000043241151161446600010546
0ustar00--
-- Table structure for table `#__content_types`
--

CREATE TABLE IF NOT EXISTS `#__content_types` (
  `type_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `type_title` varchar(255) NOT NULL DEFAULT '',
  `type_alias` varchar(255) NOT NULL DEFAULT '',
  `table` varchar(255) NOT NULL DEFAULT '',
  `rules` text NOT NULL,
   `field_mappings` text NOT NULL,
   `router` varchar(255) NOT NULL  DEFAULT '',
  PRIMARY KEY (`type_id`),
  KEY `idx_alias` (`type_alias`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10000;

--
-- Dumping data for table `#__content_types`
--

INSERT INTO `#__content_types` (`type_id`, `type_title`, `type_alias`,
`table`, `rules`, `field_mappings`,`router`) VALUES
(1, 'Article', 'com_content.article',
'{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"attribs",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"asset_id"}], "special":
[{"fulltext":"fulltext"}]}','ContentHelperRoute::getArticleRoute'),
(2, 'Contact', 'com_contact.contact',
'{"special":{"dbtable":"#__contact_details","key":"id","type":"Contact","prefix":"ContactTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"image",
"core_urls":"webpage",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"null"}], "special":
[{"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}]}','ContactHelperRoute::getContactRoute'),
(3, 'Newsfeed', 'com_newsfeeds.newsfeed',
'{"special":{"dbtable":"#__newsfeeds","key":"id","type":"Newsfeed","prefix":"NewsfeedsTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"link",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"null"}], "special":
[{"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}]}','NewsfeedsHelperRoute::getNewsfeedRoute'),
(4, 'User', 'com_users.user',
'{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerdate","core_modified_time":"lastvisitDate","core_body":"null",
"core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null",
"core_params":"params",
"core_featured":"null",
"core_metadata":"null",
"core_language":"null",
"core_images":"null",
"core_urls":"null",
"core_version":"null",
"core_ordering":"null",
"core_metakey":"null",
"core_metadesc":"null",
"core_catid":"null",
"core_xreference":"null",
"asset_id":"null"}], "special":
[{}]}','UsersHelperRoute::getUserRoute'),
(5, 'Article Category', 'com_content.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}], "special":
[{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}]}','ContentHelperRoute::getCategoryRoute'),
(6, 'Contact Category', 'com_contact.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}], "special":
[{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}]}','ContactHelperRoute::getCategoryRoute'),
(7, 'Newsfeeds Category', 'com_newsfeeds.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}], "special":
[{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}]}','NewsfeedsHelperRoute::getCategoryRoute'),
(8, 'Tag', 'com_tags.tag',
'{"special":{"dbtable":"#__tags","key":"tag_id","type":"Tag","prefix":"TagsTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"null",
"core_xreference":"null",
"asset_id":"null"}], "special":
[{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}]}','TagsHelperRoute::getTagRoute');

CREATE TABLE IF NOT EXISTS `#__contentitem_tag_map` (
  `type_alias` varchar(255) NOT NULL DEFAULT '',
  `core_content_id` int(10) unsigned NOT NULL COMMENT 'PK from the
core content table',
  `content_item_id` int(11) NOT NULL COMMENT 'PK from the content type
table',
  `tag_id` int(10) unsigned NOT NULL COMMENT 'PK from the tag
table',
  `tag_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE
CURRENT_TIMESTAMP COMMENT 'Date of most recent save for this
tag-item',
  `type_id` mediumint(8) NOT NULL COMMENT 'PK from the content_type
table',
  UNIQUE KEY `uc_ItemnameTagid` (`type_id`,`content_item_id`,`tag_id`),
  KEY `idx_tag_type` (`tag_id`,`type_id`),
  KEY `idx_date_id` (`tag_date`,`tag_id`),
  KEY `idx_tag` (`tag_id`),
  KEY `idx_type` (`type_id`),
  KEY `idx_core_content_id` (`core_content_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Maps items from content
tables to tags';

CREATE TABLE IF NOT EXISTS `#__tags` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` int(10) unsigned NOT NULL DEFAULT '0',
  `lft` int(11) NOT NULL DEFAULT '0',
  `rgt` int(11) NOT NULL DEFAULT '0',
  `level` int(10) unsigned NOT NULL DEFAULT '0',
  `path` varchar(255) NOT NULL DEFAULT '',
  `title` varchar(255) NOT NULL,
  `alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT
'',
  `note` varchar(255) NOT NULL DEFAULT '',
  `description` mediumtext NOT NULL,
  `published` tinyint(1) NOT NULL DEFAULT '0',
  `checked_out` int(11) unsigned NOT NULL DEFAULT '0',
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `access` int(10) unsigned NOT NULL DEFAULT '0',
  `params` text NOT NULL,
  `metadesc` varchar(1024) NOT NULL COMMENT 'The meta description for
the page.',
  `metakey` varchar(1024) NOT NULL COMMENT 'The meta keywords for the
page.',
  `metadata` varchar(2048) NOT NULL COMMENT 'JSON encoded metadata
properties.',
  `created_user_id` int(10) unsigned NOT NULL DEFAULT '0',
  `created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_by_alias` varchar(255) NOT NULL DEFAULT '',
  `modified_user_id` int(10) unsigned NOT NULL DEFAULT '0',
  `modified_time` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `images` text NOT NULL,
  `urls` text NOT NULL,
  `hits` int(10) unsigned NOT NULL DEFAULT '0',
  `language` char(7) NOT NULL,
  `version` int(10) unsigned NOT NULL DEFAULT '1',
  `publish_up` datetime NOT NULL default '0000-00-00 00:00:00',
  `publish_down` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `tag_idx` (`published`,`access`),
  KEY `idx_access` (`access`),
  KEY `idx_checkout` (`checked_out`),
  KEY `idx_path` (`path`),
  KEY `idx_left_right` (`lft`,`rgt`),
  KEY `idx_alias` (`alias`),
  KEY `idx_language` (`language`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8;

--
-- Dumping data for table `#__tags`
--

INSERT INTO `#__tags` (`id`, `parent_id`, `lft`, `rgt`, `level`, `path`,
`title`, `alias`, `note`, `description`, `published`, `checked_out`,
`checked_out_time`, `access`, `params`, `metadesc`, `metakey`, `metadata`,
`created_user_id`, `created_time`,`created_by_alias`, `modified_user_id`,
`modified_time`, `images`, `urls`, `hits`, `language`, `version`)
VALUES (1, 0, 0, 1, 0, '', 'ROOT', 'root',
'', '', 1, 0, '0000-00-00 00:00:00', 1,
'{}', '', '', '', '',
'2011-01-01 00:00:01','', 0, '0000-00-00
00:00:00', '', '',  0, '*', 1);

--
-- Table structure for table `#__ucm_base`
--

CREATE TABLE IF NOT EXISTS `#__ucm_base` (
  `ucm_id` int(10) unsigned NOT NULL,
  `ucm_item_id` int(10) NOT NULL,
  `ucm_type_id` int(11) NOT NULL,
  `ucm_language_id` int(11) NOT NULL,
  PRIMARY KEY (`ucm_id`),
  KEY `idx_ucm_item_id` (`ucm_item_id`),
  KEY `idx_ucm_type_id` (`ucm_type_id`),
  KEY `idx_ucm_language_id` (`ucm_language_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `#__ucm_content` (
  `core_content_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `core_type_alias`  varchar(255) NOT NULL DEFAULT '' COMMENT
'FK to the content types table',
  `core_title` varchar(255) NOT NULL,
  `core_alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
DEFAULT '',
  `core_body` mediumtext NOT NULL,
  `core_state` tinyint(1) NOT NULL DEFAULT '0',
  `core_checked_out_time`  varchar(255) NOT NULL DEFAULT '',
  `core_checked_out_user_id` int(10) unsigned NOT NULL DEFAULT
'0',
  `core_access` int(10) unsigned NOT NULL DEFAULT '0',
  `core_params` text NOT NULL,
  `core_featured` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `core_metadata` varchar(2048) NOT NULL COMMENT 'JSON encoded
metadata properties.',
  `core_created_user_id` int(10) unsigned  NOT NULL DEFAULT '0',
  `core_created_by_alias` varchar(255) NOT NULL DEFAULT '',
  `core_created_time` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `core_modified_user_id` int(10) unsigned NOT NULL DEFAULT '0'
COMMENT 'Most recent user that modified',
  `core_modified_time` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `core_language` char(7) NOT NULL,
  `core_publish_up` datetime NOT NULL,
  `core_publish_down` datetime NOT NULL,
  `core_content_item_id` int(10) unsigned COMMENT 'ID from the
individual type table',
  `asset_id` int(10) unsigned COMMENT 'FK to the #__assets
table.',
  `core_images` text NOT NULL,
  `core_urls` text NOT NULL,
  `core_hits` int(10) unsigned NOT NULL DEFAULT '0',
  `core_version` int(10) unsigned NOT NULL DEFAULT '1',
  `core_ordering` int(11) NOT NULL DEFAULT '0',
  `core_metakey` text NOT NULL,
  `core_metadesc` text NOT NULL,
  `core_catid` int(10) unsigned NOT NULL DEFAULT '0',
  `core_xreference` varchar(50) NOT NULL COMMENT 'A reference to
enable linkages to external data sets.',
  `core_type_id` int(10) unsigned,
  PRIMARY KEY (`core_content_id`),
  KEY `tag_idx` (`core_state`,`core_access`),
  KEY `idx_access` (`core_access`),
  KEY `idx_alias` (`core_alias`),
  KEY `idx_language` (`core_language`),
  KEY `idx_title` (`core_title`),
  KEY `idx_modified_time` (`core_modified_time`),
  KEY `idx_created_time` (`core_created_time`),
  KEY `idx_content_type` (`core_type_alias`),
  KEY `idx_core_modified_user_id` (`core_modified_user_id`),
  KEY `idx_core_checked_out_user_id` (`core_checked_out_user_id`),
  KEY `idx_core_created_user_id` (`core_created_user_id`),
  KEY `idx_core_type_id` (`core_type_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Contains core content
data in name spaced fields';

INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`,
`folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`,
`params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`,
`ordering`, `state`) VALUES
(29, 'com_tags', 'component', 'com_tags',
'', 1, 1, 1, 1,
'{"legacy":false,"name":"com_tags","type":"component","creationDate":"March
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_TAGS_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(316, 'mod_tags_popular', 'module',
'mod_tags_popular', '', 0, 1, 1, 0,
'{"name":"mod_tags_popular","type":"module","creationDate":"January
2013","author":"Joomla!
Project","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.0","description":"MOD_TAGS_POPULAR_XML_DESCRIPTION","group":""}',
'{"maximum":"5","timeframe":"alltime","owncache":"1"}',
'', '', 0, '0000-00-00 00:00:00', 0, 0),
(317, 'mod_tags_similar', 'module',
'mod_tags_similar', '', 0, 1, 1, 0,
'{"name":"mod_tags_similar","type":"module","creationDate":"January
2013","author":"Joomla!
Project","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.0","description":"MOD_TAGS_SIMILAR_XML_DESCRIPTION","group":""}',
'{"maximum":"5","matchtype":"any","owncache":"1"}',
'', '', 0, '0000-00-00 00:00:00', 0, 0),
(447, 'plg_finder_tags', 'plugin', 'tags',
'finder', 0, 1, 1, 0,
'{"name":"plg_finder_tags","type":"plugin","creationDate":"February
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_FINDER_TAGS_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0);

INSERT INTO `#__menu` (`menutype`, `title`, `alias`, `note`, `path`,
`link`, `type`, `published`, `parent_id`, `level`, `component_id`,
`checked_out`, `checked_out_time`, `browserNav`, `access`, `img`,
`template_style_id`, `params`, `lft`, `rgt`, `home`, `language`,
`client_id`) VALUES
('main', 'com_tags', 'Tags', '',
'Tags', 'index.php?option=com_tags',
'component', 0, 1, 1, 29, 0, '0000-00-00 00:00:00', 0,
1, 'class:tags', 0, '', 45, 46, 0, '', 1);
updates/mysql/3.1.1.sql000064400000000071151161446600010541 0ustar00#
Placeholder file for database changes for version
3.1.1updates/mysql/3.1.2.sql000064400000021415151161446600010547
0ustar00UPDATE `#__content_types` SET `table` =
'{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE `type_title` = 'Article';
UPDATE `#__content_types` SET `table` =
'{"special":{"dbtable":"#__contact_details","key":"id","type":"Contact","prefix":"ContactTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE `type_title` = 'Contact';
UPDATE `#__content_types` SET `table` =
'{"special":{"dbtable":"#__newsfeeds","key":"id","type":"Newsfeed","prefix":"NewsfeedsTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE `type_title` = 'Newsfeed';
UPDATE `#__content_types` SET `table` =
'{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE `type_title` = 'User';
UPDATE `#__content_types` SET `table` =
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE `type_title` = 'Article Category';
UPDATE `#__content_types` SET `table` =
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE `type_title` = 'Contact Category';
UPDATE `#__content_types` SET `table` =
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE `type_title` = 'Newsfeeds Category';
UPDATE `#__content_types` SET `table` =
'{"special":{"dbtable":"#__tags","key":"tag_id","type":"Tag","prefix":"TagsTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE `type_title` = 'Tag';
UPDATE `#__content_types` SET `field_mappings` =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"attribs",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"asset_id"}, "special":
{"fulltext":"fulltext"}}' WHERE `type_title` =
'Article';
UPDATE `#__content_types` SET `field_mappings` =
'{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"image",
"core_urls":"webpage",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"null"}, "special":
{"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}}'
WHERE `type_title` = 'Contact';
UPDATE `#__content_types` SET `field_mappings` =
'{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"link",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"null"}, "special":
{"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}}'
WHERE `type_title` = 'Newsfeed';
UPDATE `#__content_types` SET `field_mappings` =
'{"common":{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerdate","core_modified_time":"lastvisitDate","core_body":"null",
"core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null",
"core_params":"params",
"core_featured":"null",
"core_metadata":"null",
"core_language":"null",
"core_images":"null",
"core_urls":"null",
"core_version":"null",
"core_ordering":"null",
"core_metakey":"null",
"core_metadesc":"null",
"core_catid":"null",
"core_xreference":"null",
"asset_id":"null"}, "special": {}}'
WHERE `type_title` = 'User';
UPDATE `#__content_types` SET `field_mappings` =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}'
WHERE `type_title` = 'Article Category';
UPDATE `#__content_types` SET `field_mappings` =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}'
WHERE `type_title` = 'Contact Category';
UPDATE `#__content_types` SET `field_mappings` =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}'
WHERE `type_title` = 'Newsfeeds Category';
UPDATE `#__content_types` SET `field_mappings` =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"null",
"core_xreference":"null",
"asset_id":"null"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}}'
WHERE `type_title` = 'Tag';
updates/mysql/3.1.3.sql000064400000000072151161446600010544 0ustar00#
Placeholder file for database changes for version 3.1.3
updates/mysql/3.1.4.sql000064400000000554151161446600010552 0ustar00INSERT
INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`,
`client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`,
`custom_data`, `system_data`, `checked_out`, `checked_out_time`,
`ordering`, `state`) VALUES
(104, 'IDNA Convert', 'library',
'idna_convert', '', 0, 1, 1, 1, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.1.5.sql000064400000000072151161446600010546 0ustar00#
Placeholder file for database changes for version 3.1.5
updates/mysql/3.2.0.sql000064400000046665151161446600010564 0ustar00/* Core
3.2 schema updates */

ALTER TABLE `#__content_types` ADD COLUMN `content_history_options`
VARCHAR(5120) NOT NULL COMMENT 'JSON string for com_contenthistory
options';

UPDATE `#__content_types` SET `content_history_options` =
'{"formFile":"administrator\\/components\\/com_content\\/models\\/forms\\/article.xml",
"hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by",
"modified", "checked_out",
"checked_out_time", "version",
"hits"],"convertToInt":["publish_up",
"publish_down", "featured",
"ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}
]}' WHERE `type_alias` = 'com_content.article';
UPDATE `#__content_types` SET `content_history_options` =
'{"formFile":"administrator\\/components\\/com_contact\\/models\\/forms\\/contact.xml","hideFields":["default_con","checked_out","checked_out_time","version","xreference"],"ignoreChanges":["modified_by",
"modified", "checked_out",
"checked_out_time", "version",
"hits"],"convertToInt":["publish_up",
"publish_down", "featured", "ordering"],
"displayLookup":[
{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}
] }' WHERE `type_alias` = 'com_contact.contact';
UPDATE `#__content_types` SET `content_history_options` =
'{"formFile":"administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml",
"hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"],
"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time", "version", "hits",
"path"],"convertToInt":["publish_up",
"publish_down"],
"displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'
WHERE `type_alias` IN ('com_content.category',
'com_contact.category', 'com_newsfeeds.category');
UPDATE `#__content_types` SET `content_history_options` =
'{"formFile":"administrator\\/components\\/com_newsfeeds\\/models\\/forms\\/newsfeed.xml","hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by",
"modified", "checked_out",
"checked_out_time", "version",
"hits"],"convertToInt":["publish_up",
"publish_down", "featured",
"ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'
WHERE `type_alias` = 'com_newsfeeds.newsfeed';
UPDATE `#__content_types` SET `content_history_options` =
'{"formFile":"administrator\\/components\\/com_tags\\/models\\/forms\\/tag.xml",
"hideFields":["checked_out","checked_out_time","version",
"lft", "rgt", "level", "path",
"urls", "publish_up",
"publish_down"],"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time", "version", "hits",
"path"],"convertToInt":["publish_up",
"publish_down"],
"displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},
{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'
WHERE `type_alias` = 'com_tags.tag';

INSERT INTO `#__content_types` (`type_title`, `type_alias`, `table`,
`rules`, `field_mappings`, `router`, `content_history_options`) VALUES
('Banner', 'com_banners.banner',
'{"special":{"dbtable":"#__banners","key":"id","type":"Banner","prefix":"BannersTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description",
"core_hits":"null","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"link",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"null",
"asset_id":"null"},
"special":{"imptotal":"imptotal",
"impmade":"impmade",
"clicks":"clicks",
"clickurl":"clickurl",
"custombannercode":"custombannercode",
"cid":"cid",
"purchase_type":"purchase_type",
"track_impressions":"track_impressions",
"track_clicks":"track_clicks"}}', '',
'{"formFile":"administrator\\/components\\/com_banners\\/models\\/forms\\/banner.xml",
"hideFields":["checked_out","checked_out_time","version",
"reset"],"ignoreChanges":["modified_by",
"modified", "checked_out",
"checked_out_time", "version", "imptotal",
"impmade", "reset"],
"convertToInt":["publish_up", "publish_down",
"ordering"],
"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},
{"sourceColumn":"cid","targetTable":"#__banner_clients","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'),
('Banners Category', 'com_banners.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}',
'',
'{"formFile":"administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml",
"hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"],
"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time", "version", "hits",
"path"], "convertToInt":["publish_up",
"publish_down"],
"displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'),
('Banner Client', 'com_banners.client',
'{"special":{"dbtable":"#__banner_clients","key":"id","type":"Client","prefix":"BannersTable"}}',
'', '', '',
'{"formFile":"administrator\\/components\\/com_banners\\/models\\/forms\\/client.xml",
"hideFields":["checked_out","checked_out_time"],
"ignoreChanges":["checked_out",
"checked_out_time"], "convertToInt":[],
"displayLookup":[]}'),
('User Notes', 'com_users.note',
'{"special":{"dbtable":"#__user_notes","key":"id","type":"Note","prefix":"UsersTable"}}',
'', '', '',
'{"formFile":"administrator\\/components\\/com_users\\/models\\/forms\\/note.xml",
"hideFields":["checked_out","checked_out_time",
"publish_up",
"publish_down"],"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time"],
"convertToInt":["publish_up",
"publish_down"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},
{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'),
('User Notes Category', 'com_users.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"},
"special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}',
'',
'{"formFile":"administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml",
"hideFields":["checked_out","checked_out_time","version","lft","rgt","level","path","extension"],
"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time", "version", "hits",
"path"], "convertToInt":["publish_up",
"publish_down"],
"displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}');

UPDATE `#__extensions` SET `params` =
'{"template_positions_display":"0","upload_limit":"2","image_formats":"gif,bmp,jpg,jpeg,png","source_formats":"txt,less,ini,xml,js,php,css","font_formats":"woff,ttf,otf","compressed_formats":"zip"}'
WHERE `extension_id` = 20;
UPDATE `#__extensions` SET `params` =
'{"lineNumbers":"1","lineWrapping":"1","matchTags":"1","matchBrackets":"1","marker-gutter":"1","autoCloseTags":"1","autoCloseBrackets":"1","autoFocus":"1","theme":"default","tabmode":"indent"}'
WHERE `extension_id` = 410;

INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`,
`folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`,
`params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`,
`ordering`, `state`) VALUES
(30, 'com_contenthistory', 'component',
'com_contenthistory', '', 1, 1, 1, 0,
'{"name":"com_contenthistory","type":"component","creationDate":"May
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.\\n\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.2.0","description":"COM_CONTENTHISTORY_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(31, 'com_ajax', 'component', 'com_ajax',
'', 1, 1, 1, 0,
'{"name":"com_ajax","type":"component","creationDate":"August
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.2.0","description":"COM_AJAX_DESC","group":""}',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(32, 'com_postinstall', 'component',
'com_postinstall', '', 1, 1, 1, 1, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(105, 'FOF', 'library', 'fof', '',
0, 1, 1, 1,
'{"legacy":false,"name":"FOF","type":"library","creationDate":"2013-10-08","author":"Nicholas
K. Dionysopoulos \/ Akeeba
Ltd","copyright":"(C)2011-2013 Nicholas K.
Dionysopoulos","authorEmail":"nicholas@akeebabackup.com","authorUrl":"https:\/\/www.akeebabackup.com","version":"2.1.rc4","description":"Framework-on-Framework
(FOF) - A rapid component development framework for
Joomla!","group":""}', '{}',
'', '', 0, '0000-00-00 00:00:00', 0, 0),
(448, 'plg_twofactorauth_totp', 'plugin',
'totp', 'twofactorauth', 0, 0, 1, 0,
'{"name":"plg_twofactorauth_totp","type":"plugin","creationDate":"August
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.2.0","description":"PLG_TWOFACTORAUTH_TOTP_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(449, 'plg_authentication_cookie', 'plugin',
'cookie', 'authentication', 0, 1, 1, 0,
'{"name":"plg_authentication_cookie","type":"plugin","creationDate":"July
2013","author":"Joomla!
Project","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_AUTH_COOKIE_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(450, 'plg_twofactorauth_yubikey', 'plugin',
'yubikey', 'twofactorauth', 0, 0, 1, 0,
'{"name":"plg_twofactorauth_yubikey","type":"plugin","creationDate":"Se[ptember
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.2.0","description":"PLG_TWOFACTORAUTH_YUBIKEY_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0);

INSERT INTO `#__menu` (`menutype`, `title`, `alias`, `note`, `path`,
`link`, `type`, `published`, `parent_id`, `level`, `component_id`,
`checked_out`, `checked_out_time`, `browserNav`, `access`, `img`,
`template_style_id`, `params`, `lft`, `rgt`, `home`, `language`,
`client_id`) VALUES
('main', 'com_postinstall', 'Post-installation
messages', '', 'Post-installation messages',
'index.php?option=com_postinstall', 'component', 0, 1,
1, 32, 0, '0000-00-00 00:00:00', 0, 1,
'class:postinstall', 0, '', 45, 46, 0, '*',
1);

ALTER TABLE `#__modules` ADD COLUMN `asset_id` INT(10) UNSIGNED NOT NULL
DEFAULT '0' COMMENT 'FK to the #__assets table.' AFTER
`id`;

CREATE TABLE `#__postinstall_messages` (
  `postinstall_message_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `extension_id` bigint(20) NOT NULL DEFAULT '700' COMMENT
'FK to #__extensions',
  `title_key` varchar(255) NOT NULL DEFAULT '' COMMENT 'Lang
key for the title',
  `description_key` varchar(255) NOT NULL DEFAULT '' COMMENT
'Lang key for description',
  `action_key` varchar(255) NOT NULL DEFAULT '',
  `language_extension` varchar(255) NOT NULL DEFAULT
'com_postinstall' COMMENT 'Extension holding lang
keys',
  `language_client_id` tinyint(3) NOT NULL DEFAULT '1',
  `type` varchar(10) NOT NULL DEFAULT 'link' COMMENT
'Message type - message, link, action',
  `action_file` varchar(255) DEFAULT '' COMMENT 'RAD URI to
the PHP file containing action method',
  `action` varchar(255) DEFAULT '' COMMENT 'Action method
name or URL',
  `condition_file` varchar(255) DEFAULT NULL COMMENT 'RAD URI to file
holding display condition method',
  `condition_method` varchar(255) DEFAULT NULL COMMENT 'Display
condition method, must return boolean',
  `version_introduced` varchar(50) NOT NULL DEFAULT '3.2.0'
COMMENT 'Version when this message was introduced',
  `enabled` tinyint(3) NOT NULL DEFAULT '1',
  PRIMARY KEY (`postinstall_message_id`)
) DEFAULT CHARSET=utf8;

INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`) VALUES
(700, 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_TITLE',
'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_BODY',
'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_ACTION',
'plg_twofactorauth_totp', 1, 'action',
'site://plugins/twofactorauth/totp/postinstall/actions.php',
'twofactorauth_postinstall_action',
'site://plugins/twofactorauth/totp/postinstall/actions.php',
'twofactorauth_postinstall_condition', '3.2.0', 1),
(700, 'COM_CPANEL_MSG_EACCELERATOR_TITLE',
'COM_CPANEL_MSG_EACCELERATOR_BODY',
'COM_CPANEL_MSG_EACCELERATOR_BUTTON', 'com_cpanel', 1,
'action',
'admin://components/com_admin/postinstall/eaccelerator.php',
'admin_postinstall_eaccelerator_action',
'admin://components/com_admin/postinstall/eaccelerator.php',
'admin_postinstall_eaccelerator_condition', '3.2.0',
1);

CREATE TABLE IF NOT EXISTS `#__ucm_history` (
  `version_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `ucm_item_id` int(10) unsigned NOT NULL,
  `ucm_type_id` int(10) unsigned NOT NULL,
  `version_note` varchar(255) NOT NULL DEFAULT '' COMMENT
'Optional version name',
  `save_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `editor_user_id` int(10) unsigned NOT NULL DEFAULT '0',
  `character_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'Number of characters in this version.',
  `sha1_hash` varchar(50) NOT NULL DEFAULT '' COMMENT 'SHA1
hash of the version_data column.',
  `version_data` mediumtext NOT NULL COMMENT 'json-encoded string of
version data',
  `keep_forever` tinyint(4) NOT NULL DEFAULT '0' COMMENT
'0=auto delete; 1=keep',
  PRIMARY KEY (`version_id`),
  KEY `idx_ucm_item_id` (`ucm_type_id`,`ucm_item_id`),
  KEY `idx_save_date` (`save_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ALTER TABLE `#__users` ADD COLUMN `otpKey` varchar(1000) NOT NULL DEFAULT
'' COMMENT 'Two factor authentication encrypted keys';
ALTER TABLE `#__users` ADD COLUMN `otep` varchar(1000) NOT NULL DEFAULT
'' COMMENT 'One time emergency passwords';

CREATE TABLE IF NOT EXISTS `#__user_keys` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` varchar(255) NOT NULL,
  `token` varchar(255) NOT NULL,
  `series` varchar(255) NOT NULL,
  `invalid` tinyint(4) NOT NULL,
  `time` varchar(200) NOT NULL,
  `uastring` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `series` (`series`),
  UNIQUE KEY `series_2` (`series`),
  UNIQUE KEY `series_3` (`series`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/* Update bad params for two cpanel modules */

UPDATE `#__modules` SET `params` = REPLACE(`params`,
'"bootstrap_size":"1"',
'"bootstrap_size":"0"') WHERE `id` IN (3,4);
updates/mysql/3.2.1.sql000064400000000150151161446600010540 0ustar00DELETE
FROM `#__postinstall_messages` WHERE `title_key` =
'PLG_USER_JOOMLA_POSTINSTALL_STRONGPW_TITLE';
updates/mysql/3.2.2-2013-12-22.sql000064400000000235151161446600011571
0ustar00ALTER TABLE `#__update_sites` ADD COLUMN `extra_query`
VARCHAR(1000) DEFAULT '';
ALTER TABLE `#__updates` ADD COLUMN `extra_query` VARCHAR(1000) DEFAULT
'';
updates/mysql/3.2.2-2013-12-28.sql000064400000000254151161446600011600
0ustar00UPDATE `#__menu` SET `component_id` = (SELECT `extension_id` FROM
`#__extensions` WHERE `element` = 'com_joomlaupdate') WHERE
`link` = 'index.php?option=com_joomlaupdate';
updates/mysql/3.2.2-2014-01-08.sql000064400000000563151161446600011600
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(403, 'plg_content_contact', 'plugin',
'contact', 'content', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 1,
0);updates/mysql/3.2.2-2014-01-15.sql000064400000000745151161446600011600
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`) VALUES
(700, 'COM_CPANEL_MSG_PHPVERSION_TITLE',
'COM_CPANEL_MSG_PHPVERSION_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/phpversion.php',
'admin_postinstall_phpversion_condition', '3.2.2', 1);
updates/mysql/3.2.2-2014-01-18.sql000064400000000146151161446600011576
0ustar00/* Update updates version length */
ALTER TABLE `#__updates` MODIFY `version` varchar(32) DEFAULT '';
updates/mysql/3.2.2-2014-01-23.sql000064400000001140151161446600011565
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(106, 'PHPass', 'library', 'phpass',
'', 0, 1, 1, 1,
'{"legacy":false,"name":"PHPass","type":"library","creationDate":"2004-2006","author":"Solar
Designer","authorEmail":"solar@openwall.com","authorUrl":"http:\/\/www.openwall.com/phpass","version":"0.3","description":"LIB_PHPASS_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.2.3-2014-02-20.sql000064400000000256151161446600011573
0ustar00UPDATE `#__extensions` ext1, `#__extensions` ext2 SET ext1.`params`
=  ext2.`params` WHERE ext1.`name` = 'plg_authentication_cookie'
AND ext2.`name` = 'plg_system_remember';
updates/mysql/3.3.0-2014-02-16.sql000064400000000224151161446600011571
0ustar00ALTER TABLE `#__users` ADD COLUMN `requireReset` tinyint(4) NOT
NULL DEFAULT 0 COMMENT 'Require user to reset password on next
login' AFTER `otep`;
updates/mysql/3.3.0-2014-04-02.sql000064400000000632151161446600011571
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(451, 'plg_search_tags', 'plugin', 'tags',
'search', 0, 0, 1, 0, '',
'{"search_limit":"50","show_tagged_items":"1"}',
'', '', 0, '0000-00-00 00:00:00', 0, 0);

updates/mysql/3.3.4-2014-08-03.sql000064400000000125151161446600011577
0ustar00ALTER TABLE `#__user_profiles` CHANGE `profile_value`
`profile_value` TEXT NOT NULL;
updates/mysql/3.3.6-2014-09-30.sql000064400000000727151161446600011612
0ustar00INSERT INTO `#__update_sites` (`name`, `type`, `location`,
`enabled`) VALUES
('Joomla! Update Component Update Site', 'extension',
'https://update.joomla.org/core/extensions/com_joomlaupdate.xml',
1);

INSERT INTO `#__update_sites_extensions` (`update_site_id`, `extension_id`)
VALUES
((SELECT `update_site_id` FROM `#__update_sites` WHERE `name` =
'Joomla! Update Component Update Site'), (SELECT `extension_id`
FROM `#__extensions` WHERE `name` = 'com_joomlaupdate'));
updates/mysql/3.4.0-2014-08-24.sql000064400000000735151161446600011606
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`)
VALUES
(700, 'COM_CPANEL_MSG_HTACCESS_TITLE',
'COM_CPANEL_MSG_HTACCESS_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/htaccess.php',
'admin_postinstall_htaccess_condition', '3.4.0', 1);
updates/mysql/3.4.0-2014-09-01.sql000064400000001347151161446600011602
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(801, 'weblinks', 'package', 'pkg_weblinks',
'', 0, 1, 1, 0, '', '', '',
'', 0, '0000-00-00 00:00:00', 0, 0);

INSERT INTO `#__update_sites` (`name`, `type`, `location`, `enabled`)
VALUES
('Weblinks Update Site', 'extension',
'https://raw.githubusercontent.com/joomla-extensions/weblinks/master/manifest.xml',
1);

INSERT INTO `#__update_sites_extensions` (`update_site_id`, `extension_id`)
VALUES
((SELECT `update_site_id` FROM `#__update_sites` WHERE `name` =
'Weblinks Update Site'), 801);
updates/mysql/3.4.0-2014-09-16.sql000064400000000455151161446600011607
0ustar00ALTER TABLE `#__redirect_links` ADD COLUMN `header` smallint(3) NOT
NULL DEFAULT 301;
--
-- The following statement has to be disabled because it conflicts with
-- a later change added with Joomla! 3.5.0 for long URLs in this table
--
-- ALTER TABLE `#__redirect_links` MODIFY `new_url` varchar(255);
updates/mysql/3.4.0-2014-10-20.sql000064400000000070151161446600011563
0ustar00DELETE FROM `#__extensions` WHERE `extension_id` = 100;
updates/mysql/3.4.0-2014-12-03.sql000064400000000244151161446600011571
0ustar00UPDATE `#__extensions` SET `protected` = '0' WHERE `name`
= 'plg_editors-xtd_article' AND `type` = "plugin" AND
`element` = "article" AND `folder` = "editors-xtd";
updates/mysql/3.4.0-2015-01-21.sql000064400000000577151161446600011601
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`) VALUES
(700, 'COM_CPANEL_MSG_ROBOTS_TITLE',
'COM_CPANEL_MSG_ROBOTS_BODY', '',
'com_cpanel', 1, 'message', '', '',
'', '', '3.3.0',
1);updates/mysql/3.4.0-2015-02-26.sql000064400000001001151161446600011566
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`) VALUES
(700, 'COM_CPANEL_MSG_LANGUAGEACCESS340_TITLE',
'COM_CPANEL_MSG_LANGUAGEACCESS340_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/languageaccess340.php',
'admin_postinstall_languageaccess340_condition',
'3.4.1', 1);
updates/mysql/3.5.0-2015-07-01.sql000064400000000224151161446600011573
0ustar00-- ALTER TABLE `#__session` MODIFY `session_id` varchar(191) NOT
NULL DEFAULT '';
ALTER TABLE `#__user_keys` MODIFY `series` varchar(191) NOT NULL;
updates/mysql/3.5.0-2015-10-13.sql000064400000000572151161446600011576
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(453, 'plg_editors-xtd_module', 'plugin',
'module', 'editors-xtd', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.5.0-2015-10-26.sql000064400000000167151161446600011602
0ustar00ALTER TABLE `#__contentitem_tag_map` DROP INDEX `idx_tag`;
ALTER TABLE `#__contentitem_tag_map` DROP INDEX `idx_type`;
updates/mysql/3.5.0-2015-10-30.sql000064400000000171151161446600011570
0ustar00UPDATE `#__menu` SET `title` = 'com_contact_contacts'
WHERE `client_id` = 1 AND `level` = 2 AND `title` =
'com_contact';
updates/mysql/3.5.0-2015-11-04.sql000064400000000730151161446600011573
0ustar00DELETE FROM `#__menu` WHERE `title` = 'com_messages_read'
AND `client_id` = 1;

INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`,
`folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`,
`params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`,
`ordering`, `state`) VALUES
(452, 'plg_system_updatenotification', 'plugin',
'updatenotification', 'system', 0, 1, 1, 0,
'', '', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.5.0-2015-11-05.sql000064400000001552151161446600011577
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(454, 'plg_system_stats', 'plugin', 'stats',
'system', 0, 1, 1, 0, '', '', '',
'', 0, '0000-00-00 00:00:00', 0, 0);

INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`)
VALUES
(700, 'COM_CPANEL_MSG_STATS_COLLECTION_TITLE',
'COM_CPANEL_MSG_STATS_COLLECTION_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/statscollection.php',
'admin_postinstall_statscollection_condition', '3.5.0',
1);
updates/mysql/3.5.0-2016-02-26.sql000064400000001077151161446600011605
0ustar00--
-- Create a table for UTF-8 Multibyte (utf8mb4) conversion for MySQL in
-- order to check if the conversion has been performed and if not show a
-- message about database problem in the database schema view. 
--
-- The value of `converted` can be 0 (not converted yet after update),
-- 1 (converted to utf8), or 2 (converted to utf8mb4).
--

CREATE TABLE IF NOT EXISTS `#__utf8_conversion` (
  `converted` tinyint(4) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

INSERT INTO `#__utf8_conversion` (`converted`) VALUES (0);
updates/mysql/3.5.0-2016-03-01.sql000064400000001052151161446600011570
0ustar00ALTER TABLE `#__redirect_links` DROP INDEX `idx_link_old`;
ALTER TABLE `#__redirect_links` MODIFY `old_url` VARCHAR(2048) NOT NULL;

--
-- The following statement had to be modified for 3.6.0 by removing the
-- NOT NULL, which was wrong because not consistent with new install.
-- See also 3.6.0-2016-04-06.sql for updating 3.5.0 or 3.5.1
--
ALTER TABLE `#__redirect_links` MODIFY `new_url` VARCHAR(2048);

ALTER TABLE `#__redirect_links` MODIFY `referer` VARCHAR(2048) NOT NULL;
ALTER TABLE `#__redirect_links` ADD INDEX `idx_old_url` (`old_url`(100));
updates/mysql/3.5.1-2016-03-25.sql000064400000000200151161446600011571
0ustar00--
-- Make #__user_keys.user_id fit to #__users.username
--

ALTER TABLE `#__user_keys` MODIFY `user_id` varchar(150) NOT NULL;
updates/mysql/3.5.1-2016-03-29.sql000064400000000432151161446600011604
0ustar00--
-- Reset UTF-8 Multibyte (utf8mb4) or UTF-8 conversion status
-- to force a new conversion when updating from version 3.5.0
--

UPDATE `#__utf8_conversion` SET `converted` = 0
 WHERE (SELECT COUNT(*) FROM `#__schemas` WHERE `extension_id`=700 AND
`version_id` LIKE '3.5.0%') =
1;updates/mysql/3.6.0-2016-04-01.sql000064400000001651151161446610011600
0ustar00-- Rename update site names
UPDATE `#__update_sites` SET `name` = 'Joomla! Core' WHERE `name`
= 'Joomla Core' AND `type` = 'collection';
UPDATE `#__update_sites` SET `name` = 'Joomla! Extension
Directory' WHERE `name` = 'Joomla Extension Directory' AND
`type` = 'collection';

UPDATE `#__update_sites` SET `location` =
'https://update.joomla.org/core/list.xml' WHERE `name` =
'Joomla! Core' AND `type` = 'collection';
UPDATE `#__update_sites` SET `location` =
'https://update.joomla.org/jed/list.xml' WHERE `name` =
'Joomla! Extension Directory' AND `type` =
'collection';
UPDATE `#__update_sites` SET `location` =
'https://update.joomla.org/language/translationlist_3.xml' WHERE
`name` = 'Accredited Joomla! Translations' AND `type` =
'collection';
UPDATE `#__update_sites` SET `location` =
'https://update.joomla.org/core/extensions/com_joomlaupdate.xml'
WHERE `name` = 'Joomla! Update Component Update Site' AND `type`
= 'extension';
updates/mysql/3.6.0-2016-04-06.sql000064400000000100151161446610011571
0ustar00ALTER TABLE `#__redirect_links` MODIFY `new_url` VARCHAR(2048);
updates/mysql/3.6.0-2016-04-08.sql000064400000001335151161446610011606
0ustar00-- Insert the missing en-GB package extension.
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`,
`folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`,
`params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`,
`ordering`, `state`)
 VALUES (802, 'English (United Kingdom)', 'package',
'pkg_en-GB', '', 0, 1, 1, 1, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);

-- Change update site extension id to the new extension.
UPDATE `#__update_sites_extensions`
SET `extension_id` = 802
WHERE `update_site_id` IN (
			SELECT `update_site_id`
			FROM `#__update_sites`
			WHERE `name` = 'Accredited Joomla! Translations'
			AND `type` = 'collection'
			)
AND `extension_id` = 600;
updates/mysql/3.6.0-2016-04-09.sql000064400000000173151161446610011606
0ustar00--
-- Add ACL check for to #__menu_types
--

ALTER TABLE `#__menu_types` ADD COLUMN `asset_id` INT(11) NOT NULL AFTER
`id`;updates/mysql/3.6.0-2016-05-06.sql000064400000001362151161446610011605
0ustar00DELETE FROM `#__extensions` WHERE `type` = 'library' AND
`element` = 'simplepie';
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`,
`folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`,
`params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`,
`ordering`, `state`) VALUES
(455, 'plg_installer_packageinstaller', 'plugin',
'packageinstaller', 'installer', 0, 1, 1, 1,
'', '', '', '', 0, '0000-00-00
00:00:00', 1, 0),
(456, 'plg_installer_folderinstaller', 'plugin',
'folderinstaller', 'installer', 0, 1, 1, 1,
'', '', '', '', 0, '0000-00-00
00:00:00', 2, 0),
(457, 'plg_installer_urlinstaller', 'plugin',
'urlinstaller', 'installer', 0, 1, 1, 1, '',
'', '', '', 0, '0000-00-00
00:00:00', 3, 0);
updates/mysql/3.6.0-2016-06-01.sql000064400000000126151161446610011576
0ustar00UPDATE `#__extensions` SET `protected` = 1, `enabled` = 1  WHERE
`name` = 'com_ajax';
updates/mysql/3.6.0-2016-06-05.sql000064400000000176151161446610011607
0ustar00--
-- Add ACL check for to #__languages
--

ALTER TABLE `#__languages` ADD COLUMN `asset_id` INT(11) NOT NULL AFTER
`lang_id`;updates/mysql/3.6.3-2016-08-15.sql000064400000000175151161446610011614
0ustar00--
-- Increasing size of the URL field in com_newsfeeds
--

ALTER TABLE `#__newsfeeds` MODIFY `link` VARCHAR(2048) NOT NULL;
updates/mysql/3.6.3-2016-08-16.sql000064400000001352151161446610011613
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`) VALUES
(700,
'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME',
'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_BODY',
'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_ACTION',
'plg_system_updatenotification', 1, 'action',
'site://plugins/system/updatenotification/postinstall/updatecachetime.php',
'updatecachetime_postinstall_action',
'site://plugins/system/updatenotification/postinstall/updatecachetime.php',
'updatecachetime_postinstall_condition', '3.6.3',
1);updates/mysql/3.7.0-2016-08-06.sql000064400000000610151161446610011604
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(458, 'plg_quickicon_phpversioncheck', 'plugin',
'phpversioncheck', 'quickicon', 0, 1, 1, 1,
'', '', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.7.0-2016-08-22.sql000064400000000566151161446610011614
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(459, 'plg_editors-xtd_menu', 'plugin',
'menu', 'editors-xtd', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.7.0-2016-08-29.sql000064400000013147151161446610011622
0ustar00CREATE TABLE IF NOT EXISTS `#__fields` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `asset_id` int(10) unsigned NOT NULL DEFAULT 0,
  `context` varchar(255) NOT NULL DEFAULT '',
  `group_id` int(10) unsigned NOT NULL DEFAULT 0,
  `title` varchar(255) NOT NULL DEFAULT '',
  `name` varchar(255) NOT NULL DEFAULT '',
  `label` varchar(255) NOT NULL DEFAULT '',
  `default_value` text,
  `type` varchar(255) NOT NULL DEFAULT 'text',
  `note` varchar(255) NOT NULL DEFAULT '',
  `description` text NOT NULL,
  `state` tinyint(1) NOT NULL DEFAULT '0',
  `required` tinyint(1) NOT NULL DEFAULT '0',
  `checked_out` int(11) NOT NULL DEFAULT '0',
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `params` text NOT NULL,
  `fieldparams` text NOT NULL,
  `language` char(7) NOT NULL DEFAULT '',
  `created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_user_id` int(10) unsigned NOT NULL DEFAULT '0',
  `modified_time` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `modified_by` int(10) unsigned NOT NULL DEFAULT '0',
  `access` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `idx_checkout` (`checked_out`),
  KEY `idx_state` (`state`),
  KEY `idx_created_user_id` (`created_user_id`),
  KEY `idx_access` (`access`),
  KEY `idx_context` (`context`(191)),
  KEY `idx_language` (`language`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `#__fields_categories` (
  `field_id` int(11) NOT NULL DEFAULT 0,
  `category_id` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`field_id`,`category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `#__fields_groups` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `asset_id` int(10) unsigned NOT NULL DEFAULT 0,
  `context` varchar(255) NOT NULL DEFAULT '',
  `title` varchar(255) NOT NULL DEFAULT '',
  `note` varchar(255) NOT NULL DEFAULT '',
  `description` text NOT NULL,
  `state` tinyint(1) NOT NULL DEFAULT '0',
  `checked_out` int(11) NOT NULL DEFAULT '0',
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `language` char(7) NOT NULL DEFAULT '',
  `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_by` int(10) unsigned NOT NULL DEFAULT '0',
  `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `modified_by` int(10) unsigned NOT NULL DEFAULT '0',
  `access` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `idx_checkout` (`checked_out`),
  KEY `idx_state` (`state`),
  KEY `idx_created_by` (`created_by`),
  KEY `idx_access` (`access`),
  KEY `idx_context` (`context`(191)),
  KEY `idx_language` (`language`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `#__fields_values` (
  `field_id` int(10) unsigned NOT NULL,
  `item_id` varchar(255) NOT NULL COMMENT 'Allow references to items
which have strings as ids, eg. none db systems.',
  `value` text,
  KEY `idx_field_id` (`field_id`),
  KEY `idx_item_id` (`item_id`(191))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`,
`folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`,
`params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`,
`ordering`, `state`) VALUES
(33, 'com_fields', 'component', 'com_fields',
'', 1, 1, 1, 0, '', '', '',
'', 0, '0000-00-00 00:00:00', 0, 0);
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`,
`folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`,
`params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`,
`ordering`, `state`) VALUES
(461, 'plg_system_fields', 'plugin',
'fields', 'system', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(462, 'plg_fields_calendar', 'plugin',
'calendar', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(463, 'plg_fields_checkboxes', 'plugin',
'checkboxes', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(464, 'plg_fields_color', 'plugin', 'color',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '0000-00-00 00:00:00', 0, 0),
(465, 'plg_fields_editor', 'plugin',
'editor', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(466, 'plg_fields_imagelist', 'plugin',
'imagelist', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(467, 'plg_fields_integer', 'plugin',
'integer', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(468, 'plg_fields_list', 'plugin', 'list',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '0000-00-00 00:00:00', 0, 0),
(469, 'plg_fields_media', 'plugin', 'media',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '0000-00-00 00:00:00', 0, 0),
(470, 'plg_fields_radio', 'plugin', 'radio',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '0000-00-00 00:00:00', 0, 0),
(471, 'plg_fields_sql', 'plugin', 'sql',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '0000-00-00 00:00:00', 0, 0),
(472, 'plg_fields_text', 'plugin', 'text',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '0000-00-00 00:00:00', 0, 0),
(473, 'plg_fields_textarea', 'plugin',
'textarea', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(474, 'plg_fields_url', 'plugin', 'url',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '0000-00-00 00:00:00', 0, 0),
(475, 'plg_fields_user', 'plugin', 'user',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '0000-00-00 00:00:00', 0, 0),
(476, 'plg_fields_usergrouplist', 'plugin',
'usergrouplist', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.7.0-2016-09-29.sql000064400000000777151161446610011630
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`)
VALUES
(700, 'COM_CPANEL_MSG_JOOMLA40_PRE_CHECKS_TITLE',
'COM_CPANEL_MSG_JOOMLA40_PRE_CHECKS_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/joomla40checks.php',
'admin_postinstall_joomla40checks_condition', '3.7.0',
1);
updates/mysql/3.7.0-2016-10-01.sql000064400000000574151161446610011601
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(460, 'plg_editors-xtd_contact', 'plugin',
'contact', 'editors-xtd', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.7.0-2016-10-02.sql000064400000000116151161446610011572
0ustar00ALTER TABLE `#__session` MODIFY `client_id` tinyint(3) unsigned
DEFAULT NULL;
updates/mysql/3.7.0-2016-11-04.sql000064400000000127151161446610011577
0ustar00ALTER TABLE `#__extensions` CHANGE `enabled` `enabled` TINYINT(3)
NOT NULL DEFAULT
'0';updates/mysql/3.7.0-2016-11-19.sql000064400000000247151161446610011610
0ustar00ALTER TABLE `#__menu_types` ADD COLUMN `client_id` int(11) NOT NULL
DEFAULT 0;

UPDATE `#__menu` SET `published` = 1 WHERE `menutype` = 'main' OR
`menutype` = 'menu';
updates/mysql/3.7.0-2016-11-21.sql000064400000000156151161446610011600
0ustar00-- Replace language image UNIQUE index for a normal INDEX.
ALTER TABLE `#__languages` DROP INDEX `idx_image`;
updates/mysql/3.7.0-2016-11-24.sql000064400000000645151161446610011606
0ustar00ALTER TABLE `#__extensions` ADD COLUMN `package_id` int(11) NOT
NULL DEFAULT 0 COMMENT 'Parent package ID for extensions installed as
a package.' AFTER `extension_id`;

UPDATE `#__extensions` AS `e1`
INNER JOIN (SELECT `extension_id` FROM `#__extensions` WHERE `type` =
'package' AND `element` = 'pkg_en-GB') AS `e2`
SET `e1`.`package_id` = `e2`.`extension_id`
WHERE `e1`.`type`= 'language' AND `e1`.`element` =
'en-GB';
updates/mysql/3.7.0-2016-11-27.sql000064400000000175151161446610011607
0ustar00-- Normalize modules content field with other db systems. Add
default value.
ALTER TABLE `#__modules` MODIFY `content` text;
updates/mysql/3.7.0-2017-01-08.sql000064400000003136151161446610011606
0ustar00-- Normalize ucm_content_table default values.
ALTER TABLE `#__ucm_content` MODIFY `core_title` varchar(400) NOT NULL
DEFAULT '';
ALTER TABLE `#__ucm_content` MODIFY `core_alias` varchar(400) CHARACTER SET
utf8mb4 COLLATE utf8mb4_bin  NOT NULL DEFAULT '';
ALTER TABLE `#__ucm_content` MODIFY `core_body` mediumtext;
ALTER TABLE `#__ucm_content` MODIFY `core_checked_out_time` varchar(255)
NOT NULL DEFAULT '0000-00-00 00:00:00';
ALTER TABLE `#__ucm_content` MODIFY `core_params` text;
ALTER TABLE `#__ucm_content` MODIFY `core_metadata` varchar(2048) NOT NULL
DEFAULT '' COMMENT 'JSON encoded metadata properties.';
ALTER TABLE `#__ucm_content` MODIFY `core_language` char(7) NOT NULL
DEFAULT '';
ALTER TABLE `#__ucm_content` MODIFY `core_publish_up` datetime NOT NULL
DEFAULT '0000-00-00 00:00:00';
ALTER TABLE `#__ucm_content` MODIFY `core_publish_down` datetime NOT NULL
DEFAULT '0000-00-00 00:00:00';
ALTER TABLE `#__ucm_content` MODIFY `core_content_item_id` int(10) unsigned
NOT NULL DEFAULT 0 COMMENT 'ID from the individual type table';
ALTER TABLE `#__ucm_content` MODIFY `asset_id` int(10) unsigned NOT NULL
DEFAULT 0 COMMENT 'FK to the #__assets table.';
ALTER TABLE `#__ucm_content` MODIFY `core_images` text;
ALTER TABLE `#__ucm_content` MODIFY `core_urls` text;
ALTER TABLE `#__ucm_content` MODIFY `core_metakey` text;
ALTER TABLE `#__ucm_content` MODIFY `core_metadesc` text;
ALTER TABLE `#__ucm_content` MODIFY `core_xreference` varchar(50) NOT NULL
DEFAULT '' COMMENT 'A reference to enable linkages to
external data sets.';
ALTER TABLE `#__ucm_content` MODIFY `core_type_id` int(10) unsigned NOT
NULL DEFAULT 0;
updates/mysql/3.7.0-2017-01-09.sql000064400000001252151161446610011604
0ustar00-- Normalize categories table default values.
ALTER TABLE `#__categories` MODIFY `title` varchar(255) NOT NULL DEFAULT
'';
ALTER TABLE `#__categories` MODIFY `description` mediumtext;
ALTER TABLE `#__categories` MODIFY `params` text;
ALTER TABLE `#__categories` MODIFY `metadesc` varchar(1024) NOT NULL
DEFAULT '' COMMENT 'The meta description for the
page.';
ALTER TABLE `#__categories` MODIFY `metakey` varchar(1024) NOT NULL DEFAULT
'' COMMENT 'The meta keywords for the page.';
ALTER TABLE `#__categories` MODIFY `metadata` varchar(2048) NOT NULL
DEFAULT '' COMMENT 'JSON encoded metadata properties.';
ALTER TABLE `#__categories` MODIFY `language` char(7) NOT NULL DEFAULT
'';
updates/mysql/3.7.0-2017-01-15.sql000064400000000565151161446610011607
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(34, 'com_associations', 'component',
'com_associations', '', 1, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.7.0-2017-01-17.sql000064400000004707151161446610011613
0ustar00-- Sync menutype for admin menu and set client_id correct

-- Note: This file had to be modified with Joomla 3.7.3 because the
-- original version made site menus disappear if there were menu types
-- "main" or "menu" defined for the site.

-- Step 1: If there is any user-defined menu and menu type "main"
for the site
-- (client_id = 0), then change the menu type for the menu, any module and
the
-- menu type to something very likely not being used yet and just within
the
-- max. length of 24 characters.
UPDATE `#__menu`
   SET `menutype` = 'main_is_reserved_133C585'
 WHERE `client_id` = 0
   AND `menutype` = 'main'
   AND (SELECT COUNT(`id`) FROM `#__menu_types` WHERE `client_id` = 0 AND
`menutype` = 'main') > 0;

UPDATE `#__modules`
   SET `params` =
REPLACE(`params`,'"menutype":"main"','"menutype":"main_is_reserved_133C585"')
 WHERE `client_id` = 0
   AND (SELECT COUNT(`id`) FROM `#__menu_types` WHERE `client_id` = 0 AND
`menutype` = 'main') > 0;

UPDATE `#__menu_types`
   SET `menutype` = 'main_is_reserved_133C585'
 WHERE `client_id` = 0 
   AND `menutype` = 'main';

-- Step 2: What remains now are the main menu items, possibly with wrong
-- client_id if there was nothing hit by step 1 because there was no record
in
-- the menu types table with client_id = 0.
UPDATE `#__menu`
   SET `client_id` = 1
 WHERE `menutype` = 'main';

-- Step 3: If we have menu items for the admin using menutype =
"menu" and
-- having correct client_id = 1, we can be sure they belong to the admin
menu
-- and so rename the menutype.
UPDATE `#__menu`
   SET `menutype` = 'main'
 WHERE `client_id` = 1 
   AND `menutype` = 'menu';

-- Step 4: If there is no user-defined menu type "menu" for the
site, we can
-- assume that any menu items for that menu type belong to the admin.
-- Fix the client_id for those as it was done with the original version of
this
-- schema update script here.
UPDATE `#__menu`
   SET `menutype` = 'main',
       `client_id` = 1
 WHERE `menutype` = 'menu'
   AND (SELECT COUNT(`id`) FROM `#__menu_types` WHERE `client_id` = 0 AND
`menutype` = 'menu') = 0;

-- Step 5: For the standard admin menu items of menutype "main"
there is no record
-- in the menutype table on a clean Joomla installation. If there is one,
it is a
-- mistake and it should be deleted. This is also the case with menu type
"menu"
-- for the admin, for which we changed the menutype of the menu items in
step 3.
DELETE FROM `#__menu_types`
 WHERE `client_id` = 1
   AND `menutype` IN ('main', 'menu');
updates/mysql/3.7.0-2017-01-31.sql000064400000000562151161446610011602
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(477, 'plg_content_fields', 'plugin',
'fields', 'content', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.7.0-2017-02-02.sql000064400000000572151161446610011602
0ustar00INSERT INTO `#__extensions` (`extension_id`, `name`, `type`,
`element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(478, 'plg_editors-xtd_fields', 'plugin',
'fields', 'editors-xtd', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.7.0-2017-02-15.sql000064400000000205151161446610011577
0ustar00-- Normalize redirect_links table default values.
ALTER TABLE `#__redirect_links` MODIFY `comment` varchar(255) NOT NULL
DEFAULT '';
updates/mysql/3.7.0-2017-02-17.sql000064400000001312151161446610011601
0ustar00-- Normalize contact_details table default values.
ALTER TABLE `#__contact_details` MODIFY `name` varchar(255) NOT NULL;
ALTER TABLE `#__contact_details` MODIFY `alias` varchar(400) CHARACTER SET
utf8mb4 COLLATE utf8mb4_bin NOT NULL;
ALTER TABLE `#__contact_details` MODIFY `sortname1` varchar(255) NOT NULL
DEFAULT '';
ALTER TABLE `#__contact_details` MODIFY `sortname2` varchar(255) NOT NULL
DEFAULT '';
ALTER TABLE `#__contact_details` MODIFY `sortname3` varchar(255) NOT NULL
DEFAULT '';
ALTER TABLE `#__contact_details` MODIFY `language` varchar(7) NOT NULL;
ALTER TABLE `#__contact_details` MODIFY `xreference` varchar(50) NOT NULL
DEFAULT '' COMMENT 'A reference to enable linkages to
external data sets.';
updates/mysql/3.7.0-2017-03-03.sql000064400000000506151161446610011601
0ustar00ALTER TABLE `#__languages` MODIFY `asset_id` int(10) unsigned NOT
NULL DEFAULT 0;
ALTER TABLE `#__menu_types` MODIFY `asset_id` int(10) unsigned NOT NULL
DEFAULT 0;

ALTER TABLE  `#__content` MODIFY `xreference` varchar(50) NOT NULL DEFAULT
'';
ALTER TABLE  `#__newsfeeds` MODIFY `xreference` varchar(50) NOT NULL
DEFAULT '';
updates/mysql/3.7.0-2017-03-09.sql000064400000001373151161446610011612
0ustar00UPDATE `#__categories` SET `published` = 1 WHERE `alias` =
'root';
UPDATE `#__categories` AS `c` INNER JOIN (
	SELECT c2.id, CASE WHEN MIN(p.published) > 0 THEN MAX(p.published) ELSE
MIN(p.published) END AS newPublished
	FROM `#__categories` AS `c2`
	INNER JOIN `#__categories` AS `p` ON p.lft <= c2.lft AND c2.rgt <=
p.rgt
	GROUP BY c2.id) c2
ON c.id = c2.id
SET published = c2.newPublished;

UPDATE `#__menu` SET `published` = 1 WHERE `alias` = 'root';
UPDATE `#__menu` AS `c` INNER JOIN (
	SELECT c2.id, CASE WHEN MIN(p.published) > 0 THEN MAX(p.published) ELSE
MIN(p.published) END AS newPublished
	FROM `#__menu` AS `c2`
	INNER JOIN `#__menu` AS `p` ON p.lft <= c2.lft AND c2.rgt <= p.rgt
	GROUP BY c2.id) c2
ON c.id = c2.id
SET published = c2.newPublished;
updates/mysql/3.7.0-2017-03-19.sql000064400000000071151161446610011605
0ustar00ALTER TABLE `#__finder_links` MODIFY `description` text;
updates/mysql/3.7.0-2017-04-10.sql000064400000001144151161446610011577
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`)
VALUES
(700, 'TPL_HATHOR_MESSAGE_POSTINSTALL_TITLE',
'TPL_HATHOR_MESSAGE_POSTINSTALL_BODY',
'TPL_HATHOR_MESSAGE_POSTINSTALL_ACTION', 'tpl_hathor',
1, 'action',
'admin://templates/hathor/postinstall/hathormessage.php',
'hathormessage_postinstall_action',
'admin://templates/hathor/postinstall/hathormessage.php',
'hathormessage_postinstall_condition', '3.7.0',
1);updates/mysql/3.7.0-2017-04-19.sql000064400000000250151161446610011605
0ustar00-- Set integer field default values.
UPDATE `#__extensions` SET `params` =
'{"multiple":"0","first":"1","last":"100","step":"1"}'
WHERE `name` = 'plg_fields_integer';

updates/mysql/3.7.3-2017-06-03.sql000064400000000223151161446610011603
0ustar00ALTER TABLE `#__menu` MODIFY `checked_out_time` datetime NOT NULL
DEFAULT '0000-00-00 00:00:00' COMMENT 'The time the menu
item was checked out.';
updates/mysql/3.7.4-2017-07-05.sql000064400000000134151161446610011610
0ustar00DELETE FROM `#__postinstall_messages` WHERE `title_key` =
'COM_CPANEL_MSG_PHPVERSION_TITLE';updates/mysql/3.8.0-2017-07-28.sql000064400000000125151161446610011612
0ustar00ALTER TABLE `#__fields_groups` ADD COLUMN `params` TEXT  NOT NULL 
AFTER `ordering`;
updates/mysql/3.8.0-2017-07-31.sql000064400000001003151161446610011600
0ustar00INSERT INTO `#__extensions`
(`extension_id`, `package_id`, `name`, `type`, `element`, `folder`,
`client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`,
`custom_data`, `system_data`, `checked_out`, `checked_out_time`,
`ordering`, `state`)
VALUES
  (318, 0, 'mod_sampledata', 'module',
'mod_sampledata', '', 1, 0, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0),
  (479, 0, 'plg_sampledata_blog', 'plugin',
'blog', 'sampledata', 0, 0, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.8.2-2017-10-14.sql000064400000000156151161446610011605
0ustar00--
-- Add index for alias check #__content
--

ALTER TABLE `#__content` ADD INDEX `idx_alias` (`alias`(191));
updates/mysql/3.8.4-2018-01-16.sql000064400000000144151161446610011607
0ustar00ALTER TABLE `#__user_keys` DROP INDEX `series_2`;
ALTER TABLE `#__user_keys` DROP INDEX `series_3`;
updates/mysql/3.8.6-2018-02-14.sql000064400000002017151161446610011611
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(480, 0, 'plg_system_sessiongc', 'plugin',
'sessiongc', 'system', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);

INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`)
VALUES
(700, 'PLG_PLG_RECAPTCHA_VERSION_1_POSTINSTALL_TITLE',
'PLG_PLG_RECAPTCHA_VERSION_1_POSTINSTALL_BODY',
'PLG_PLG_RECAPTCHA_VERSION_1_POSTINSTALL_ACTION',
'plg_captcha_recaptcha', 1, 'action',
'site://plugins/captcha/recaptcha/postinstall/actions.php',
'recaptcha_postinstall_action',
'site://plugins/captcha/recaptcha/postinstall/actions.php',
'recaptcha_postinstall_condition', '3.8.6', 1);
updates/mysql/3.8.8-2018-05-18.sql000064400000001021151161446610011614
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`)
VALUES
(700, 'COM_CPANEL_MSG_UPDATEDEFAULTSETTINGS_TITLE',
'COM_CPANEL_MSG_UPDATEDEFAULTSETTINGS_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/updatedefaultsettings.php',
'admin_postinstall_updatedefaultsettings_condition',
'3.8.8', 1);
updates/mysql/3.8.9-2018-06-19.sql000064400000000152151161446610011623
0ustar00-- Enable Sample Data Module.
UPDATE `#__extensions` SET `enabled` = '1' WHERE `name` =
'mod_sampledata';
updates/mysql/3.9.0-2018-05-02.sql000064400000002046151161446610011606
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(35, 0, 'com_privacy', 'component',
'com_privacy', '', 1, 1, 1, 1, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);

CREATE TABLE IF NOT EXISTS `#__privacy_requests` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(100) NOT NULL DEFAULT '',
  `requested_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `status` tinyint(4) NOT NULL DEFAULT 0,
  `request_type` varchar(25) NOT NULL DEFAULT '',
  `confirm_token` varchar(100) NOT NULL DEFAULT '',
  `confirm_token_created_at` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  `checked_out` int(11) NOT NULL DEFAULT 0,
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00
00:00:00',
  PRIMARY KEY (`id`),
  KEY `idx_checkout` (`checked_out`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
updates/mysql/3.9.0-2018-05-03.sql000064400000000625151161446610011610
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(482, 0, 'plg_content_confirmconsent', 'plugin',
'confirmconsent', 'content', 0, 0, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.9.0-2018-05-05.sql000064400000010717151161446610011615
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(36, 0, 'com_actionlogs', 'component',
'com_actionlogs', '', 1, 1, 1, 1, '',
'{"ip_logging":0,"csv_delimiter":",","loggable_extensions":["com_banners","com_cache","com_categories","com_config","com_contact","com_content","com_installer","com_media","com_menus","com_messages","com_modules","com_newsfeeds","com_plugins","com_redirect","com_tags","com_templates","com_users"]}',
'', '', 0, '0000-00-00 00:00:00', 0, 0),
(483, 0, 'plg_system_actionlogs', 'plugin',
'actionlogs', 'system', 0, 0, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(484, 0, 'plg_actionlog_joomla', 'plugin',
'joomla', 'actionlog', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0);


--
-- Table structure for table `#__action_logs`
--

CREATE TABLE IF NOT EXISTS `#__action_logs` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `message_language_key` varchar(255) NOT NULL DEFAULT '',
  `message` text NOT NULL,
  `log_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `extension` varchar(50) NOT NULL DEFAULT '',
  `user_id` int(11) NOT NULL DEFAULT 0,
  `item_id` int(11) NOT NULL DEFAULT 0,
  `ip_address` VARCHAR(40) NOT NULL DEFAULT '0.0.0.0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

--
-- Table structure for table `#__action_logs_extensions`
--

CREATE TABLE IF NOT EXISTS `#__action_logs_extensions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `extension` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

INSERT INTO `#__action_logs_extensions` (`id`, `extension`) VALUES
(1, 'com_banners'),
(2, 'com_cache'),
(3, 'com_categories'),
(4, 'com_config'),
(5, 'com_contact'),
(6, 'com_content'),
(7, 'com_installer'),
(8, 'com_media'),
(9, 'com_menus'),
(10, 'com_messages'),
(11, 'com_modules'),
(12, 'com_newsfeeds'),
(13, 'com_plugins'),
(14, 'com_redirect'),
(15, 'com_tags'),
(16, 'com_templates'),
(17, 'com_users');

--
-- Table structure for table `#__action_log_config`
--

CREATE TABLE IF NOT EXISTS `#__action_log_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `type_title` varchar(255) NOT NULL DEFAULT '',
  `type_alias` varchar(255) NOT NULL DEFAULT '',
  `id_holder` varchar(255),
  `title_holder` varchar(255),
  `table_name` varchar(255),
  `text_prefix` varchar(255),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

INSERT INTO `#__action_log_config` (`id`, `type_title`, `type_alias`,
`id_holder`, `title_holder`, `table_name`, `text_prefix`) VALUES
(1, 'article', 'com_content.article', 'id'
,'title' , '#__content',
'PLG_ACTIONLOG_JOOMLA'),
(2, 'article', 'com_content.form', 'id',
'title' , '#__content',
'PLG_ACTIONLOG_JOOMLA'),
(3, 'banner', 'com_banners.banner', 'id'
,'name' , '#__banners',
'PLG_ACTIONLOG_JOOMLA'),
(4, 'user_note', 'com_users.note', 'id',
'subject' ,'#__user_notes',
'PLG_ACTIONLOG_JOOMLA'),
(5, 'media', 'com_media.file', '' ,
'name' , '',  'PLG_ACTIONLOG_JOOMLA'),
(6, 'category', 'com_categories.category',
'id' , 'title' , '#__categories',
'PLG_ACTIONLOG_JOOMLA'),
(7, 'menu', 'com_menus.menu', 'id'
,'title' , '#__menu_types',
'PLG_ACTIONLOG_JOOMLA'),
(8, 'menu_item', 'com_menus.item', 'id' ,
'title' , '#__menu', 'PLG_ACTIONLOG_JOOMLA'),
(9, 'newsfeed', 'com_newsfeeds.newsfeed',
'id' ,'name' , '#__newsfeeds',
'PLG_ACTIONLOG_JOOMLA'),
(10, 'link', 'com_redirect.link', 'id',
'old_url' , '#__redirect_links',
'PLG_ACTIONLOG_JOOMLA'),
(11, 'tag', 'com_tags.tag', 'id',
'title' , '#__tags', 'PLG_ACTIONLOG_JOOMLA'),
(12, 'style', 'com_templates.style', 'id' ,
'title' , '#__template_styles',
'PLG_ACTIONLOG_JOOMLA'),
(13, 'plugin', 'com_plugins.plugin',
'extension_id' , 'name' , '#__extensions',
'PLG_ACTIONLOG_JOOMLA'),
(14, 'component_config', 'com_config.component',
'extension_id' , 'name', '',
'PLG_ACTIONLOG_JOOMLA'),
(15, 'contact', 'com_contact.contact', 'id',
'name', '#__contact_details',
'PLG_ACTIONLOG_JOOMLA'),
(16, 'module', 'com_modules.module', 'id'
,'title', '#__modules',
'PLG_ACTIONLOG_JOOMLA'),
(17, 'access_level', 'com_users.level', 'id'
, 'title', '#__viewlevels',
'PLG_ACTIONLOG_JOOMLA'),
(18, 'banner_client', 'com_banners.client',
'id', 'name', '#__banner_clients',
'PLG_ACTIONLOG_JOOMLA');
updates/mysql/3.9.0-2018-05-19.sql000064400000000611151161446610011612
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(481, 0, 'plg_fields_repeatable', 'plugin',
'repeatable', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.9.0-2018-05-20.sql000064400000000610151161446610011601
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(319, 0, 'mod_latestactions', 'module',
'mod_latestactions', '', 1, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/mysql/3.9.0-2018-05-24.sql000064400000001604151161446610011611
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(485, 0, 'plg_system_privacyconsent', 'plugin',
'privacyconsent', 'system', 0, 0, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0);

CREATE TABLE IF NOT EXISTS `#__privacy_consents` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL DEFAULT 0,
  `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `subject` varchar(255) NOT NULL DEFAULT '',
  `body` text NOT NULL,
  `remind` tinyint(4) NOT NULL DEFAULT 0,
  `token` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `idx_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
updates/mysql/3.9.0-2018-05-27.sql000064400000001006151161446610011610
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(486, 0, 'plg_system_logrotation', 'plugin',
'logrotation', 'system', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(487, 0, 'plg_privacy_user', 'plugin',
'user', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.9.0-2018-06-02.sql000064400000001535151161446610011611
0ustar00ALTER TABLE `#__content` ADD COLUMN `note` VARCHAR(255) NOT NULL
DEFAULT '';

UPDATE `#__content_types` SET `field_mappings` = 
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"attribs",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"asset_id",
"note":"note"},
"special":{"fulltext":"fulltext"}}'
WHERE `type_alias` = 'com_content.article';
updates/mysql/3.9.0-2018-06-12.sql000064400000000620151161446610011604
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(320, 0, 'mod_privacy_dashboard', 'module',
'mod_privacy_dashboard', '', 1, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/mysql/3.9.0-2018-06-13.sql000064400000000625151161446610011612
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(488, 0, 'plg_quickicon_privacycheck', 'plugin',
'privacycheck', 'quickicon', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.9.0-2018-06-14.sql000064400000001022151161446610011603
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`) VALUES
(700, 'COM_ACTIONLOGS_POSTINSTALL_TITLE',
'COM_ACTIONLOGS_POSTINSTALL_BODY', '',
'com_actionlogs', 1, 'message', '',
'', '', '', '3.9.0', 1),
(700, 'COM_PRIVACY_POSTINSTALL_TITLE',
'COM_PRIVACY_POSTINSTALL_BODY', '',
'com_privacy', 1, 'message', '',
'', '', '', '3.9.0',
1);updates/mysql/3.9.0-2018-06-17.sql000064400000000575151161446610011622
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(489, 0, 'plg_user_terms', 'plugin', 'terms',
'user', 0, 0, 1, 0, '', '{}', '',
'', 0, '0000-00-00 00:00:00', 0, 0);
updates/mysql/3.9.0-2018-07-09.sql000064400000001205151161446610011613
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(490, 0, 'plg_privacy_contact', 'plugin',
'contact', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(491, 0, 'plg_privacy_content', 'plugin',
'content', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0),
(492, 0, 'plg_privacy_message', 'plugin',
'message', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.9.0-2018-07-10.sql000064400000000346151161446610011610
0ustar00INSERT INTO `#__action_log_config` (`id`, `type_title`,
`type_alias`, `id_holder`, `title_holder`, `table_name`, `text_prefix`)
	VALUES (19, 'application_config',
'com_config.application', '', 'name',
'', 'PLG_ACTIONLOG_JOOMLA');
updates/mysql/3.9.0-2018-07-11.sql000064400000000615151161446610011610
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(493, 0, 'plg_privacy_actionlogs', 'plugin',
'actionlogs', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.9.0-2018-08-12.sql000064400000000141151161446610011604
0ustar00ALTER TABLE `#__privacy_consents` ADD COLUMN `state` INT(10) NOT
NULL DEFAULT 1 AFTER `user_id`;
updates/mysql/3.9.0-2018-08-28.sql000064400000000320151161446610011612
0ustar00ALTER TABLE `#__session` MODIFY `session_id` varbinary(192) NOT
NULL;
ALTER TABLE `#__session` MODIFY `guest` tinyint(3) unsigned DEFAULT 1;
ALTER TABLE `#__session` MODIFY `time` int(11) NOT NULL DEFAULT 0;
updates/mysql/3.9.0-2018-08-29.sql000064400000000717151161446620011626
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(494, 0, 'plg_captcha_recaptcha_invisible', 'plugin',
'recaptcha_invisible', 'captcha', 0, 0, 1, 0,
'',
'{"public_key":"","private_key":"","theme":"clean"}',
'', '', 0, '0000-00-00 00:00:00', 0, 0);
updates/mysql/3.9.0-2018-09-04.sql000064400000000447151161446620011620
0ustar00CREATE TABLE IF NOT EXISTS `#__action_logs_users` (
  `user_id` int(11) UNSIGNED NOT NULL,
  `notify` tinyint(1) UNSIGNED NOT NULL,
  `extensions` text NOT NULL,
  PRIMARY KEY (`user_id`),
  KEY `idx_notify` (`notify`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
updates/mysql/3.9.0-2018-10-15.sql000064400000000512151161446620011603
0ustar00ALTER TABLE `#__action_logs` ADD INDEX `idx_user_id` (`user_id`);
ALTER TABLE `#__action_logs` ADD INDEX `idx_user_id_logdate` (`user_id`,
`log_date`);
ALTER TABLE `#__action_logs` ADD INDEX `idx_user_id_extension` (`user_id`,
`extension`);
ALTER TABLE `#__action_logs` ADD INDEX `idx_extension_item_id`
(`extension`, `item_id`);
updates/mysql/3.9.0-2018-10-20.sql000064400000000274151161446620011604
0ustar00ALTER TABLE `#__privacy_requests` DROP INDEX `idx_checkout`;
ALTER TABLE `#__privacy_requests` DROP COLUMN `checked_out`;
ALTER TABLE `#__privacy_requests` DROP COLUMN `checked_out_time`;
updates/mysql/3.9.0-2018-10-21.sql000064400000000611151161446620011600
0ustar00INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`,
`type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`,
`manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`,
`checked_out_time`, `ordering`, `state`) VALUES
(495, 0, 'plg_privacy_consents', 'plugin',
'consents', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '0000-00-00
00:00:00', 0, 0);
updates/mysql/3.9.10-2019-07-09.sql000064400000000115151161446620011675
0ustar00ALTER TABLE `#__template_styles` MODIFY `home` char(7) NOT NULL
DEFAULT '0';
updates/mysql/3.9.16-2020-02-15.sql000064400000001226151161446620011667
0ustar00ALTER TABLE `#__categories` MODIFY `description` mediumtext;
ALTER TABLE `#__categories` MODIFY `params` text;
ALTER TABLE `#__fields` MODIFY `default_value` text;
ALTER TABLE `#__fields_values` MODIFY `value` text;
ALTER TABLE `#__finder_links` MODIFY `description` text;
ALTER TABLE `#__modules` MODIFY `content` text;
ALTER TABLE `#__ucm_content` MODIFY `core_body` mediumtext;
ALTER TABLE `#__ucm_content` MODIFY `core_params` text;
ALTER TABLE `#__ucm_content` MODIFY `core_images` text;
ALTER TABLE `#__ucm_content` MODIFY `core_urls` text;
ALTER TABLE `#__ucm_content` MODIFY `core_metakey` text;
ALTER TABLE `#__ucm_content` MODIFY `core_metadesc` text;
updates/mysql/3.9.16-2020-03-04.sql000064400000000162151161446620011664
0ustar00ALTER TABLE `#__users` DROP INDEX `username`;
ALTER TABLE `#__users` ADD UNIQUE INDEX `idx_username`
(`username`);updates/mysql/3.9.19-2020-05-16.sql000064400000000274151161446620011700
0ustar00-- Add back the default value which might have been lost with
utf8mb4 conversion on certain CMS versions
ALTER TABLE `#__ucm_content` MODIFY `core_title` varchar(400) NOT NULL
DEFAULT '';
updates/mysql/3.9.19-2020-06-01.sql000064400000000766151161446620011701
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`)
VALUES
(700, 'COM_CPANEL_MSG_TEXTFILTER3919_TITLE',
'COM_CPANEL_MSG_TEXTFILTER3919_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/textfilter3919.php',
'admin_postinstall_textfilter3919_condition', '3.9.19',
1);
updates/mysql/3.9.21-2020-08-02.sql000064400000000752151161446620011670
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`)
VALUES
(700, 'COM_CPANEL_MSG_HTACCESSSVG_TITLE',
'COM_CPANEL_MSG_HTACCESSSVG_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/htaccesssvg.php',
'admin_postinstall_htaccesssvg_condition', '3.9.21',
1);
updates/mysql/3.9.22-2020-09-16.sql000064400000000546151161446620011700
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `version_introduced`, `enabled`)
VALUES
(700, 'COM_ADMIN_POSTINSTALL_MSG_HTACCESS_AUTOINDEX_TITLE',
'COM_ADMIN_POSTINSTALL_MSG_HTACCESS_AUTOINDEX_DESCRIPTION',
'', 'com_admin', 1, 'message',
'3.9.22', 1);
updates/mysql/3.9.3-2019-01-12.sql000064400000000340151161446620011603
0ustar00UPDATE `#__extensions` 
SET `params` = REPLACE(`params`, '"com_categories",',
'"com_categories","com_checkin",')
WHERE `name` = 'com_actionlogs';

INSERT INTO `#__action_logs_extensions` (`extension`) VALUES
('com_checkin');updates/mysql/3.9.3-2019-02-07.sql000064400000000745151161446620011621
0ustar00INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`,
`description_key`, `action_key`, `language_extension`,
`language_client_id`, `type`, `action_file`, `action`, `condition_file`,
`condition_method`, `version_introduced`, `enabled`)
VALUES
(700, 'COM_CPANEL_MSG_ADDNOSNIFF_TITLE',
'COM_CPANEL_MSG_ADDNOSNIFF_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/addnosniff.php',
'admin_postinstall_addnosniff_condition', '3.9.3', 1);
updates/mysql/3.9.7-2019-04-23.sql000064400000000115151161446620011614
0ustar00ALTER TABLE `#__session` ADD INDEX `client_id_guest` (`client_id`,
`guest`);
updates/mysql/3.9.7-2019-04-26.sql000064400000000522151161446620011621
0ustar00UPDATE `#__content_types` SET `content_history_options` =
REPLACE(`content_history_options`,
'\"ignoreChanges\":[\"modified_by\",
\"modified\", \"checked_out\",
\"checked_out_time\", \"version\",
\"hits\"]',
'\"ignoreChanges\":[\"modified_by\",
\"modified\", \"checked_out\",
\"checked_out_time\", \"version\", \"hits\",
\"ordering\"]');
updates/mysql/3.9.7-2019-05-16.sql000064400000000105151161446620011616
0ustar00# Query removed, see
https://github.com/joomla/joomla-cms/pull/25177
updates/mysql/3.9.8-2019-06-11.sql000064400000000074151161446620011620
0ustar00UPDATE #__users SET params = REPLACE(params,
'",,"',
'","');updates/mysql/3.9.8-2019-06-15.sql000064400000000436151161446620011626
0ustar00ALTER TABLE `#__template_styles` DROP INDEX `idx_home`;
# Query removed, see https://github.com/joomla/joomla-cms/pull/25484
ALTER TABLE `#__template_styles` ADD INDEX `idx_client_id` (`client_id`);
ALTER TABLE `#__template_styles` ADD INDEX `idx_client_id_home`
(`client_id`, `home`);
updates/postgresql/3.0.0.sql000064400000000072151161446620011600 0ustar00--
Placeholder file for database changes for version
3.0.0updates/postgresql/3.0.1.sql000064400000000071151161446620011600
0ustar00# Placeholder file for database changes for version
3.0.1updates/postgresql/3.0.2.sql000064400000000071151161446620011601
0ustar00# Placeholder file for database changes for version
3.0.2updates/postgresql/3.0.3.sql000064400000000074151161446620011605
0ustar00ALTER TABLE "#__associations" ALTER COLUMN id TYPE
integer;
updates/postgresql/3.1.0.sql000064400000047365151161446620011621 0ustar00/*
Changes to tables where data type conflicts exist with MySQL (mainly
dealing with null values */

--
-- The following statement has to be disabled because it conflicts with
-- a later change added with Joomla! 3.9.16, see file 3.9.16-2020-02-15.sql
--
-- ALTER TABLE "#__modules" ALTER COLUMN "content" SET
DEFAULT '';
--
-- The following statement has to be disabled because it conflicts with
-- a later change added with Joomla! 3.8.8 to repair the update of database
schema changes
--
-- ALTER TABLE "#__updates" ALTER COLUMN "data" SET
DEFAULT '';

/* Tags database schema */

--
-- Table: #__content_types
--
CREATE TABLE "#__content_types" (
  "type_id" serial NOT NULL,
  "type_title" character varying(255) NOT NULL DEFAULT
'',
  "type_alias" character varying(255) NOT NULL DEFAULT
'',
  "table" character varying(255) NOT NULL DEFAULT '',
  "rules" text NOT NULL,
  "field_mappings" text NOT NULL,
  "router" character varying(255) NOT NULL DEFAULT '',
  PRIMARY KEY ("type_id")
);
CREATE INDEX "#__content_types_idx_alias" ON
"#__content_types" ("type_alias");

--
-- Dumping data for table #__content_types
--
INSERT INTO "#__content_types" ("type_id",
"type_title", "type_alias", "table",
"rules", "field_mappings", "router") VALUES
(1, 'Article', 'com_content.article',
'{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"attribs",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"asset_id"}], "special":
[{"fulltext":"fulltext"}]}','ContentHelperRoute::getArticleRoute'),
(2, 'Contact', 'com_contact.contact',
'{"special":{"dbtable":"#__contact_details","key":"id","type":"Contact","prefix":"ContactTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"image",
"core_urls":"webpage",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"null"}], "special":
[{"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}]}','ContactHelperRoute::getContactRoute'),
(3, 'Newsfeed', 'com_newsfeeds.newsfeed',
'{"special":{"dbtable":"#__newsfeeds","key":"id","type":"Newsfeed","prefix":"NewsfeedsTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"link",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"null"}], "special":
[{"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}]}','NewsfeedsHelperRoute::getNewsfeedRoute'),
(4, 'User', 'com_users.user',
'{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerdate","core_modified_time":"lastvisitDate","core_body":"null",
"core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null",
"core_params":"params",
"core_featured":"null",
"core_metadata":"null",
"core_language":"null",
"core_images":"null",
"core_urls":"null",
"core_version":"null",
"core_ordering":"null",
"core_metakey":"null",
"core_metadesc":"null",
"core_catid":"null",
"core_xreference":"null",
"asset_id":"null"}], "special":
[{}]}','UsersHelperRoute::getUserRoute'),
(5, 'Article Category', 'com_content.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}], "special":
[{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}]}','ContentHelperRoute::getCategoryRoute'),
(6, 'Contact Category', 'com_contact.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}], "special":
[{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}]}','ContactHelperRoute::getCategoryRoute'),
(7, 'Newsfeeds Category', 'com_newsfeeds.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}], "special":
[{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}]}','NewsfeedsHelperRoute::getCategoryRoute'),
(8, 'Tag', 'com_tags.tag',
'{"special":{"dbtable":"#__tags","key":"tag_id","type":"Tag","prefix":"TagsTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"null",
"core_xreference":"null",
"asset_id":"null"}], "special":
[{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}]}','TagsHelperRoute::getTagRoute');

SELECT nextval('#__content_types_type_id_seq');
SELECT setval('#__content_types_type_id_seq', 10000, false);

--
-- Table: #__contentitem_tag_map
--
CREATE TABLE "#__contentitem_tag_map" (
  "type_alias" character varying(255) NOT NULL DEFAULT
'',
  "core_content_id" integer NOT NULL,
  "content_item_id" integer NOT NULL,
  "tag_id" integer NOT NULL,
  "tag_date" timestamp without time zone DEFAULT '1970-01-01
00:00:00' NOT NULL,
 CONSTRAINT "uc_ItemnameTagid" UNIQUE ("type_alias",
"content_item_id", "tag_id")
);

CREATE INDEX "#__contentitem_tag_map_idx_tag_type" ON
"#__contentitem_tag_map" ("tag_id",
"type_alias");
CREATE INDEX "#__contentitem_tag_map_idx_date_id" ON
"#__contentitem_tag_map" ("tag_date",
"tag_id");
CREATE INDEX "#__contentitem_tag_map_idx_tag" ON
"#__contentitem_tag_map" ("tag_id");
CREATE INDEX "#__contentitem_tag_map_idx_core_content_id" ON
"#__contentitem_tag_map" ("core_content_id");

COMMENT ON COLUMN
"#__contentitem_tag_map"."core_content_id" IS 'PK
from the core content table';
COMMENT ON COLUMN
"#__contentitem_tag_map"."content_item_id" IS 'PK
from the content type table';
COMMENT ON COLUMN "#__contentitem_tag_map"."tag_id" IS
'PK from the tag table';
COMMENT ON COLUMN "#__contentitem_tag_map"."tag_date"
IS 'Date of most recent save for this tag-item';

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

--
-- Table: #__tags
--
CREATE TABLE "#__tags" (
  "id" serial NOT NULL,
  "parent_id" bigint DEFAULT 0 NOT NULL,
  "lft" bigint DEFAULT 0 NOT NULL,
  "rgt" bigint DEFAULT 0 NOT NULL,
  "level" integer DEFAULT 0 NOT NULL,
  "path" character varying(255) DEFAULT '' NOT NULL,
  "title" character varying(255) NOT NULL,
  "alias" character varying(255) DEFAULT '' NOT NULL,
  "note" character varying(255) DEFAULT '' NOT NULL,
  "description" text,
  "published" smallint DEFAULT 0 NOT NULL,
  "checked_out" bigint DEFAULT 0 NOT NULL,
  "checked_out_time" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "access" bigint DEFAULT 0 NOT NULL,
  "params" text NOT NULL,
  "metadesc" character varying(1024) NOT NULL,
  "metakey" character varying(1024) NOT NULL,
  "metadata" character varying(2048) NOT NULL,
  "created_user_id" integer DEFAULT 0 NOT NULL,
  "created_time" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "created_by_alias" character varying(255) DEFAULT ''
NOT NULL,
  "modified_user_id" integer DEFAULT 0 NOT NULL,
  "modified_time" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "images" text NOT NULL,
  "urls" text NOT NULL,
  "hits" integer DEFAULT 0 NOT NULL,
  "language" character varying(7) DEFAULT '' NOT NULL,
  "version" bigint DEFAULT 1 NOT NULL,
  "publish_up" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "publish_down" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  PRIMARY KEY ("id")
);
CREATE INDEX "#__tags_cat_idx" ON "#__tags"
("published", "access");
CREATE INDEX "#__tags_idx_access" ON "#__tags"
("access");
CREATE INDEX "#__tags_idx_checkout" ON "#__tags"
("checked_out");
CREATE INDEX "#__tags_idx_path" ON "#__tags"
("path");
CREATE INDEX "#__tags_idx_left_right" ON "#__tags"
("lft", "rgt");
CREATE INDEX "#__tags_idx_alias" ON "#__tags"
("alias");
CREATE INDEX "#__tags_idx_language" ON "#__tags"
("language");

--
-- Dumping data for table #__tags
--

INSERT INTO "#__tags" ("id", "parent_id",
"lft", "rgt", "level", "path",
"title", "alias", "note",
"description", "published", "checked_out",
"checked_out_time", "access", "params",
"metadesc", "metakey", "metadata",
"created_user_id", "created_time",
"created_by_alias", "modified_user_id",
"modified_time", "images", "urls",
"hits", "language", "version") VALUES
(1, 0, 0, 1, 0, '', 'ROOT', 'root',
'', '', 1, 0, '1970-01-01 00:00:00', 1,
'{}', '', '', '', 42,
'1970-01-01 00:00:00', '', 0, '1970-01-01
00:00:00', '', '',  0, '*', 1);

SELECT nextval('#__tags_id_seq');
SELECT setval('#__tags_id_seq', 2, false);

--
-- Table: #__ucm_base
--
CREATE TABLE "#__ucm_base" (
  "ucm_id" serial NOT NULL,
  "ucm_item_id" bigint NOT NULL,
  "ucm_type_id" bigint NOT NULL,
  "ucm_language_id" bigint NOT NULL,
  PRIMARY KEY ("ucm_id")
);
CREATE INDEX "#__ucm_base_ucm_item_id" ON "#__ucm_base"
("ucm_item_id");
CREATE INDEX "#__ucm_base_ucm_type_id" ON "#__ucm_base"
("ucm_type_id");
CREATE INDEX "#__ucm_base_ucm_language_id" ON
"#__ucm_base" ("ucm_language_id");

--
-- Table: #__ucm_content
--
CREATE TABLE "#__ucm_content" (
  "core_content_id" serial NOT NULL,
  "core_type_alias" character varying(255) DEFAULT ''
NOT NULL,
  "core_title" character varying(255) NOT NULL,
  "core_alias" character varying(255) DEFAULT '' NOT
NULL,
  "core_body" text NOT NULL,
  "core_state" smallint DEFAULT 0 NOT NULL,
  "core_checked_out_time" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "core_checked_out_user_id" bigint DEFAULT 0 NOT NULL,
  "core_access" bigint DEFAULT 0 NOT NULL,
  "core_params" text NOT NULL,
  "core_featured" smallint DEFAULT 0 NOT NULL,
  "core_metadata" text NOT NULL,
  "core_created_user_id" bigint DEFAULT 0 NOT NULL,
  "core_created_by_alias" character varying(255) DEFAULT
'' NOT NULL,
  "core_created_time" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "core_modified_user_id" bigint DEFAULT 0 NOT NULL,
  "core_modified_time" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "core_language" character varying(7) DEFAULT '' NOT
NULL,
  "core_publish_up" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "core_publish_down" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "core_content_item_id" bigint DEFAULT 0 NOT NULL,
  "asset_id" bigint DEFAULT 0 NOT NULL,
  "core_images" text NOT NULL,
  "core_urls" text NOT NULL,
  "core_hits" bigint DEFAULT 0 NOT NULL,
  "core_version" bigint DEFAULT 1 NOT NULL,
  "core_ordering" bigint DEFAULT 0 NOT NULL,
  "core_metakey" text NOT NULL,
  "core_metadesc" text NOT NULL,
  "core_catid" bigint DEFAULT 0 NOT NULL,
  "core_xreference" character varying(50) DEFAULT ''
NOT NULL,
  "core_type_id" bigint DEFAULT 0 NOT NULL,
  PRIMARY KEY ("core_content_id"),
  CONSTRAINT "#__ucm_content_idx_type_alias_item_id" UNIQUE
("core_type_alias", "core_content_item_id")
);
CREATE INDEX "#__ucm_content_tag_idx" ON
"#__ucm_content" ("core_state",
"core_access");
CREATE INDEX "#__ucm_content_idx_access" ON
"#__ucm_content" ("core_access");
CREATE INDEX "#__ucm_content_idx_alias" ON
"#__ucm_content" ("core_alias");
CREATE INDEX "#__ucm_content_idx_language" ON
"#__ucm_content" ("core_language");
CREATE INDEX "#__ucm_content_idx_title" ON
"#__ucm_content" ("core_title");
CREATE INDEX "#__ucm_content_idx_modified_time" ON
"#__ucm_content" ("core_modified_time");
CREATE INDEX "#__ucm_content_idx_created_time" ON
"#__ucm_content" ("core_created_time");
CREATE INDEX "#__ucm_content_idx_content_type" ON
"#__ucm_content" ("core_type_alias");
CREATE INDEX "#__ucm_content_idx_core_modified_user_id" ON
"#__ucm_content" ("core_modified_user_id");
CREATE INDEX "#__ucm_content_idx_core_checked_out_user_id" ON
"#__ucm_content" ("core_checked_out_user_id");
CREATE INDEX "#__ucm_content_idx_core_created_user_id" ON
"#__ucm_content" ("core_created_user_id");
CREATE INDEX "#__ucm_content_idx_core_type_id" ON
"#__ucm_content" ("core_type_id");

--
-- Add extensions table records
--
INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(29, 'com_tags', 'component', 'com_tags',
'', 1, 1, 1, 1,
'{"legacy":false,"name":"com_tags","type":"component","creationDate":"March
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_TAGS_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(315, 'mod_stats_admin', 'module',
'mod_stats_admin', '', 1, 1, 1, 0,
'{"name":"mod_stats_admin","type":"module","creationDate":"September
2012","author":"Joomla!
Project","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_STATS_XML_DESCRIPTION","group":""}',
'{"serverinfo":"0","siteinfo":"0","counter":"0","increase":"0","cache":"1","cache_time":"900","cachemode":"static"}',
'', '', 0, '1970-01-01 00:00:00', 0, 0),
(316, 'mod_tags_popular', 'module',
'mod_tags_popular', '', 0, 1, 1, 0,
'{"name":"mod_tags_popular","type":"module","creationDate":"January
2013","author":"Joomla!
Project","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.0","description":"MOD_TAGS_POPULAR_XML_DESCRIPTION","group":""}',
'{"maximum":"5","timeframe":"alltime","owncache":"1"}',
'', '', 0, '1970-01-01 00:00:00', 0, 0),
(317, 'mod_tags_similar', 'module',
'mod_tags_similar', '', 0, 1, 1, 0,
'{"name":"mod_tags_similar","type":"module","creationDate":"January
2013","author":"Joomla!
Project","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.0","description":"MOD_TAGS_SIMILAR_XML_DESCRIPTION","group":""}',
'{"maximum":"5","matchtype":"any","owncache":"1"}',
'', '', 0, '1970-01-01 00:00:00', 0, 0),
(447, 'plg_finder_tags', 'plugin', 'tags',
'finder', 0, 1, 1, 0,
'{"name":"plg_finder_tags","type":"plugin","creationDate":"February
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_FINDER_TAGS_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);

--
-- Add menu table records
--
INSERT INTO "#__menu" ("menutype", "title",
"alias", "note", "path", "link",
"type", "published", "parent_id",
"level", "component_id", "checked_out",
"checked_out_time", "browserNav", "access",
"img", "template_style_id", "params",
"lft", "rgt", "home", "language",
"client_id") VALUES
('main', 'com_tags', 'Tags', '',
'Tags', 'index.php?option=com_tags',
'component', 0, 1, 1, 29, 0, '1970-01-01 00:00:00', 0,
1, 'class:tags', 0, '', 45, 46, 0, '', 1);
updates/postgresql/3.1.1.sql000064400000000071151161446620011601 0ustar00#
Placeholder file for database changes for version
3.1.1updates/postgresql/3.1.2.sql000064400000021415151161446620011607
0ustar00UPDATE "#__content_types" SET "table" =
'{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE "type_title" = 'Article';
UPDATE "#__content_types" SET "table" =
'{"special":{"dbtable":"#__contact_details","key":"id","type":"Contact","prefix":"ContactTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE "type_title" = 'Contact';
UPDATE "#__content_types" SET "table" =
'{"special":{"dbtable":"#__newsfeeds","key":"id","type":"Newsfeed","prefix":"NewsfeedsTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE "type_title" = 'Newsfeed';
UPDATE "#__content_types" SET "table" =
'{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE "type_title" = 'User';
UPDATE "#__content_types" SET "table" =
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE "type_title" = 'Article Category';
UPDATE "#__content_types" SET "table" =
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE "type_title" = 'Contact Category';
UPDATE "#__content_types" SET "table" =
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE "type_title" = 'Newsfeeds Category';
UPDATE "#__content_types" SET "table" =
'{"special":{"dbtable":"#__tags","key":"tag_id","type":"Tag","prefix":"TagsTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE "type_title" = 'Tag';
UPDATE "#__content_types" SET "field_mappings" =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"attribs",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"asset_id"}, "special":
{"fulltext":"fulltext"}}' WHERE
"type_title" = 'Article';
UPDATE "#__content_types" SET "field_mappings" =
'{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"image",
"core_urls":"webpage",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"null"}, "special":
{"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}}'
WHERE "type_title" = 'Contact';
UPDATE "#__content_types" SET "field_mappings" =
'{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"link",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"null"}, "special":
{"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}}'
WHERE "type_title" = 'Newsfeed';
UPDATE "#__content_types" SET "field_mappings" =
'{"common":{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerdate","core_modified_time":"lastvisitDate","core_body":"null",
"core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null",
"core_params":"params",
"core_featured":"null",
"core_metadata":"null",
"core_language":"null",
"core_images":"null",
"core_urls":"null",
"core_version":"null",
"core_ordering":"null",
"core_metakey":"null",
"core_metadesc":"null",
"core_catid":"null",
"core_xreference":"null",
"asset_id":"null"}, "special": {}}'
WHERE "type_title" = 'User';
UPDATE "#__content_types" SET "field_mappings" =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}'
WHERE "type_title" = 'Article Category';
UPDATE "#__content_types" SET "field_mappings" =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}'
WHERE "type_title" = 'Contact Category';
UPDATE "#__content_types" SET "field_mappings" =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}'
WHERE "type_title" = 'Newsfeeds Category';
UPDATE "#__content_types" SET "field_mappings" =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"null",
"core_xreference":"null",
"asset_id":"null"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}}'
WHERE "type_title" = 'Tag';
updates/postgresql/3.1.3.sql000064400000000072151161446620011604 0ustar00#
Placeholder file for database changes for version 3.1.3
updates/postgresql/3.1.4.sql000064400000000554151161446620011612
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(104, 'IDNA Convert', 'library',
'idna_convert', '', 0, 1, 1, 1, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.1.5.sql000064400000000072151161446620011606 0ustar00#
Placeholder file for database changes for version 3.1.5
updates/postgresql/3.2.0.sql000064400000050546151161446620011615 0ustar00/*
Core 3.2 schema updates */

ALTER TABLE "#__content_types" ADD COLUMN
"content_history_options" varchar(5120) DEFAULT NULL;

UPDATE "#__content_types" SET "content_history_options"
=
'{"formFile":"administrator\\/components\\/com_content\\/models\\/forms\\/article.xml",
"hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by",
"modified", "checked_out",
"checked_out_time", "version",
"hits"],"convertToInt":["publish_up",
"publish_down", "featured",
"ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}
]}' WHERE "type_alias" = 'com_content.article';
UPDATE "#__content_types" SET "content_history_options"
=
'{"formFile":"administrator\\/components\\/com_contact\\/models\\/forms\\/contact.xml","hideFields":["default_con","checked_out","checked_out_time","version","xreference"],"ignoreChanges":["modified_by",
"modified", "checked_out",
"checked_out_time", "version",
"hits"],"convertToInt":["publish_up",
"publish_down", "featured", "ordering"],
"displayLookup":[
{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}
] }' WHERE "type_alias" = 'com_contact.contact';
UPDATE "#__content_types" SET "content_history_options"
=
'{"formFile":"administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml",
"hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"],
"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time", "version", "hits",
"path"],"convertToInt":["publish_up",
"publish_down"],
"displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'
WHERE "type_alias" IN ('com_content.category',
'com_contact.category', 'com_newsfeeds.category');
UPDATE "#__content_types" SET "content_history_options"
=
'{"formFile":"administrator\\/components\\/com_newsfeeds\\/models\\/forms\\/newsfeed.xml","hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by",
"modified", "checked_out",
"checked_out_time", "version",
"hits"],"convertToInt":["publish_up",
"publish_down", "featured",
"ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'
WHERE "type_alias" = 'com_newsfeeds.newsfeed';
UPDATE "#__content_types" SET "content_history_options"
=
'{"formFile":"administrator\\/components\\/com_tags\\/models\\/forms\\/tag.xml",
"hideFields":["checked_out","checked_out_time","version",
"lft", "rgt", "level", "path",
"urls", "publish_up",
"publish_down"],"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time", "version", "hits",
"path"],"convertToInt":["publish_up",
"publish_down"],
"displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},
{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'
WHERE "type_alias" = 'com_tags.tag';

INSERT INTO "#__content_types" ("type_title",
"type_alias", "table", "rules",
"field_mappings", "router",
"content_history_options") VALUES
('Banner', 'com_banners.banner',
'{"special":{"dbtable":"#__banners","key":"id","type":"Banner","prefix":"BannersTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description",
"core_hits":"null","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"link",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"null",
"asset_id":"null"},
"special":{"imptotal":"imptotal",
"impmade":"impmade",
"clicks":"clicks",
"clickurl":"clickurl",
"custombannercode":"custombannercode",
"cid":"cid",
"purchase_type":"purchase_type",
"track_impressions":"track_impressions",
"track_clicks":"track_clicks"}}', '',
'{"formFile":"administrator\\/components\\/com_banners\\/models\\/forms\\/banner.xml",
"hideFields":["checked_out","checked_out_time","version",
"reset"],"ignoreChanges":["modified_by",
"modified", "checked_out",
"checked_out_time", "version", "imptotal",
"impmade", "reset"],
"convertToInt":["publish_up", "publish_down",
"ordering"],
"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},
{"sourceColumn":"cid","targetTable":"#__banner_clients","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'),
('Banners Category', 'com_banners.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}',
'',
'{"formFile":"administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml",
"hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"],
"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time", "version", "hits",
"path"], "convertToInt":["publish_up",
"publish_down"],
"displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'),
('Banner Client', 'com_banners.client',
'{"special":{"dbtable":"#__banner_clients","key":"id","type":"Client","prefix":"BannersTable"}}',
'', '', '',
'{"formFile":"administrator\\/components\\/com_banners\\/models\\/forms\\/client.xml",
"hideFields":["checked_out","checked_out_time"],
"ignoreChanges":["checked_out",
"checked_out_time"], "convertToInt":[],
"displayLookup":[]}'),
('User Notes', 'com_users.note',
'{"special":{"dbtable":"#__user_notes","key":"id","type":"Note","prefix":"UsersTable"}}',
'', '', '',
'{"formFile":"administrator\\/components\\/com_users\\/models\\/forms\\/note.xml",
"hideFields":["checked_out","checked_out_time",
"publish_up",
"publish_down"],"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time"],
"convertToInt":["publish_up",
"publish_down"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},
{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'),
('User Notes Category', 'com_users.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"},
"special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}',
'',
'{"formFile":"administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml",
"hideFields":["checked_out","checked_out_time","version","lft","rgt","level","path","extension"],
"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time", "version", "hits",
"path"], "convertToInt":["publish_up",
"publish_down"],
"displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}');

UPDATE "#__extensions" SET "params" =
'{"template_positions_display":"0","upload_limit":"2","image_formats":"gif,bmp,jpg,jpeg,png","source_formats":"txt,less,ini,xml,js,php,css","font_formats":"woff,ttf,otf","compressed_formats":"zip"}'
WHERE "extension_id" = 20;
UPDATE "#__extensions" SET "params" =
'{"lineNumbers":"1","lineWrapping":"1","matchTags":"1","matchBrackets":"1","marker-gutter":"1","autoCloseTags":"1","autoCloseBrackets":"1","autoFocus":"1","theme":"default","tabmode":"indent"}'
WHERE "extension_id" = 410;

INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(30, 'com_contenthistory', 'component',
'com_contenthistory', '', 1, 1, 1, 0,
'{"name":"com_contenthistory","type":"component","creationDate":"May
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.\\n\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.2.0","description":"COM_CONTENTHISTORY_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(31, 'com_ajax', 'component', 'com_ajax',
'', 1, 1, 1, 0,
'{"name":"com_ajax","type":"component","creationDate":"August
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.2.0","description":"COM_AJAX_DESC","group":""}',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(32, 'com_postinstall', 'component',
'com_postinstall', '', 1, 1, 1, 1, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(105, 'FOF', 'library', 'fof', '',
0, 1, 1, 1,
'{"legacy":false,"name":"FOF","type":"library","creationDate":"2013-10-08","author":"Nicholas
K. Dionysopoulos \/ Akeeba
Ltd","copyright":"(C)2011-2013 Nicholas K.
Dionysopoulos","authorEmail":"nicholas@akeebabackup.com","authorUrl":"https:\/\/www.akeebabackup.com","version":"2.1.rc4","description":"Framework-on-Framework
(FOF) - A rapid component development framework for
Joomla!","group":""}', '{}',
'', '', 0, '1970-01-01 00:00:00', 0, 0),
(448, 'plg_twofactorauth_totp', 'plugin',
'totp', 'twofactorauth', 0, 0, 1, 0,
'{"name":"plg_twofactorauth_totp","type":"plugin","creationDate":"August
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.2.0","description":"PLG_TWOFACTORAUTH_TOTP_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(449, 'plg_authentication_cookie', 'plugin',
'cookie', 'authentication', 0, 1, 1, 0,
'{"name":"plg_authentication_cookie","type":"plugin","creationDate":"July
2013","author":"Joomla!
Project","copyright":"Copyright (C) 2005 - 2020 Open
Source Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_AUTH_COOKIE_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(450, 'plg_twofactorauth_yubikey', 'plugin',
'yubikey', 'twofactorauth', 0, 0, 1, 0,
'{"name":"plg_twofactorauth_yubikey","type":"plugin","creationDate":"Se[ptember
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.2.0","description":"PLG_TWOFACTORAUTH_YUBIKEY_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);

INSERT INTO "#__menu" ("menutype", "title",
"alias", "note", "path", "link",
"type", "published", "parent_id",
"level", "component_id", "checked_out",
"checked_out_time", "browserNav", "access",
"img", "template_style_id", "params",
"lft", "rgt", "home", "language",
"client_id") VALUES
('main', 'com_postinstall', 'Post-installation
messages', '', 'Post-installation messages',
'index.php?option=com_postinstall', 'component', 0, 1,
1, 32, 0, '1970-01-01 00:00:00', 0, 1,
'class:postinstall', 0, '', 45, 46, 0, '*',
1);

ALTER TABLE "#__modules" ADD COLUMN "asset_id" bigint
DEFAULT 0 NOT NULL;

CREATE TABLE "#__postinstall_messages" (
  "postinstall_message_id" serial NOT NULL,
  "extension_id" bigint NOT NULL DEFAULT 700,
  "title_key" varchar(255) NOT NULL DEFAULT '',
  "description_key" varchar(255) NOT NULL DEFAULT '',
  "action_key" varchar(255) NOT NULL DEFAULT '',
  "language_extension" varchar(255) NOT NULL DEFAULT
'com_postinstall',
  "language_client_id" smallint NOT NULL DEFAULT 1,
  "type" varchar(10) NOT NULL DEFAULT 'link',
  "action_file" varchar(255) DEFAULT '',
  "action" varchar(255) DEFAULT '',
  "condition_file" varchar(255) DEFAULT NULL,
  "condition_method" varchar(255) DEFAULT NULL,
  "version_introduced" varchar(255) NOT NULL DEFAULT
'3.2.0',
  "enabled" smallint NOT NULL DEFAULT 1,
  PRIMARY KEY ("postinstall_message_id")
);

COMMENT ON COLUMN
"#__postinstall_messages"."extension_id" IS 'FK to
jos_extensions';
COMMENT ON COLUMN "#__postinstall_messages"."title_key"
IS 'Lang key for the title';
COMMENT ON COLUMN
"#__postinstall_messages"."description_key" IS
'Lang key for description';
COMMENT ON COLUMN
"#__postinstall_messages"."language_extension" IS
'Extension holding lang keys';
COMMENT ON COLUMN "#__postinstall_messages"."type" IS
'Message type - message, link, action';
COMMENT ON COLUMN
"#__postinstall_messages"."action_file" IS 'RAD
URI to the PHP file containing action method';
COMMENT ON COLUMN "#__postinstall_messages"."action" IS
'Action method name or URL';
COMMENT ON COLUMN
"#__postinstall_messages"."condition_file" IS 'RAD
URI to file holding display condition method';
COMMENT ON COLUMN
"#__postinstall_messages"."condition_method" IS
'Display condition method, must return boolean';
COMMENT ON COLUMN
"#__postinstall_messages"."version_introduced" IS
'Version when this message was introduced';

INSERT INTO "#__postinstall_messages" ("extension_id",
"title_key", "description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled") VALUES
(700, 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_TITLE',
'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_BODY',
'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_ACTION',
'plg_twofactorauth_totp', 1, 'action',
'site://plugins/twofactorauth/totp/postinstall/actions.php',
'twofactorauth_postinstall_action',
'site://plugins/twofactorauth/totp/postinstall/actions.php',
'twofactorauth_postinstall_condition', '3.2.0', 1),
(700, 'COM_CPANEL_MSG_EACCELERATOR_TITLE',
'COM_CPANEL_MSG_EACCELERATOR_BODY',
'COM_CPANEL_MSG_EACCELERATOR_BUTTON', 'com_cpanel', 1,
'action',
'admin://components/com_admin/postinstall/eaccelerator.php',
'admin_postinstall_eaccelerator_action',
'admin://components/com_admin/postinstall/eaccelerator.php',
'admin_postinstall_eaccelerator_condition', '3.2.0',
1);

CREATE TABLE "#__ucm_history" (
  "version_id" serial NOT NULL,
  "ucm_item_id" integer NOT NULL,
  "ucm_type_id" integer NOT NULL,
  "version_note" varchar(255) NOT NULL DEFAULT '',
  "save_date" timestamp with time zone NOT NULL DEFAULT
'1970-01-01 00:00:00',
  "editor_user_id" integer  NOT NULL DEFAULT 0,
  "character_count" integer  NOT NULL DEFAULT 0,
  "sha1_hash" varchar(50) NOT NULL DEFAULT '',
  "version_data" text NOT NULL,
  "keep_forever" smallint NOT NULL DEFAULT 0,
  PRIMARY KEY ("version_id")
);
CREATE INDEX "#__ucm_history_idx_ucm_item_id" ON
"#__ucm_history" ("ucm_type_id",
"ucm_item_id");
CREATE INDEX "#__ucm_history_idx_save_date" ON
"#__ucm_history" ("save_date");

COMMENT ON COLUMN "#__ucm_history"."version_note" IS
'Optional version name';
COMMENT ON COLUMN "#__ucm_history"."character_count" IS
'Number of characters in this version.';
COMMENT ON COLUMN "#__ucm_history"."sha1_hash" IS
'SHA1 hash of the version_data column.';
COMMENT ON COLUMN "#__ucm_history"."version_data" IS
'json-encoded string of version data';
COMMENT ON COLUMN "#__ucm_history"."keep_forever" IS
'0=auto delete; 1=keep';

ALTER TABLE "#__users" ADD COLUMN "otpKey"
varchar(1000) DEFAULT '' NOT NULL;
ALTER TABLE "#__users" ADD COLUMN "otep" varchar(1000)
DEFAULT '' NOT NULL;

CREATE TABLE "#__user_keys" (
  "id" serial NOT NULL,
  "user_id" varchar(255) NOT NULL,
  "token" varchar(255) NOT NULL,
  "series" varchar(255) NOT NULL,
  "invalid" smallint NOT NULL,
  "time" varchar(200) NOT NULL,
  "uastring" varchar(255) NOT NULL,
  PRIMARY KEY ("id"),
	CONSTRAINT "#__user_keys_series" UNIQUE ("series"),
	CONSTRAINT "#__user_keys_series_2" UNIQUE ("series"),
	CONSTRAINT "#__user_keys_series_3" UNIQUE ("series")
);
CREATE INDEX "#__user_keys_idx_user_id" ON
"#__user_keys" ("user_id");

/* Queries below sync the schema to MySQL where able without causing errors
*/

ALTER TABLE "#__contentitem_tag_map" ADD COLUMN
"type_id" integer NOT NULL;

CREATE INDEX "#__contentitem_tag_map_idx_tag_type" ON
"#__contentitem_tag_map" ("tag_id",
"type_id");
CREATE INDEX "#__contentitem_tag_map_idx_type" ON
"#__contentitem_tag_map" ("type_id");

COMMENT ON COLUMN "#__contentitem_tag_map"."type_id" IS
'PK from the content_type table';

ALTER TABLE "#__session" DROP COLUMN "usertype";

ALTER TABLE "#__updates" DROP COLUMN "categoryid";

ALTER TABLE "#__users" DROP COLUMN "usertype";
updates/postgresql/3.2.1.sql000064400000000150151161446620011600
0ustar00DELETE FROM "#__postinstall_messages" WHERE
"title_key" =
'PLG_USER_JOOMLA_POSTINSTALL_STRONGPW_TITLE';
updates/postgresql/3.2.2-2013-12-22.sql000064400000000235151161446620012631
0ustar00ALTER TABLE "#__update_sites" ADD COLUMN
"extra_query" varchar(1000) DEFAULT '';
ALTER TABLE "#__updates" ADD COLUMN "extra_query"
varchar(1000) DEFAULT '';
updates/postgresql/3.2.2-2013-12-28.sql000064400000000254151161446620012640
0ustar00UPDATE "#__menu" SET "component_id" = (SELECT
"extension_id" FROM "#__extensions" WHERE
"element" = 'com_joomlaupdate') WHERE "link"
= 'index.php?option=com_joomlaupdate';
updates/postgresql/3.2.2-2014-01-08.sql000064400000000564151161446620012641
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(403, 'plg_content_contact', 'plugin',
'contact', 'content', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 1, 0);
updates/postgresql/3.2.2-2014-01-15.sql000064400000000745151161446620012640
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled") VALUES
(700, 'COM_CPANEL_MSG_PHPVERSION_TITLE',
'COM_CPANEL_MSG_PHPVERSION_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/phpversion.php',
'admin_postinstall_phpversion_condition', '3.2.2', 1);
updates/postgresql/3.2.2-2014-01-18.sql000064400000000160151161446620012632
0ustar00/* Update updates version length */
ALTER TABLE "#__updates" ALTER COLUMN "version" TYPE
character varying(32);
updates/postgresql/3.2.2-2014-01-23.sql000064400000001140151161446620012625
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(106, 'PHPass', 'library', 'phpass',
'', 0, 1, 1, 1,
'{"legacy":false,"name":"PHPass","type":"library","creationDate":"2004-2006","author":"Solar
Designer","authorEmail":"solar@openwall.com","authorUrl":"http:\/\/www.openwall.com/phpass","version":"0.3","description":"LIB_PHPASS_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.2.3-2014-02-20.sql000064400000000236151161446620012631
0ustar00UPDATE "#__extensions" SET "params" = (SELECT
"params" FROM "#__extensions" WHERE "name" =
'plg_system_remember') WHERE "name" =
'plg_authentication_cookie';
updates/postgresql/3.3.0-2013-12-21.sql000064400000000070151161446620012624
0ustar00# Placeholder file to set the database schema for 3.3.0
updates/postgresql/3.3.0-2014-02-16.sql000064400000000244151161446620012633
0ustar00ALTER TABLE "#__users" ADD COLUMN
"requireReset" smallint DEFAULT 0;
COMMENT ON COLUMN "#__users"."requireReset" IS
'Require user to reset password on next login';
updates/postgresql/3.3.0-2014-04-02.sql000064400000000632151161446620012631
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(451, 'plg_search_tags', 'plugin', 'tags',
'search', 0, 0, 1, 0, '',
'{"search_limit":"50","show_tagged_items":"1"}',
'', '', 0, '1970-01-01 00:00:00', 0, 0);

updates/postgresql/3.3.4-2014-08-03.sql000064400000000107151161446620012637
0ustar00ALTER TABLE "#__user_profiles" ALTER COLUMN
"profile_value" TYPE text;
updates/postgresql/3.3.6-2014-09-30.sql000064400000000727151161446620012652
0ustar00INSERT INTO "#__update_sites" ("name",
"type", "location", "enabled") VALUES
('Joomla! Update Component Update Site', 'extension',
'https://update.joomla.org/core/extensions/com_joomlaupdate.xml',
1);

INSERT INTO "#__update_sites_extensions"
("update_site_id", "extension_id") VALUES
((SELECT "update_site_id" FROM "#__update_sites" WHERE
"name" = 'Joomla! Update Component Update Site'),
(SELECT "extension_id" FROM "#__extensions" WHERE
"name" = 'com_joomlaupdate'));
updates/postgresql/3.4.0-2014-08-24.sql000064400000000735151161446620012646
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled") VALUES
(700, 'COM_CPANEL_MSG_HTACCESS_TITLE',
'COM_CPANEL_MSG_HTACCESS_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/htaccess.php',
'admin_postinstall_htaccess_condition', '3.4.0', 1);
updates/postgresql/3.4.0-2014-09-01.sql000064400000001347151161446620012642
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(801, 'weblinks', 'package', 'pkg_weblinks',
'', 0, 1, 1, 0, '', '', '',
'', 0, '1970-01-01 00:00:00', 0, 0);

INSERT INTO "#__update_sites" ("name",
"type", "location", "enabled") VALUES
('Weblinks Update Site', 'extension',
'https://raw.githubusercontent.com/joomla-extensions/weblinks/master/manifest.xml',
1);

INSERT INTO "#__update_sites_extensions"
("update_site_id", "extension_id") VALUES
((SELECT "update_site_id" FROM "#__update_sites" WHERE
"name" = 'Weblinks Update Site'), 801);
updates/postgresql/3.4.0-2014-09-16.sql000064400000000460151161446620012643
0ustar00ALTER TABLE "#__redirect_links" ADD COLUMN
"header" INTEGER DEFAULT 301 NOT NULL;
--
-- The following statement has to be disabled because it conflicts with
-- a later change added with Joomla! 3.5.0 for long URLs in this table
--
-- ALTER TABLE "#__redirect_links" ALTER COLUMN
"new_url" DROP NOT NULL;
updates/postgresql/3.4.0-2014-10-20.sql000064400000000070151161446620012623
0ustar00DELETE FROM "#__extensions" WHERE
"extension_id" = 100;
updates/postgresql/3.4.0-2014-12-03.sql000064400000000244151161446620012631
0ustar00UPDATE "#__extensions" SET "protected" =
'0' WHERE "name" = 'plg_editors-xtd_article'
AND "type" = 'plugin' AND "element" =
'article' AND "folder" = 'editors-xtd';
updates/postgresql/3.4.0-2015-01-21.sql000064400000000577151161446620012641
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled") VALUES
(700, 'COM_CPANEL_MSG_ROBOTS_TITLE',
'COM_CPANEL_MSG_ROBOTS_BODY', '',
'com_cpanel', 1, 'message', '', '',
'', '', '3.3.0',
1);updates/postgresql/3.4.0-2015-02-26.sql000064400000001001151161446620012626
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled") VALUES
(700, 'COM_CPANEL_MSG_LANGUAGEACCESS340_TITLE',
'COM_CPANEL_MSG_LANGUAGEACCESS340_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/languageaccess340.php',
'admin_postinstall_languageaccess340_condition',
'3.4.1', 1);
updates/postgresql/3.4.4-2015-07-11.sql000064400000000242151161446620012637
0ustar00ALTER TABLE "#__contentitem_tag_map" DROP CONSTRAINT
"#__uc_ItemnameTagid", ADD CONSTRAINT
"#__uc_ItemnameTagid" UNIQUE ("type_id",
"content_item_id", "tag_id");
updates/postgresql/3.5.0-2015-10-13.sql000064400000000572151161446620012636
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(453, 'plg_editors-xtd_module', 'plugin',
'module', 'editors-xtd', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.5.0-2015-10-26.sql000064400000000133151161446620012633
0ustar00DROP INDEX "#__contentitem_tag_map_idx_tag";
DROP INDEX "#__contentitem_tag_map_idx_type";
updates/postgresql/3.5.0-2015-10-30.sql000064400000000171151161446620012630
0ustar00UPDATE "#__menu" SET "title" =
'com_contact_contacts' WHERE "client_id" = 1 AND
"level" = 2 AND "title" = 'com_contact';
updates/postgresql/3.5.0-2015-11-04.sql000064400000000730151161446620012633
0ustar00DELETE FROM "#__menu" WHERE "title" =
'com_messages_read' AND "client_id" = 1;

INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(452, 'plg_system_updatenotification', 'plugin',
'updatenotification', 'system', 0, 1, 1, 0,
'', '', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.5.0-2015-11-05.sql000064400000001552151161446620012637
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(454, 'plg_system_stats', 'plugin', 'stats',
'system', 0, 1, 1, 0, '', '', '',
'', 0, '1970-01-01 00:00:00', 0, 0);

INSERT INTO "#__postinstall_messages" ("extension_id",
"title_key", "description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled") VALUES
(700, 'COM_CPANEL_MSG_STATS_COLLECTION_TITLE',
'COM_CPANEL_MSG_STATS_COLLECTION_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/statscollection.php',
'admin_postinstall_statscollection_condition', '3.5.0',
1);
updates/postgresql/3.5.0-2016-03-01.sql000064400000000624151161446620012634
0ustar00ALTER TABLE "#__redirect_links" DROP CONSTRAINT
"#__redirect_links_idx_link_old";
ALTER TABLE "#__redirect_links" ALTER COLUMN "old_url"
TYPE character varying(2048);
ALTER TABLE "#__redirect_links" ALTER COLUMN "new_url"
TYPE character varying(2048);
ALTER TABLE "#__redirect_links" ALTER COLUMN "referer"
TYPE character varying(2048);
CREATE INDEX "#__idx_link_old" ON "#__redirect_links"
("old_url");
updates/postgresql/3.6.0-2016-04-01.sql000064400000001651151161446620012637
0ustar00-- Rename update site names
UPDATE "#__update_sites" SET "name" = 'Joomla!
Core' WHERE "name" = 'Joomla Core' AND
"type" = 'collection';
UPDATE "#__update_sites" SET "name" = 'Joomla!
Extension Directory' WHERE "name" = 'Joomla Extension
Directory' AND "type" = 'collection';

UPDATE "#__update_sites" SET "location" =
'https://update.joomla.org/core/list.xml' WHERE "name"
= 'Joomla! Core' AND "type" = 'collection';
UPDATE "#__update_sites" SET "location" =
'https://update.joomla.org/jed/list.xml' WHERE "name" =
'Joomla! Extension Directory' AND "type" =
'collection';
UPDATE "#__update_sites" SET "location" =
'https://update.joomla.org/language/translationlist_3.xml' WHERE
"name" = 'Accredited Joomla! Translations' AND
"type" = 'collection';
UPDATE "#__update_sites" SET "location" =
'https://update.joomla.org/core/extensions/com_joomlaupdate.xml'
WHERE "name" = 'Joomla! Update Component Update Site'
AND "type" = 'extension';
updates/postgresql/3.6.0-2016-04-08.sql000064400000001164151161446620012645
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(802, 'English (United Kingdom)', 'package',
'pkg_en-GB', '', 0, 1, 1, 1, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);

UPDATE "#__update_sites_extensions"
SET "extension_id" = 802
WHERE "update_site_id" IN (
			SELECT "update_site_id"
			FROM "#__update_sites"
			WHERE "name" = 'Accredited Joomla! Translations'
			AND "type" = 'collection'
			)
AND "extension_id" = 600;
updates/postgresql/3.6.0-2016-04-09.sql000064400000000171151161446620012643
0ustar00--
-- Add ACL check for to #__menu_types
--

ALTER TABLE "#__menu_types" ADD COLUMN "asset_id"
bigint DEFAULT 0 NOT
NULL;updates/postgresql/3.6.0-2016-05-06.sql000064400000001363151161446620012645
0ustar00DELETE FROM "#__extensions" WHERE "type" =
'library' AND "element" = 'simplepie';

INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(455, 'plg_installer_packageinstaller', 'plugin',
'packageinstaller', 'installer', 0, 1, 1, 1,
'', '', '', '', 0, '1970-01-01
00:00:00', 1, 0),
(456, 'plg_installer_folderinstaller', 'plugin',
'folderinstaller', 'installer', 0, 1, 1, 1,
'', '', '', '', 0, '1970-01-01
00:00:00', 2, 0),
(457, 'plg_installer_urlinstaller', 'plugin',
'urlinstaller', 'installer', 0, 1, 1, 1, '',
'', '', '', 0, '1970-01-01
00:00:00', 3, 0);
updates/postgresql/3.6.0-2016-06-01.sql000064400000000125151161446620012634
0ustar00UPDATE "#__extensions" SET "protected" = 1,
"enabled" = 1 WHERE "name" = 'com_ajax';
updates/postgresql/3.6.0-2016-06-05.sql000064400000000167151161446620012646
0ustar00--
-- Add ACL check for to #__languages
--

ALTER TABLE "#__languages" ADD COLUMN "asset_id" bigint
DEFAULT 0 NOT
NULL;updates/postgresql/3.6.3-2016-08-15.sql000064400000000211151161446620012642
0ustar00--
-- Increasing size of the URL field in com_newsfeeds
--

ALTER TABLE "#__newsfeeds" ALTER COLUMN "link" TYPE
character varying(2048);
updates/postgresql/3.6.3-2016-08-16.sql000064400000001352151161446620012652
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled") VALUES
(700,
'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME',
'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_BODY',
'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_ACTION',
'plg_system_updatenotification', 1, 'action',
'site://plugins/system/updatenotification/postinstall/updatecachetime.php',
'updatecachetime_postinstall_action',
'site://plugins/system/updatenotification/postinstall/updatecachetime.php',
'updatecachetime_postinstall_condition', '3.6.3',
1);updates/postgresql/3.6.3-2016-10-04.sql000064400000000570151161446620012641
0ustar00ALTER TABLE "#__finder_links" ALTER COLUMN
"title" TYPE character varying(400);
ALTER TABLE "#__finder_links" ALTER COLUMN
"description" TYPE text;
--
-- The following statement has to be disabled because it conflicts with
-- a later change added with Joomla! 3.9.16, see file 3.9.16-2020-02-15.sql
--
-- ALTER TABLE "#__finder_links" ALTER COLUMN
"description" SET NOT NULL;
updates/postgresql/3.7.0-2016-08-06.sql000064400000000610151161446620012643
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(458, 'plg_quickicon_phpversioncheck', 'plugin',
'phpversioncheck', 'quickicon', 0, 1, 1, 1,
'', '', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.7.0-2016-08-22.sql000064400000000566151161446620012653
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(459, 'plg_editors-xtd_menu', 'plugin',
'menu', 'editors-xtd', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.7.0-2016-08-29.sql000064400000013042151161446620012653
0ustar00--
-- Table: #__fields
--
CREATE TABLE "#__fields" (
  "id" serial NOT NULL,
  "asset_id" bigint DEFAULT 0 NOT NULL,
  "context" varchar(255) DEFAULT '' NOT NULL,
  "group_id" bigint DEFAULT 0 NOT NULL,
  "title" varchar(255) DEFAULT '' NOT NULL,
  "name" varchar(255) DEFAULT '' NOT NULL,
  "label" varchar(255) DEFAULT '' NOT NULL,
  "default_value" text,
  "type" varchar(255) DEFAULT 'text' NOT NULL,
  "note" varchar(255) DEFAULT '' NOT NULL,
  "description" text,
  "state" smallint DEFAULT 0 NOT NULL,
  "required" smallint DEFAULT 0 NOT NULL,
  "checked_out" integer DEFAULT 0 NOT NULL,
  "checked_out_time" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "ordering" bigint DEFAULT 0 NOT NULL,
  "params" text,
  "fieldparams" text,
  "language" varchar(7) DEFAULT '' NOT NULL,
  "created_time" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "created_user_id" bigint DEFAULT 0 NOT NULL,
  "modified_time" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "modified_by" bigint DEFAULT 0 NOT NULL,
  "access" bigint DEFAULT 0 NOT NULL,
  PRIMARY KEY ("id")
);
CREATE INDEX "#__fields_idx_checked_out" ON "#__fields"
("checked_out");
CREATE INDEX "#__fields_idx_state" ON "#__fields"
("state");
CREATE INDEX "#__fields_idx_created_user_id" ON
"#__fields" ("created_user_id");
CREATE INDEX "#__fields_idx_access" ON "#__fields"
("access");
CREATE INDEX "#__fields_idx_context" ON "#__fields"
("context");
CREATE INDEX "#__fields_idx_language" ON "#__fields"
("language");

--
-- Table: #__fields_categories
--
CREATE TABLE "#__fields_categories" (
  "field_id" bigint DEFAULT 0 NOT NULL,
  "category_id" bigint DEFAULT 0 NOT NULL,
  PRIMARY KEY ("field_id", "category_id")
);

--
-- Table: #__fields_groups
--
CREATE TABLE "#__fields_groups" (
  "id" serial NOT NULL,
  "asset_id" bigint DEFAULT 0 NOT NULL,
  "context" varchar(255) DEFAULT '' NOT NULL,
  "title" varchar(255) DEFAULT '' NOT NULL,
  "note" varchar(255) DEFAULT '' NOT NULL,
  "description" text,
  "state" smallint DEFAULT 0 NOT NULL,
  "checked_out" integer DEFAULT 0 NOT NULL,
  "checked_out_time" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "ordering" bigint DEFAULT 0 NOT NULL,
  "language" varchar(7) DEFAULT '' NOT NULL,
  "created" timestamp without time zone DEFAULT '1970-01-01
00:00:00' NOT NULL,
  "created_by" bigint DEFAULT 0 NOT NULL,
  "modified" timestamp without time zone DEFAULT '1970-01-01
00:00:00' NOT NULL,
  "modified_by" bigint DEFAULT 0 NOT NULL,
  "access" bigint DEFAULT 0 NOT NULL,
  PRIMARY KEY ("id")
);
CREATE INDEX "#__fields_groups_idx_checked_out" ON
"#__fields_groups" ("checked_out");
CREATE INDEX "#__fields_groups_idx_state" ON
"#__fields_groups" ("state");
CREATE INDEX "#__fields_groups_idx_created_by" ON
"#__fields_groups" ("created_by");
CREATE INDEX "#__fields_groups_idx_access" ON
"#__fields_groups" ("access");
CREATE INDEX "#__fields_groups_idx_context" ON
"#__fields_groups" ("context");
CREATE INDEX "#__fields_groups_idx_language" ON
"#__fields_groups" ("language");

--
-- Table: #__fields_values
--
CREATE TABLE "#__fields_values" (
"field_id" bigint DEFAULT 0 NOT NULL,
"item_id" varchar(255) DEFAULT '' NOT NULL,
"value" text
);
CREATE INDEX "#__fields_values_idx_field_id" ON
"#__fields_values" ("field_id");
CREATE INDEX "#__fields_values_idx_item_id" ON
"#__fields_values" ("item_id");

INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(33, 'com_fields', 'component', 'com_fields',
'', 1, 1, 1, 1, '', '', '',
'', 0, '1970-01-01 00:00:00', 0, 0),
(461, 'plg_system_fields', 'plugin',
'fields', 'system', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(462, 'plg_fields_calendar', 'plugin',
'calendar', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(463, 'plg_fields_checkboxes', 'plugin',
'checkboxes', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(464, 'plg_fields_color', 'plugin', 'color',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '1970-01-01 00:00:00', 0, 0),
(465, 'plg_fields_editor', 'plugin',
'editor', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(466, 'plg_fields_imagelist', 'plugin',
'imagelist', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(467, 'plg_fields_integer', 'plugin',
'integer', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(468, 'plg_fields_list', 'plugin', 'list',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '1970-01-01 00:00:00', 0, 0),
(469, 'plg_fields_media', 'plugin', 'media',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '1970-01-01 00:00:00', 0, 0),
(470, 'plg_fields_radio', 'plugin', 'radio',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '1970-01-01 00:00:00', 0, 0),
(471, 'plg_fields_sql', 'plugin', 'sql',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '1970-01-01 00:00:00', 0, 0),
(472, 'plg_fields_text', 'plugin', 'text',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '1970-01-01 00:00:00', 0, 0),
(473, 'plg_fields_textarea', 'plugin',
'textarea', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(474, 'plg_fields_url', 'plugin', 'url',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '1970-01-01 00:00:00', 0, 0),
(475, 'plg_fields_user', 'plugin', 'user',
'fields', 0, 1, 1, 0, '', '', '',
'', 0, '1970-01-01 00:00:00', 0, 0),
(476, 'plg_fields_usergrouplist', 'plugin',
'usergrouplist', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);

updates/postgresql/3.7.0-2016-09-29.sql000064400000000777151161446620012667
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled")
VALUES
(700, 'COM_CPANEL_MSG_JOOMLA40_PRE_CHECKS_TITLE',
'COM_CPANEL_MSG_JOOMLA40_PRE_CHECKS_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/joomla40checks.php',
'admin_postinstall_joomla40checks_condition', '3.7.0',
1);
updates/postgresql/3.7.0-2016-10-01.sql000064400000000574151161446620012640
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(460, 'plg_editors-xtd_contact', 'plugin',
'contact', 'editors-xtd', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.7.0-2016-10-02.sql000064400000000101151161446620012623
0ustar00ALTER TABLE "#__session" ALTER COLUMN
"client_id" DROP NOT NULL;
updates/postgresql/3.7.0-2016-11-04.sql000064400000000101151161446620012626
0ustar00ALTER TABLE "#__extensions" ALTER COLUMN
"enabled" SET DEFAULT
0;updates/postgresql/3.7.0-2016-11-19.sql000064400000000243151161446620012643
0ustar00ALTER TABLE "#__menu_types" ADD COLUMN
"client_id" int DEFAULT 0 NOT NULL;

UPDATE "#__menu" SET "published" = 1 WHERE
"menutype" = 'main' OR "menutype" =
'menu';
updates/postgresql/3.7.0-2016-11-21.sql000064400000000200151161446620012625
0ustar00-- Replace language image UNIQUE index for a normal INDEX.
ALTER TABLE "#__languages" DROP CONSTRAINT
"#__languages_idx_image";
updates/postgresql/3.7.0-2016-11-24.sql000064400000000453151161446620012642
0ustar00ALTER TABLE "#__extensions" ADD COLUMN
"package_id" bigint DEFAULT 0 NOT NULL;

UPDATE "#__extensions"
SET "package_id" = sub.extension_id
FROM (SELECT "extension_id" FROM "#__extensions" WHERE
"type" = 'package' AND "element" =
'pkg_en-GB') AS sub
WHERE "type"= 'language' AND "element" =
'en-GB';
updates/postgresql/3.7.0-2017-01-08.sql000064400000001442151161446620012643
0ustar00-- Normalize ucm_content_table default values.
ALTER TABLE "#__ucm_content" ALTER COLUMN "core_title"
SET DEFAULT '';

--
-- The following statements have to be disabled because they conflict with
-- a later change added with Joomla! 3.9.16, see file 3.9.16-2020-02-15.sql
--
-- ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_body" SET DEFAULT '';
-- ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_params" SET DEFAULT '';
-- ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_metadata" SET DEFAULT '';
-- ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_images" SET DEFAULT '';
-- ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_urls" SET DEFAULT '';
-- ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_metakey" SET DEFAULT '';
-- ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_metadesc" SET DEFAULT '';
updates/postgresql/3.7.0-2017-01-09.sql000064400000001031151161446620012636
0ustar00-- Normalize categories table default values.
ALTER TABLE "#__categories" ALTER COLUMN "title" SET
DEFAULT '';
--
-- The following statement has to be disabled because it conflicts with
-- a later change added with Joomla! 3.9.16, see file 3.9.16-2020-02-15.sql
--
-- ALTER TABLE "#__categories" ALTER COLUMN "params"
SET DEFAULT '';
ALTER TABLE "#__categories" ALTER COLUMN "metadesc" SET
DEFAULT '';
ALTER TABLE "#__categories" ALTER COLUMN "metakey" SET
DEFAULT '';
ALTER TABLE "#__categories" ALTER COLUMN "metadata" SET
DEFAULT '';
updates/postgresql/3.7.0-2017-01-15.sql000064400000000565151161446620012646
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(34, 'com_associations', 'component',
'com_associations', '', 1, 1, 1, 1, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.7.0-2017-01-17.sql000064400000004707151161446620012652
0ustar00-- Sync menutype for admin menu and set client_id correct

-- Note: This file had to be modified with Joomla 3.7.3 because the
-- original version made site menus disappear if there were menu types
-- "main" or "menu" defined for the site.

-- Step 1: If there is any user-defined menu and menu type "main"
for the site
-- (client_id = 0), then change the menu type for the menu, any module and
the
-- menu type to something very likely not being used yet and just within
the
-- max. length of 24 characters.
UPDATE "#__menu"
   SET "menutype" = 'main_is_reserved_133C585'
 WHERE "client_id" = 0
   AND "menutype" = 'main'
   AND (SELECT COUNT("id") FROM "#__menu_types" WHERE
"client_id" = 0 AND "menutype" = 'main') >
0;

UPDATE "#__modules"
   SET "params" =
REPLACE("params",'"menutype":"main"','"menutype":"main_is_reserved_133C585"')
 WHERE "client_id" = 0
   AND (SELECT COUNT("id") FROM "#__menu_types" WHERE
"client_id" = 0 AND "menutype" = 'main') >
0;

UPDATE "#__menu_types"
   SET "menutype" = 'main_is_reserved_133C585'
 WHERE "client_id" = 0 
   AND "menutype" = 'main';

-- Step 2: What remains now are the main menu items, possibly with wrong
-- client_id if there was nothing hit by step 1 because there was no record
in
-- the menu types table with client_id = 0.
UPDATE "#__menu"
   SET "client_id" = 1
 WHERE "menutype" = 'main';

-- Step 3: If we have menu items for the admin using menutype =
"menu" and
-- having correct client_id = 1, we can be sure they belong to the admin
menu
-- and so rename the menutype.
UPDATE "#__menu"
   SET "menutype" = 'main'
 WHERE "client_id" = 1 
   AND "menutype" = 'menu';

-- Step 4: If there is no user-defined menu type "menu" for the
site, we can
-- assume that any menu items for that menu type belong to the admin.
-- Fix the client_id for those as it was done with the original version of
this
-- schema update script here.
UPDATE "#__menu"
   SET "menutype" = 'main',
       "client_id" = 1
 WHERE "menutype" = 'menu'
   AND (SELECT COUNT("id") FROM "#__menu_types" WHERE
"client_id" = 0 AND "menutype" = 'menu') >
0;

-- Step 5: For the standard admin menu items of menutype "main"
there is no record
-- in the menutype table on a clean Joomla installation. If there is one,
it is a
-- mistake and it should be deleted. This is also the case with menu type
"menu"
-- for the admin, for which we changed the menutype of the menu items in
step 3.
DELETE FROM "#__menu_types"
 WHERE "client_id" = 1
   AND "menutype" IN ('main', 'menu');
updates/postgresql/3.7.0-2017-01-31.sql000064400000000562151161446620012641
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(477, 'plg_content_fields', 'plugin',
'fields', 'content', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.7.0-2017-02-02.sql000064400000000572151161446620012641
0ustar00INSERT INTO "#__extensions" ("extension_id",
"name", "type", "element",
"folder", "client_id", "enabled",
"access", "protected", "manifest_cache",
"params", "custom_data", "system_data",
"checked_out", "checked_out_time",
"ordering", "state") VALUES
(478, 'plg_editors-xtd_fields', 'plugin',
'fields', 'editors-xtd', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.7.0-2017-02-15.sql000064400000000171151161446620012640
0ustar00-- Normalize redirect_links table default values.
ALTER TABLE "#__redirect_links" ALTER COLUMN "comment"
SET DEFAULT '';
updates/postgresql/3.7.0-2017-02-17.sql000064400000001052151161446620012641
0ustar00-- Normalize contact_details table default values.
ALTER TABLE "#__contact_details" ALTER COLUMN "name"
DROP DEFAULT;
ALTER TABLE "#__contact_details" ALTER COLUMN "alias"
DROP DEFAULT;
ALTER TABLE "#__contact_details" ALTER COLUMN
"sortname1" SET DEFAULT '';
ALTER TABLE "#__contact_details" ALTER COLUMN
"sortname2" SET DEFAULT '';
ALTER TABLE "#__contact_details" ALTER COLUMN
"sortname3" SET DEFAULT '';
ALTER TABLE "#__contact_details" ALTER COLUMN
"language" DROP DEFAULT;
ALTER TABLE "#__contact_details" ALTER COLUMN
"xreference" SET DEFAULT '';
updates/postgresql/3.7.0-2017-03-03.sql000064400000000413151161446620012635
0ustar00ALTER TABLE "#__extensions" ALTER COLUMN
"custom_data" DROP DEFAULT;
ALTER TABLE "#__extensions" ALTER COLUMN "system_data"
DROP DEFAULT;
ALTER TABLE "#__updates" ALTER COLUMN "data" DROP
DEFAULT;

ALTER TABLE "#__newsfeeds" ALTER COLUMN "xreference"
SET DEFAULT '';
updates/postgresql/3.7.0-2017-03-09.sql000064400000001353151161446620012647
0ustar00UPDATE "#__categories" SET published = 1 WHERE alias =
'root';
UPDATE "#__categories" AS "c"
SET published = c2.newPublished
FROM (
SELECT c2.id, CASE WHEN MIN(p.published) > 0 THEN MAX(p.published) ELSE
MIN(p.published) END AS newPublished
FROM "#__categories" AS "c2"
INNER JOIN "#__categories" AS "p" ON p.lft <= c2.lft
AND c2.rgt <= p.rgt
GROUP BY c2.id) AS c2
WHERE c2.id = c.id;

UPDATE "#__menu" SET published = 1 WHERE alias =
'root';
UPDATE "#__menu" AS "c"
SET published = c2.newPublished
FROM (
SELECT c2.id, CASE WHEN MIN(p.published) > 0 THEN MAX(p.published) ELSE
MIN(p.published) END AS newPublished
FROM "#__menu" AS "c2"
INNER JOIN "#__menu" AS "p" ON p.lft <= c2.lft AND
c2.rgt <= p.rgt
GROUP BY c2.id) AS c2
WHERE c2.id = c.id;
updates/postgresql/3.7.0-2017-04-10.sql000064400000001144151161446620012636
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled")
VALUES
(700, 'TPL_HATHOR_MESSAGE_POSTINSTALL_TITLE',
'TPL_HATHOR_MESSAGE_POSTINSTALL_BODY',
'TPL_HATHOR_MESSAGE_POSTINSTALL_ACTION', 'tpl_hathor',
1, 'action',
'admin://templates/hathor/postinstall/hathormessage.php',
'hathormessage_postinstall_action',
'admin://templates/hathor/postinstall/hathormessage.php',
'hathormessage_postinstall_condition', '3.7.0',
1);updates/postgresql/3.7.0-2017-04-19.sql000064400000000247151161446620012652
0ustar00-- Set integer field default values.
UPDATE "#__extensions" SET "params" =
'{"multiple":"0","first":"1","last":"100","step":"1"}'
WHERE "name" = 'plg_fields_integer';
updates/postgresql/3.7.4-2017-07-05.sql000064400000000134151161446620012647
0ustar00DELETE FROM "#__postinstall_messages" WHERE
"title_key" =
'COM_CPANEL_MSG_PHPVERSION_TITLE';updates/postgresql/3.8.0-2017-07-28.sql000064400000000102151161446630012645
0ustar00ALTER TABLE "#__fields_groups" ADD COLUMN
"params" TEXT NOT NULL;
updates/postgresql/3.8.0-2017-07-31.sql000064400000001003151161446630012640
0ustar00INSERT INTO "#__extensions"
("extension_id", "package_id", "name",
"type", "element", "folder",
"client_id", "enabled", "access",
"protected", "manifest_cache", "params",
"custom_data", "system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
  (318, 0, 'mod_sampledata', 'module',
'mod_sampledata', '', 1, 0, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0),
  (479, 0, 'plg_sampledata_blog', 'plugin',
'blog', 'sampledata', 0, 0, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.8.2-2017-10-14.sql000064400000000156151161446630012645
0ustar00--
-- Add index for alias check #__content
--

CREATE INDEX "#__content_idx_alias" ON "#__content"
("alias");
updates/postgresql/3.8.4-2018-01-16.sql000064400000000110151161446630012640
0ustar00DROP INDEX "#__user_keys_series_2";
DROP INDEX "#__user_keys_series_3";
updates/postgresql/3.8.6-2018-02-14.sql000064400000002017151161446630012651
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(480, 0, 'plg_system_sessiongc', 'plugin',
'sessiongc', 'system', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);

INSERT INTO "#__postinstall_messages" ("extension_id",
"title_key", "description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled")
VALUES
(700, 'PLG_PLG_RECAPTCHA_VERSION_1_POSTINSTALL_TITLE',
'PLG_PLG_RECAPTCHA_VERSION_1_POSTINSTALL_BODY',
'PLG_PLG_RECAPTCHA_VERSION_1_POSTINSTALL_ACTION',
'plg_captcha_recaptcha', 1, 'action',
'site://plugins/captcha/recaptcha/postinstall/actions.php',
'recaptcha_postinstall_action',
'site://plugins/captcha/recaptcha/postinstall/actions.php',
'recaptcha_postinstall_condition', '3.8.6', 1);
updates/postgresql/3.8.8-2018-05-18.sql000064400000001021151161446630012654
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled")
VALUES
(700, 'COM_CPANEL_MSG_UPDATEDEFAULTSETTINGS_TITLE',
'COM_CPANEL_MSG_UPDATEDEFAULTSETTINGS_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/updatedefaultsettings.php',
'admin_postinstall_updatedefaultsettings_condition',
'3.8.8', 1);
updates/postgresql/3.8.9-2018-06-19.sql000064400000000152151161446630012663
0ustar00-- Enable Sample Data Module.
UPDATE "#__extensions" SET "enabled" = '1'
WHERE "name" = 'mod_sampledata';
updates/postgresql/3.9.0-2018-05-02.sql000064400000002044151161446630012644
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(35, 0, 'com_privacy', 'component',
'com_privacy', '', 1, 1, 1, 1, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);

CREATE TABLE "#__privacy_requests" (
  "id" serial NOT NULL,
  "email" varchar(100) DEFAULT '' NOT NULL,
  "requested_at" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "status" smallint DEFAULT 0 NOT NULL,
  "request_type" varchar(25) DEFAULT '' NOT NULL,
  "confirm_token" varchar(100) DEFAULT '' NOT NULL,
  "confirm_token_created_at" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  "checked_out" integer DEFAULT 0 NOT NULL,
  "checked_out_time" timestamp without time zone DEFAULT
'1970-01-01 00:00:00' NOT NULL,
  PRIMARY KEY ("id")
);
CREATE INDEX "#__privacy_requests_idx_checked_out" ON
"#__privacy_requests" ("checked_out");
updates/postgresql/3.9.0-2018-05-03.sql000064400000000625151161446630012650
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(482, 0, 'plg_content_confirmconsent', 'plugin',
'confirmconsent', 'content', 0, 0, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.9.0-2018-05-05.sql000064400000010621151161446630012647
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(36, 0, 'com_actionlogs', 'component',
'com_actionlogs', '', 1, 1, 1, 1, '',
'{"ip_logging":0,"csv_delimiter":",","loggable_extensions":["com_banners","com_cache","com_categories","com_config","com_contact","com_content","com_installer","com_media","com_menus","com_messages","com_modules","com_newsfeeds","com_plugins","com_redirect","com_tags","com_templates","com_users"]}',
'', '', 0, '1970-01-01 00:00:00', 0, 0),
(483, 0, 'plg_system_actionlogs', 'plugin',
'actionlogs', 'system', 0, 0, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(484, 0, 'plg_actionlog_joomla', 'plugin',
'joomla', 'actionlog', 0, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);

--
-- Table: #__action_logs
--
CREATE TABLE "#__action_logs" (
  "id" serial NOT NULL,
  "message_language_key" varchar(255) NOT NULL DEFAULT
'',
  "message" text NOT NULL DEFAULT '',
  "log_date" timestamp without time zone DEFAULT '1970-01-01
00:00:00' NOT NULL,
  "extension" varchar(50) NOT NULL DEFAULT '',
  "user_id" integer DEFAULT 0 NOT NULL,
  "item_id" integer DEFAULT 0 NOT NULL,
  "ip_address" varchar(40) NOT NULL DEFAULT '0.0.0.0',
  PRIMARY KEY ("id")
);

-- Table: #__action_logs_extensions
--
CREATE TABLE "#__action_logs_extensions" (
  "id" serial NOT NULL,
  "extension" varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY ("id")
);

--
-- Dumping data for table '#__action_logs_extensions'
--
INSERT INTO "#__action_logs_extensions" ("id",
"extension") VALUES
(1, 'com_banners'),
(2, 'com_cache'),
(3, 'com_categories'),
(4, 'com_config'),
(5, 'com_contact'),
(6, 'com_content'),
(7, 'com_installer'),
(8, 'com_media'),
(9, 'com_menus'),
(10, 'com_messages'),
(11, 'com_modules'),
(12, 'com_newsfeeds'),
(13, 'com_plugins'),
(14, 'com_redirect'),
(15, 'com_tags'),
(16, 'com_templates'),
(17, 'com_users');

SELECT setval('#__action_logs_extensions_id_seq', 18, false);
-- --------------------------------------------------------

--
-- Table: #__action_log_config
--
CREATE TABLE "#__action_log_config" (
  "id" serial NOT NULL,
  "type_title" varchar(255) NOT NULL DEFAULT '',
  "type_alias" varchar(255) NOT NULL DEFAULT '',
  "id_holder" varchar(255) NULL,
  "title_holder" varchar(255) NULL,
  "table_name" varchar(255) NULL,
  "text_prefix" varchar(255) NULL,
  PRIMARY KEY ("id")
);

--
-- Dumping data for table #__action_log_config
--
INSERT INTO "#__action_log_config" ("id",
"type_title", "type_alias", "id_holder",
"title_holder", "table_name", "text_prefix")
VALUES
(1, 'article', 'com_content.article', 'id'
,'title' , '#__content',
'PLG_ACTIONLOG_JOOMLA'),
(2, 'article', 'com_content.form', 'id',
'title' , '#__content',
'PLG_ACTIONLOG_JOOMLA'),
(3, 'banner', 'com_banners.banner', 'id'
,'name' , '#__banners',
'PLG_ACTIONLOG_JOOMLA'),
(4, 'user_note', 'com_users.note', 'id',
'subject' ,'#__user_notes',
'PLG_ACTIONLOG_JOOMLA'),
(5, 'media', 'com_media.file', '' ,
'name' , '',  'PLG_ACTIONLOG_JOOMLA'),
(6, 'category', 'com_categories.category',
'id' , 'title' , '#__categories',
'PLG_ACTIONLOG_JOOMLA'),
(7, 'menu', 'com_menus.menu', 'id'
,'title' , '#__menu_types',
'PLG_ACTIONLOG_JOOMLA'),
(8, 'menu_item', 'com_menus.item', 'id' ,
'title' , '#__menu', 'PLG_ACTIONLOG_JOOMLA'),
(9, 'newsfeed', 'com_newsfeeds.newsfeed',
'id' ,'name' , '#__newsfeeds',
'PLG_ACTIONLOG_JOOMLA'),
(10, 'link', 'com_redirect.link', 'id',
'old_url' , '#__redirect_links',
'PLG_ACTIONLOG_JOOMLA'),
(11, 'tag', 'com_tags.tag', 'id',
'title' , '#__tags', 'PLG_ACTIONLOG_JOOMLA'),
(12, 'style', 'com_templates.style', 'id' ,
'title' , '#__template_styles',
'PLG_ACTIONLOG_JOOMLA'),
(13, 'plugin', 'com_plugins.plugin',
'extension_id' , 'name' , '#__extensions',
'PLG_ACTIONLOG_JOOMLA'),
(14, 'component_config', 'com_config.component',
'extension_id' , 'name', '',
'PLG_ACTIONLOG_JOOMLA'),
(15, 'contact', 'com_contact.contact', 'id',
'name', '#__contact_details',
'PLG_ACTIONLOG_JOOMLA'),
(16, 'module', 'com_modules.module', 'id'
,'title', '#__modules',
'PLG_ACTIONLOG_JOOMLA'),
(17, 'access_level', 'com_users.level', 'id'
, 'title', '#__viewlevels',
'PLG_ACTIONLOG_JOOMLA'),
(18, 'banner_client', 'com_banners.client',
'id', 'name', '#__banner_clients',
'PLG_ACTIONLOG_JOOMLA');


SELECT setval('#__action_log_config_id_seq', 18, false);
updates/postgresql/3.9.0-2018-05-19.sql000064400000000611151161446630012652
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(481, 0, 'plg_fields_repeatable', 'plugin',
'repeatable', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.9.0-2018-05-20.sql000064400000000610151161446630012641
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(319, 0, 'mod_latestactions', 'module',
'mod_latestactions', '', 1, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.9.0-2018-05-24.sql000064400000001611151161446630012647
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(485, 0, 'plg_system_privacyconsent', 'plugin',
'privacyconsent', 'system', 0, 0, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);

--
-- Table structure for table `#__privacy_consents`
--

CREATE TABLE "#__privacy_consents" (
  "id" serial NOT NULL,
  "user_id" bigint DEFAULT 0 NOT NULL,
  "created" timestamp without time zone DEFAULT '1970-01-01
00:00:00' NOT NULL,
  "subject" varchar(255) DEFAULT '' NOT NULL,
  "body" text NOT NULL,
  "remind" smallint DEFAULT 0 NOT NULL,
  "token" varchar(100) DEFAULT '' NOT NULL,
  PRIMARY KEY ("id")
);
CREATE INDEX "#__privacy_consents_idx_user_id" ON
"#__privacy_consents" ("user_id");
updates/postgresql/3.9.0-2018-05-27.sql000064400000001006151161446630012650
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(486, 0, 'plg_system_logrotation', 'plugin',
'logrotation', 'system', 0, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(487, 0, 'plg_privacy_user', 'plugin',
'user', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.9.0-2018-06-02.sql000064400000001535151161446630012651
0ustar00ALTER TABLE "#__content" ADD COLUMN "note"
VARCHAR(255) NOT NULL DEFAULT '';

UPDATE "#__content_types" SET "field_mappings" = 
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"attribs",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"asset_id",
"note":"note"},
"special":{"fulltext":"fulltext"}}'
WHERE "type_alias" = 'com_content.article';
updates/postgresql/3.9.0-2018-06-12.sql000064400000000620151161446630012644
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(320, 0, 'mod_privacy_dashboard', 'module',
'mod_privacy_dashboard', '', 1, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.9.0-2018-06-13.sql000064400000000625151161446630012652
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(488, 0, 'plg_quickicon_privacycheck', 'plugin',
'privacycheck', 'quickicon', 0, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.9.0-2018-06-14.sql000064400000001022151161446630012643
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled") VALUES
(700, 'COM_ACTIONLOGS_POSTINSTALL_TITLE',
'COM_ACTIONLOGS_POSTINSTALL_BODY', '',
'com_actionlogs', 1, 'message', '',
'', '', '', '3.9.0', 1),
(700, 'COM_PRIVACY_POSTINSTALL_TITLE',
'COM_PRIVACY_POSTINSTALL_BODY', '',
'com_privacy', 1, 'message', '',
'', '', '', '3.9.0',
1);updates/postgresql/3.9.0-2018-06-17.sql000064400000000575151161446630012662
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(489, 0, 'plg_user_terms', 'plugin', 'terms',
'user', 0, 0, 1, 0, '', '{}', '',
'', 0, '1970-01-01 00:00:00', 0, 0);
updates/postgresql/3.9.0-2018-07-09.sql000064400000001205151161446630012653
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(490, 0, 'plg_privacy_contact', 'plugin',
'contact', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(491, 0, 'plg_privacy_content', 'plugin',
'content', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0),
(492, 0, 'plg_privacy_message', 'plugin',
'message', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.9.0-2018-07-10.sql000064400000000346151161446630012650
0ustar00INSERT INTO "#__action_log_config" ("id",
"type_title", "type_alias", "id_holder",
"title_holder", "table_name", "text_prefix")
	VALUES (19, 'application_config',
'com_config.application', '', 'name',
'', 'PLG_ACTIONLOG_JOOMLA');
updates/postgresql/3.9.0-2018-07-11.sql000064400000000615151161446630012650
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(493, 0, 'plg_privacy_actionlogs', 'plugin',
'actionlogs', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.9.0-2018-08-12.sql000064400000000121151161446630012642
0ustar00ALTER TABLE "#__privacy_consents" ADD COLUMN
"state" smallint DEFAULT 1 NOT
NULL;updates/postgresql/3.9.0-2018-08-28.sql000064400000000736151161446630012665
0ustar00ALTER TABLE "#__session" ALTER COLUMN
"session_id" DROP DEFAULT;
ALTER TABLE "#__session" ALTER COLUMN "session_id" TYPE
bytea USING "session_id"::bytea;
ALTER TABLE "#__session" ALTER COLUMN "session_id" SET
NOT NULL;
ALTER TABLE "#__session" ALTER COLUMN "time" DROP
DEFAULT,
                         ALTER COLUMN "time" TYPE integer USING
"time"::integer;
ALTER TABLE "#__session" ALTER COLUMN "time" SET
DEFAULT 0;
ALTER TABLE "#__session" ALTER COLUMN "time" SET NOT
NULL;
updates/postgresql/3.9.0-2018-08-29.sql000064400000000717151161446630012665
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(494, 0, 'plg_captcha_recaptcha_invisible', 'plugin',
'recaptcha_invisible', 'captcha', 0, 0, 1, 0,
'',
'{"public_key":"","private_key":"","theme":"clean"}',
'', '', 0, '1970-01-01 00:00:00', 0, 0);
updates/postgresql/3.9.0-2018-09-04.sql000064400000000362151161446630012653
0ustar00CREATE TABLE "#__action_logs_users" (
  "user_id" integer NOT NULL,
  "notify" integer NOT NULL,
  "extensions" text NOT NULL,
  PRIMARY KEY ("user_id")
);

CREATE INDEX "#__action_logs_users_idx_notify" ON
"#__action_logs_users" ("notify");
updates/postgresql/3.9.0-2018-10-15.sql000064400000000557151161446630012653
0ustar00CREATE INDEX "#__action_logs_idx_user_id" ON
"#__action_logs" ("user_id"); 
CREATE INDEX "#__action_logs_idx_user_id_logdate" ON
"#__action_logs" ("user_id", "log_date"); 
CREATE INDEX "#__action_logs_idx_user_id_extension" ON
"#__action_logs" ("user_id", "extension");
CREATE INDEX "#__action_logs_idx_extension_itemid" ON
"#__action_logs" ("extension", "item_id");
updates/postgresql/3.9.0-2018-10-20.sql000064400000000261151161446630012637
0ustar00DROP INDEX "#__privacy_requests_idx_checked_out";
ALTER TABLE "#__privacy_requests" DROP COLUMN
"checked_out";
ALTER TABLE "#__privacy_requests" DROP COLUMN
"checked_out_time";
updates/postgresql/3.9.0-2018-10-21.sql000064400000000611151161446630012637
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(495, 0, 'plg_privacy_consents', 'plugin',
'consents', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '1970-01-01
00:00:00', 0, 0);
updates/postgresql/3.9.10-2019-07-09.sql000064400000000226151161446630012737
0ustar00ALTER TABLE "#__template_styles" ALTER COLUMN
"home" TYPE character varying(7);
ALTER TABLE "#__template_styles" ALTER COLUMN "home"
SET DEFAULT '0';
updates/postgresql/3.9.15-2020-01-08.sql000064400000000104151161446630012720
0ustar00CREATE INDEX "#__users_email_lower" ON
"#__users" (lower("email"));
updates/postgresql/3.9.16-2020-02-15.sql000064400000004320151161446630012724
0ustar00ALTER TABLE "#__categories" ALTER COLUMN
"description" DROP NOT NULL;
ALTER TABLE "#__categories" ALTER COLUMN "description"
DROP DEFAULT;

ALTER TABLE "#__categories" ALTER COLUMN "params" DROP
NOT NULL;
ALTER TABLE "#__categories" ALTER COLUMN "params" DROP
DEFAULT;

ALTER TABLE "#__fields" ALTER COLUMN "default_value"
DROP NOT NULL;
ALTER TABLE "#__fields" ALTER COLUMN "default_value"
DROP DEFAULT;

ALTER TABLE "#__fields" ALTER COLUMN "description" DROP
DEFAULT;

ALTER TABLE "#__fields" ALTER COLUMN "params" DROP
DEFAULT;

ALTER TABLE "#__fields" ALTER COLUMN "fieldparams" DROP
DEFAULT;

ALTER TABLE "#__fields_groups" ALTER COLUMN "params"
DROP DEFAULT;

ALTER TABLE "#__fields_values" ALTER COLUMN "value"
DROP NOT NULL;
ALTER TABLE "#__fields_values" ALTER COLUMN "value"
DROP DEFAULT;

ALTER TABLE "#__finder_links" ALTER COLUMN
"description" DROP NOT NULL;
ALTER TABLE "#__finder_links" ALTER COLUMN
"description" DROP DEFAULT;

ALTER TABLE "#__menu" ALTER COLUMN "params" DROP
DEFAULT;

ALTER TABLE "#__modules" ALTER COLUMN "content" DROP
NOT NULL;
ALTER TABLE "#__modules" ALTER COLUMN "content" DROP
DEFAULT;

ALTER TABLE "#__tags" ALTER COLUMN "description" DROP
DEFAULT;

ALTER TABLE "#__ucm_content" ALTER COLUMN "core_body"
DROP NOT NULL;
ALTER TABLE "#__ucm_content" ALTER COLUMN "core_body"
DROP DEFAULT;

ALTER TABLE "#__ucm_content" ALTER COLUMN "core_params"
DROP NOT NULL;
ALTER TABLE "#__ucm_content" ALTER COLUMN "core_params"
DROP DEFAULT;

ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_metadata" DROP NOT NULL;
ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_metadata" DROP DEFAULT;

ALTER TABLE "#__ucm_content" ALTER COLUMN "core_images"
DROP NOT NULL;
ALTER TABLE "#__ucm_content" ALTER COLUMN "core_images"
DROP DEFAULT;

ALTER TABLE "#__ucm_content" ALTER COLUMN "core_urls"
DROP NOT NULL;
ALTER TABLE "#__ucm_content" ALTER COLUMN "core_urls"
DROP DEFAULT;

ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_metakey" DROP NOT NULL;
ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_metakey" DROP DEFAULT;

ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_metadesc" DROP NOT NULL;
ALTER TABLE "#__ucm_content" ALTER COLUMN
"core_metadesc" DROP DEFAULT;

ALTER TABLE "#__action_logs" ALTER COLUMN "message"
DROP DEFAULT;
updates/postgresql/3.9.16-2020-03-04.sql000064400000000175151161446630012727
0ustar00DROP INDEX IF EXISTS "#__users_username";
ALTER TABLE "#__users" ADD CONSTRAINT
"#__users_idx_username" UNIQUE ("username");
updates/postgresql/3.9.19-2020-06-01.sql000064400000000766151161446630012740
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled")
VALUES
(700, 'COM_CPANEL_MSG_TEXTFILTER3919_TITLE',
'COM_CPANEL_MSG_TEXTFILTER3919_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/textfilter3919.php',
'admin_postinstall_textfilter3919_condition', '3.9.19',
1);
updates/postgresql/3.9.21-2020-08-02.sql000064400000000752151161446630012727
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled")
VALUES
(700, 'COM_CPANEL_MSG_HTACCESSSVG_TITLE',
'COM_CPANEL_MSG_HTACCESSSVG_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/htaccesssvg.php',
'admin_postinstall_htaccesssvg_condition', '3.9.21',
1);
updates/postgresql/3.9.22-2020-09-16.sql000064400000000546151161446630012737
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "version_introduced", "enabled")
VALUES
(700, 'COM_ADMIN_POSTINSTALL_MSG_HTACCESS_AUTOINDEX_TITLE',
'COM_ADMIN_POSTINSTALL_MSG_HTACCESS_AUTOINDEX_DESCRIPTION',
'', 'com_admin', 1, 'message',
'3.9.22', 1);
updates/postgresql/3.9.3-2019-01-12.sql000064400000000476151161446630012654
0ustar00UPDATE "#__extensions" 
SET "params" = REPLACE("params",
'"com_categories",',
'"com_categories","com_checkin",')
WHERE "name" = 'com_actionlogs';

INSERT INTO "#__action_logs_extensions" ("extension")
VALUES
('com_checkin');

SELECT setval('#__action_logs_extensions_id_seq', max(id)) FROM
"#__action_logs_extensions";updates/postgresql/3.9.3-2019-02-07.sql000064400000000745151161446630012660
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled")
VALUES
(700, 'COM_CPANEL_MSG_ADDNOSNIFF_TITLE',
'COM_CPANEL_MSG_ADDNOSNIFF_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/addnosniff.php',
'admin_postinstall_addnosniff_condition', '3.9.3', 1);
updates/postgresql/3.9.7-2019-04-23.sql000064400000000126151161446630012655
0ustar00CREATE INDEX "#__session_idx_client_id_guest" ON
"#__session" ("client_id", "guest");
updates/postgresql/3.9.7-2019-04-26.sql000064400000000522151161446630012660
0ustar00UPDATE "#__content_types" SET
"content_history_options" =
REPLACE("content_history_options",
'\"ignoreChanges\":[\"modified_by\",
\"modified\", \"checked_out\",
\"checked_out_time\", \"version\",
\"hits\"]',
'\"ignoreChanges\":[\"modified_by\",
\"modified\", \"checked_out\",
\"checked_out_time\", \"version\", \"hits\",
\"ordering\"]');
updates/postgresql/3.9.7-2019-05-16.sql000064400000000105151161446630012655
0ustar00# Query removed, see
https://github.com/joomla/joomla-cms/pull/25177
updates/postgresql/3.9.8-2019-06-11.sql000064400000000102151161446630012647
0ustar00UPDATE "#__users" SET "params" =
REPLACE("params", '",,"',
'","');updates/postgresql/3.9.8-2019-06-15.sql000064400000000466151161446630012670
0ustar00DROP INDEX IF EXISTS "#__template_styles_idx_home";
# Queries removed, see https://github.com/joomla/joomla-cms/pull/25484
CREATE INDEX "#__template_styles_idx_client_id" ON
"#__template_styles" ("client_id");
CREATE INDEX "#__template_styles_idx_client_id_home" ON
"#__template_styles" ("client_id", "home");
updates/sqlazure/2.5.2-2012-03-05.sql000064400000000046151161446630012277
0ustar00# Dummy SQL file to set schema
versionupdates/sqlazure/2.5.3-2012-03-13.sql000064400000000046151161446630012277
0ustar00# Dummy SQL file to set schema
versionupdates/sqlazure/2.5.4-2012-03-18.sql000064400000002425151161446630012310
0ustar00SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 28, 'com_joomlaupdate', 'component',
'com_joomlaupdate', '', 1, 1, 0, 1,
'{"legacy":false,"name":"com_joomlaupdate","type":"component","creationDate":"February
2012","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"2.5.2","description":"COM_JOOMLAUPDATE_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] OFF;

INSERT INTO [#__menu] ([menutype], [title], [alias], [note], [path],
[link], [type], [published], [parent_id], [level], [component_id],
[ordering], [checked_out], [checked_out_time], [browserNav], [access],
[img], [template_style_id], [params], [lft], [rgt], [home], [language],
[client_id])
SELECT 'menu', 'com_joomlaupdate', 'Joomla!
Update', '', 'Joomla! Update',
'index.php?option=com_joomlaupdate', 'component', 0, 1,
1, 28, 0, 0, '1900-01-01 00:00:00', 0, 0,
'class:joomlaupdate', 0, '', 41, 42, 0, '*',
1;
updates/sqlazure/2.5.4-2012-03-19.sql000064400000000531151161446630012305
0ustar00ALTER TABLE [#__languages] ADD  [access] INTEGER CONSTRAINT
DF_languages_access DEFAULT '' NOT NULL

CREATE UNIQUE INDEX idx_access ON [#__languages] (access);

UPDATE [#__categories] SET [extension] = 'com_users.notes' WHERE
[extension] = 'com_users';

UPDATE [#__extensions] SET [enabled] = '1' WHERE [protected] =
'1' AND [type] <> 'plugin';
updates/sqlazure/2.5.5.sql000064400000000341151161446630011254
0ustar00ALTER TABLE [#__redirect_links] ADD [hits] INTEGER CONSTRAINT
DF_redirect_links_hits DEFAULT '' NOT NULL;
ALTER TABLE [#__users] ADD [lastResetTime] [datetime] NOT NULL;
ALTER TABLE [#__users] ADD [resetCount] [int] NOT
NULL;updates/sqlazure/2.5.6.sql000064400000000071151161446630011255
0ustar00# Placeholder file for database changes for version
2.5.6updates/sqlazure/2.5.7.sql000064400000001024151161446630011255
0ustar00INSERT INTO [#__update_sites] ([name], [type], [location],
[enabled], [last_check_timestamp])
SELECT 'Accredited Joomla! Translations', 'collection',
'https://update.joomla.org/language/translationlist.xml', 1, 0;

INSERT INTO [#__update_sites_extensions] ([update_site_id], [extension_id])
SELECT SCOPE_IDENTITY(), 600;

UPDATE [#__assets] SET [name] = REPLACE([name],
'com_user.notes.category', 'com_users.category');
UPDATE [#__categories] SET [extension] = REPLACE([extension],
'com_user.notes.category', 'com_users.category');
updates/sqlazure/3.0.0.sql000064400000000072151161446630011244 0ustar00#
Placeholder file for database changes for version 3.0.0
updates/sqlazure/3.0.1.sql000064400000000072151161446630011245 0ustar00#
Placeholder file for database changes for version 3.0.1
updates/sqlazure/3.0.2.sql000064400000000071151161446630011245 0ustar00#
Placeholder file for database changes for version
3.0.2updates/sqlazure/3.0.3.sql000064400000000614151161446630011251
0ustar00ALTER TABLE [#__associations] DROP CONSTRAINT
[PK_#__associations_context];
ALTER TABLE [#__associations] ALTER COLUMN [id] INT NOT NULL;
ALTER TABLE [#__associations] ADD CONSTRAINT [PK_#__associations_context]
PRIMARY KEY CLUSTERED(
	[context] ASC,
	[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY];
updates/sqlazure/3.1.0.sql000064400000052754151161446630011263 0ustar00/*
Changes to Smart Search tables for driver compatibility */
ALTER TABLE [#__finder_tokens_aggregate] ALTER COLUMN [term_id] [bigint]
NULL;
ALTER TABLE [#__finder_tokens_aggregate] ALTER COLUMN [map_suffix]
[nchar](1) NULL;
ALTER TABLE [#__finder_tokens_aggregate] ADD DEFAULT ((0)) FOR [term_id];
ALTER TABLE [#__finder_tokens_aggregate] ADD DEFAULT ((0)) FOR
[total_weight];

/* Changes to tables where data type conflicts exist with MySQL (mainly
dealing with null values */
ALTER TABLE [#__extensions] ADD DEFAULT (N'') FOR [system_data];
ALTER TABLE [#__modules] ADD DEFAULT (N'') FOR [content];
ALTER TABLE [#__updates] ADD DEFAULT (N'') FOR [data];

/* Tags database schema */

/****** Object:  Table [#__content_types] ******/
SET QUOTED_IDENTIFIER ON;

CREATE TABLE [#__content_types] (
	[type_id] [bigint] IDENTITY(1,1) NOT NULL,
	[type_title] [nvarchar](255) NOT NULL DEFAULT '',
	[type_alias] [nvarchar](255) NOT NULL DEFAULT '',
	[table] [nvarchar](255) NOT NULL DEFAULT '',
	[rules] [nvarchar](max) NOT NULL,
	[field_mappings] [nvarchar](max) NOT NULL,
	[router] [nvarchar](255) NOT NULL DEFAULT '',
 CONSTRAINT [PK_#__content_types_type_id] PRIMARY KEY CLUSTERED
(
	[type_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY];

CREATE NONCLUSTERED INDEX [idx_alias] ON [#__content_types]
(
	[type_alias] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

SET IDENTITY_INSERT [#__content_types] ON;

INSERT INTO [#__content_types] ([type_id], [type_title], [type_alias],
[table], [rules], [field_mappings], [router])
SELECT 1, 'Article', 'com_content.article',
'{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"attribs",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"asset_id"}], "special":
[{"fulltext":"fulltext"}]}',
'ContentHelperRoute::getArticleRoute'
UNION ALL
SELECT 2, 'Contact', 'com_contact.contact',
'{"special":{"dbtable":"#__contact_details","key":"id","type":"Contact","prefix":"ContactTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"image",
"core_urls":"webpage",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"null"}], "special":
[{"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}]}',
'ContactHelperRoute::getContactRoute'
UNION ALL
SELECT 3, 'Newsfeed', 'com_newsfeeds.newsfeed',
'{"special":{"dbtable":"#__newsfeeds","key":"id","type":"Newsfeed","prefix":"NewsfeedsTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"link",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"null"}], "special":
[{"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}]}',
'NewsfeedsHelperRoute::getNewsfeedRoute'
UNION ALL
SELECT 4, 'User', 'com_users.user',
'{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerdate","core_modified_time":"lastvisitDate","core_body":"null",
"core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null",
"core_params":"params",
"core_featured":"null",
"core_metadata":"null",
"core_language":"null",
"core_images":"null",
"core_urls":"null",
"core_version":"null",
"core_ordering":"null",
"core_metakey":"null",
"core_metadesc":"null",
"core_catid":"null",
"core_xreference":"null",
"asset_id":"null"}], "special": [{}]}',
'UsersHelperRoute::getUserRoute'
UNION ALL
SELECT 5, 'Article Category', 'com_content.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}], "special":
[{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}]}',
'ContentHelperRoute::getCategoryRoute'
UNION ALL
SELECT 6, 'Contact Category', 'com_contact.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}], "special":
[{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}]}',
'ContactHelperRoute::getCategoryRoute'
UNION ALL
SELECT 7, 'Newsfeeds Category',
'com_newsfeeds.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}], "special":
[{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}]}',
'NewsfeedsHelperRoute::getCategoryRoute'
UNION ALL
SELECT 8, 'Tag', 'com_tags.tag',
'{"special":{"dbtable":"#__tags","key":"tag_id","type":"Tag","prefix":"TagsTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"null",
"core_xreference":"null",
"asset_id":"null"}], "special":
[{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}]}',
'TagsHelperRoute::getTagRoute';

SET IDENTITY_INSERT [#__content_types] OFF;

/****** Object:  Table [#__contentitem_tag_map] ******/
SET QUOTED_IDENTIFIER ON;

CREATE TABLE [#__contentitem_tag_map] (
	[type_alias] [nvarchar](255) NOT NULL DEFAULT '',
	[core_content_id] [bigint] NOT NULL,
	[content_item_id] [int] NOT NULL,
	[tag_id] [bigint] NOT NULL,
	[tag_date] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
 CONSTRAINT [#__contentitem_tag_map$uc_ItemnameTagid] UNIQUE NONCLUSTERED
(
	[type_alias] ASC,
	[content_item_id] ASC,
	[tag_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY];

CREATE NONCLUSTERED INDEX [idx_tag_name] ON [#__contentitem_tag_map]
(
	[tag_id] ASC,
	[type_alias] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_date_id] ON [#__contentitem_tag_map]
(
	[tag_date] ASC,
	[tag_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_tag] ON [#__contentitem_tag_map]
(
	[tag_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_core_content_id] ON [#__contentitem_tag_map]
(
	[core_content_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

/****** Object:  Table [#__tags] ******/
SET QUOTED_IDENTIFIER ON;

CREATE TABLE [#__tags] (
  [id] [int] IDENTITY(1,1) NOT NULL ,
  [parent_id] [bigint] NOT NULL DEFAULT '0',
  [lft] [int] NOT NULL DEFAULT '0',
  [rgt] [int] NOT NULL DEFAULT '0',
  [level] [bigint] NOT NULL DEFAULT '0',
  [path] [nvarchar](255) NOT NULL DEFAULT '',
  [title] [nvarchar](255) NOT NULL,
  [alias] [nvarchar](255) NOT NULL DEFAULT '',
  [note] [nvarchar](255) NOT NULL DEFAULT '',
  [description] [nvarchar](max) NOT NULL,
  [published] [smallint] NOT NULL DEFAULT '0',
  [checked_out] [bigint] NOT NULL DEFAULT '0',
  [checked_out_time] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
  [access] [int] NOT NULL DEFAULT '0',
  [params] [nvarchar](max) NOT NULL,
  [metadesc] [nvarchar](1024) NOT NULL,
  [metakey] [nvarchar](1024) NOT NULL,
  [metadata] [nvarchar](2048) NOT NULL,
  [created_user_id] [bigint] NOT NULL DEFAULT '0',
  [created_time] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
  [created_by_alias] [nvarchar](255) NOT NULL DEFAULT '',
  [modified_user_id] [bigint] NOT NULL DEFAULT '0',
  [modified_time] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
  [images] [nvarchar](max) NOT NULL,
  [urls] [nvarchar](max) NOT NULL,
  [hits] [bigint] NOT NULL DEFAULT '0',
  [language] [nvarchar](7) NOT NULL,
  [version] [bigint] NOT NULL DEFAULT '1',
  [publish_up] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
  [publish_down] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
  CONSTRAINT [PK_#__tags_id] PRIMARY KEY CLUSTERED
    (
      [id] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY];

CREATE NONCLUSTERED INDEX [tag_idx] ON [#__tags]
(
  [published] ASC,
  [access] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_access] ON [#__tags]
(
  [access] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_checkout] ON [#__tags]
(
  [checked_out] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_path] ON [#__tags]
(
  [path] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_left_right] ON [#__tags]
(
  [lft] ASC,
  [rgt] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_alias] ON [#__tags]
(
  [alias] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_language] ON [#__tags]
(
  [language] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

SET IDENTITY_INSERT [#__tags] ON;

INSERT INTO [#__tags] ([id], [parent_id], [lft], [rgt], [level], [path],
[title], [alias], [note], [description], [published], [checked_out],
[checked_out_time], [access], [params], [metadesc], [metakey], [metadata],
[created_user_id], [created_time], [modified_user_id], [modified_time],
[images], [urls], [hits], [language])
SELECT 1, 0, 0, 1, 0, '', 'ROOT', 'root',
'', '', 1, 0, '1900-01-01 00:00:00', 1,
'{}', '', '', '', 0,
'2009-10-18 16:07:09', 0, '1900-01-01 00:00:00',
'', '', 0, '*';

SET IDENTITY_INSERT [#__tags] OFF;

/****** Object:  Table [#__ucm_base] ******/
SET QUOTED_IDENTIFIER ON;

CREATE TABLE [#__ucm_base] (
  [ucm_id] [bigint] IDENTITY(1,1) NOT NULL,
  [ucm_item_id] [bigint] NOT NULL,
  [ucm_type_id] [bigint] NOT NULL,
  [ucm_language_id] [bigint] NOT NULL,
  CONSTRAINT [PK_#__ucm_base_ucm_id] PRIMARY KEY CLUSTERED
    (
      [ucm_id] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
) ON [PRIMARY];

CREATE NONCLUSTERED INDEX [ucm_item_id] ON [#__ucm_base]
(
  [ucm_item_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [ucm_type_id] ON [#__ucm_base]
(
  [ucm_type_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [ucm_language_id] ON [#__ucm_base]
(
  [ucm_language_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

/****** Object:  Table [#__ucm_content] ******/
SET QUOTED_IDENTIFIER ON;

CREATE TABLE [#__ucm_content] (
  [core_content_id] [bigint] IDENTITY(1,1) NOT NULL,
  [core_type_alias] [nvarchar](255) NOT NULL,
  [core_title] [nvarchar](255) NOT NULL DEFAULT '',
  [core_alias] [nvarchar](255) NOT NULL DEFAULT '',
  [core_body] [nvarchar](max) NOT NULL,
  [core_state] [smallint] NOT NULL DEFAULT '0',
  [core_checked_out_time] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
  [core_checked_out_user_id] [bigint] NOT NULL DEFAULT '0',
  [core_access] [bigint] NOT NULL DEFAULT '0',
  [core_params] [nvarchar](max) NOT NULL,
  [core_featured] [tinyint] NOT NULL DEFAULT '0',
  [core_metadata] [nvarchar](max) NOT NULL,
  [core_created_user_id] [bigint] NOT NULL DEFAULT '0',
  [core_created_by_alias] [nvarchar](255) NOT NULL DEFAULT '',
  [core_created_time] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
  [core_modified_user_id] [bigint] NOT NULL DEFAULT '0',
  [core_modified_time] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
  [core_language] [nvarchar](7) NOT NULL,
  [core_publish_up] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
  [core_publish_down] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
  [core_content_item_id] [bigint] NOT NULL DEFAULT '0',
  [asset_id] [bigint] NOT NULL DEFAULT '0',
  [core_images] [nvarchar](max) NOT NULL,
  [core_urls] [nvarchar](max) NOT NULL,
  [core_hits] [bigint] NOT NULL DEFAULT '0',
  [core_version] [bigint] NOT NULL DEFAULT '1',
  [core_ordering] [int] NOT NULL DEFAULT '0',
  [core_metakey] [nvarchar](max) NOT NULL,
  [core_metadesc] [nvarchar](max) NOT NULL,
  [core_catid] [bigint] NOT NULL DEFAULT '0',
  [core_xreference] [nvarchar](50) NOT NULL,
  [core_type_id] [bigint] NOT NULL DEFAULT '0',
  CONSTRAINT [PK_#__ucm_content_core_content_id] PRIMARY KEY CLUSTERED
    (
      [core_content_id] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
  CONSTRAINT [#__ucm_content_core_content_id$idx_type_alias_item_id] UNIQUE
NONCLUSTERED
    (
      [core_type_alias] ASC,
      [core_content_item_id] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY];

CREATE NONCLUSTERED INDEX [tag_idx] ON [#__ucm_content]
(
  [core_state] ASC,
  [core_access] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_access] ON [#__ucm_content]
(
  [core_access] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_alias] ON [#__ucm_content]
(
  [core_alias] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_language] ON [#__ucm_content]
(
  [core_language] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_title] ON [#__ucm_content]
(
  [core_title] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_modified_time] ON [#__ucm_content]
(
  [core_modified_time] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_created_time] ON [#__ucm_content]
(
  [core_created_time] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_content_type] ON [#__ucm_content]
(
  [core_type_alias] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_core_modified_user_id] ON [#__ucm_content]
(
  [core_modified_user_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_core_checked_out_user_id] ON
[#__ucm_content]
(
  [core_checked_out_user_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_core_created_user_id] ON [#__ucm_content]
(
  [core_created_user_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_core_type_id] ON [#__ucm_content]
(
  [core_type_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);


SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 29, 'com_tags', 'component',
'com_tags', '', 1, 1, 1, 1,
'{"name":"com_joomlaupdate","type":"component","creationDate":"March
2013","author":"Joomla!
Project","copyright":"(C) 2005 - 2020 Open Source
Matters. All rights
reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.0","description":"COM_TAGS_XML_DESCRIPTION","group":""}',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] OFF;

INSERT INTO [#__menu] ([menutype], [title], [alias], [note], [path],
[link], [type], [published], [parent_id], [level], [component_id],
[checked_out], [checked_out_time], [browserNav], [access], [img],
[template_style_id], [params], [lft], [rgt], [home], [language],
[client_id])
SELECT 'menu', 'com_tags', 'Tags',
'', 'Tags', 'index.php?option=com_tags',
'component', 0, 1, 1, 29, 0, '1900-01-01 00:00:00', 0,
0, 'class:tags', 0, '', 43, 44, 0, '*', 1;
updates/sqlazure/3.1.1.sql000064400000000071151161446630011245 0ustar00#
Placeholder file for database changes for version
3.1.1updates/sqlazure/3.1.2.sql000064400000021415151161446630011253
0ustar00UPDATE [#__content_types] SET [table] =
'{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE [type_title] = 'Article';
UPDATE [#__content_types] SET [table] =
'{"special":{"dbtable":"#__contact_details","key":"id","type":"Contact","prefix":"ContactTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE [type_title] = 'Contact';
UPDATE [#__content_types] SET [table] =
'{"special":{"dbtable":"#__newsfeeds","key":"id","type":"Newsfeed","prefix":"NewsfeedsTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE [type_title] = 'Newsfeed';
UPDATE [#__content_types] SET [table] =
'{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE [type_title] = 'User';
UPDATE [#__content_types] SET [table] =
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE [type_title] = 'Article Category';
UPDATE [#__content_types] SET [table] =
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE [type_title] = 'Contact Category';
UPDATE [#__content_types] SET [table] =
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE [type_title] = 'Newsfeeds Category';
UPDATE [#__content_types] SET [table] =
'{"special":{"dbtable":"#__tags","key":"tag_id","type":"Tag","prefix":"TagsTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}'
WHERE [type_title] = 'Tag';
UPDATE [#__content_types] SET [field_mappings] =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"attribs",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"asset_id"}, "special":
{"fulltext":"fulltext"}}' WHERE [type_title] =
'Article';
UPDATE [#__content_types] SET [field_mappings] =
'{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"image",
"core_urls":"webpage",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"null"}, "special":
{"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}}'
WHERE [type_title] = 'Contact';
UPDATE [#__content_types] SET [field_mappings] =
'{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"link",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"null"}, "special":
{"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}}'
WHERE [type_title] = 'Newsfeed';
UPDATE [#__content_types] SET [field_mappings] =
'{"common":{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerdate","core_modified_time":"lastvisitDate","core_body":"null",
"core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null",
"core_params":"params",
"core_featured":"null",
"core_metadata":"null",
"core_language":"null",
"core_images":"null",
"core_urls":"null",
"core_version":"null",
"core_ordering":"null",
"core_metakey":"null",
"core_metadesc":"null",
"core_catid":"null",
"core_xreference":"null",
"asset_id":"null"}, "special": {}}'
WHERE [type_title] = 'User';
UPDATE [#__content_types] SET [field_mappings] =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}'
WHERE [type_title] = 'Article Category';
UPDATE [#__content_types] SET [field_mappings] =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}'
WHERE [type_title] = 'Contact Category';
UPDATE [#__content_types] SET [field_mappings] =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}'
WHERE [type_title] = 'Newsfeeds Category';
UPDATE [#__content_types] SET [field_mappings] =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"null",
"core_xreference":"null",
"asset_id":"null"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}}'
WHERE [type_title] = 'Tag';
updates/sqlazure/3.1.3.sql000064400000000072151161446630011250 0ustar00#
Placeholder file for database changes for version 3.1.3
updates/sqlazure/3.1.4.sql000064400000000675151161446630011262 0ustar00SET
IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 104, 'IDNA Convert', 'library',
'idna_convert', '', 0, 1, 1, 1, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] OFF;
updates/sqlazure/3.1.5.sql000064400000000072151161446630011252 0ustar00#
Placeholder file for database changes for version 3.1.5
updates/sqlazure/3.2.0.sql000064400000047561151161446630011264 0ustar00/*
Core 3.2 schema updates */

ALTER TABLE [#__content_types] ADD [content_history_options] [nvarchar]
(max) NULL;

UPDATE [#__content_types] SET [content_history_options] =
'{"formFile":"administrator\/components\/com_content\/models\/forms\/article.xml",
"hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by",
"modified", "checked_out",
"checked_out_time", "version",
"hits"],"convertToInt":["publish_up",
"publish_down", "featured",
"ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}
]}' WHERE [type_alias] = 'com_content.article';
UPDATE [#__content_types] SET [content_history_options] =
'{"formFile":"administrator\/components\/com_contact\/models\/forms\/contact.xml","hideFields":["default_con","checked_out","checked_out_time","version","xreference"],"ignoreChanges":["modified_by",
"modified", "checked_out",
"checked_out_time", "version",
"hits"],"convertToInt":["publish_up",
"publish_down", "featured", "ordering"],
"displayLookup":[
{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}
] }' WHERE [type_alias] = 'com_contact.contact';
UPDATE [#__content_types] SET [content_history_options] =
'{"formFile":"administrator\/components\/com_categories\/models\/forms\/category.xml",
"hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"],
"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time", "version", "hits",
"path"],"convertToInt":["publish_up",
"publish_down"],
"displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'
WHERE [type_alias] IN ('com_content.category',
'com_contact.category', 'com_newsfeeds.category');
UPDATE [#__content_types] SET [content_history_options] =
'{"formFile":"administrator\/components\/com_newsfeeds\/models\/forms\/newsfeed.xml","hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by",
"modified", "checked_out",
"checked_out_time", "version",
"hits"],"convertToInt":["publish_up",
"publish_down", "featured",
"ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'
WHERE [type_alias] = 'com_newsfeeds.newsfeed';
UPDATE [#__content_types] SET [content_history_options] =
'{"formFile":"administrator\/components\/com_tags\/models\/forms\/tag.xml",
"hideFields":["checked_out","checked_out_time","version",
"lft", "rgt", "level", "path",
"urls", "publish_up",
"publish_down"],"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time", "version", "hits",
"path"],"convertToInt":["publish_up",
"publish_down"],
"displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},
{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'
WHERE [type_alias] = 'com_tags.tag';

INSERT INTO [#__content_types] ([type_title], [type_alias], [table],
[rules], [field_mappings], [router], [content_history_options])
SELECT 'Banner', 'com_banners.banner',
'{"special":{"dbtable":"#__banners","key":"id","type":"Banner","prefix":"BannersTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description",
"core_hits":"null","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"link",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"null",
"asset_id":"null"},
"special":{"imptotal":"imptotal",
"impmade":"impmade",
"clicks":"clicks",
"clickurl":"clickurl",
"custombannercode":"custombannercode",
"cid":"cid",
"purchase_type":"purchase_type",
"track_impressions":"track_impressions",
"track_clicks":"track_clicks"}}', '',
'{"formFile":"administrator\/components\/com_banners\/models\/forms\/banner.xml",
"hideFields":["checked_out","checked_out_time","version",
"reset"],"ignoreChanges":["modified_by",
"modified", "checked_out",
"checked_out_time", "version", "imptotal",
"impmade", "reset"],
"convertToInt":["publish_up", "publish_down",
"ordering"],
"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},
{"sourceColumn":"cid","targetTable":"#__banner_clients","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'
UNION ALL
SELECT 'Banners Category', 'com_banners.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"}, "special":
{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}',
'',
'{"formFile":"administrator\/components\/com_categories\/models\/forms\/category.xml",
"hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"],
"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time", "version", "hits",
"path"], "convertToInt":["publish_up",
"publish_down"],
"displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'
UNION ALL
SELECT 'Banner Client', 'com_banners.client',
'{"special":{"dbtable":"#__banner_clients","key":"id","type":"Client","prefix":"BannersTable"}}',
'', '', '',
'{"formFile":"administrator\/components\/com_banners\/models\/forms\/client.xml",
"hideFields":["checked_out","checked_out_time"],
"ignoreChanges":["checked_out",
"checked_out_time"], "convertToInt":[],
"displayLookup":[]}'
UNION ALL
SELECT 'User Notes', 'com_users.note',
'{"special":{"dbtable":"#__user_notes","key":"id","type":"Note","prefix":"UsersTable"}}',
'', '', '',
'{"formFile":"administrator\/components\/com_users\/models\/forms\/note.xml",
"hideFields":["checked_out","checked_out_time",
"publish_up",
"publish_down"],"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time"],
"convertToInt":["publish_up",
"publish_down"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},
{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'
UNION ALL
SELECT 'User Notes Category', 'com_users.category',
'{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}',
'',
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description",
"core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access",
"core_params":"params",
"core_featured":"null",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"null",
"core_urls":"null",
"core_version":"version",
"core_ordering":"null",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"parent_id",
"core_xreference":"null",
"asset_id":"asset_id"},
"special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}',
'',
'{"formFile":"administrator\/components\/com_categories\/models\/forms\/category.xml",
"hideFields":["checked_out","checked_out_time","version","lft","rgt","level","path","extension"],
"ignoreChanges":["modified_user_id",
"modified_time", "checked_out",
"checked_out_time", "version", "hits",
"path"], "convertToInt":["publish_up",
"publish_down"],
"displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},
{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}';

UPDATE [#__extensions] SET [params] =
'{"template_positions_display":"0","upload_limit":"2","image_formats":"gif,bmp,jpg,jpeg,png","source_formats":"txt,less,ini,xml,js,php,css","font_formats":"woff,ttf,otf","compressed_formats":"zip"}'
WHERE [extension_id] = 20;
UPDATE [#__extensions] SET [params] =
'{"lineNumbers":"1","lineWrapping":"1","matchTags":"1","matchBrackets":"1","marker-gutter":"1","autoCloseTags":"1","autoCloseBrackets":"1","autoFocus":"1","theme":"default","tabmode":"indent"}'
WHERE [extension_id] = 410;

SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 30, 'com_contenthistory', 'component',
'com_contenthistory', '', 1, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 31, 'com_ajax', 'component',
'com_ajax', '', 1, 1, 1, 0, '', '',
'', '', 0, '1900-01-01 00:00:00', 0, 0
UNION ALL
SELECT 32, 'com_postinstall', 'component',
'com_postinstall', '', 1, 1, 1, 1, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 105, 'FOF', 'library', 'fof',
'', 0, 1, 1, 1, '', '', '',
'', 0, '1900-01-01 00:00:00', 0, 0
UNION ALL
SELECT 448, 'plg_twofactorauth_totp', 'plugin',
'totp', 'twofactorauth', 0, 0, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 449, 'plg_authentication_cookie', 'plugin',
'cookie', 'authentication', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 450, 'plg_twofactorauth_yubikey', 'plugin',
'yubikey', 'twofactorauth', 0, 0, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] OFF;

INSERT INTO [#__menu] ([menutype], [title], [alias], [note], [path],
[link], [type], [published], [parent_id], [level], [component_id],
[checked_out], [checked_out_time], [browserNav], [access], [img],
[template_style_id], [params], [lft], [rgt], [home], [language],
[client_id])
SELECT 'menu', 'com_postinstall',
'Post-installation messages', '',
'Post-installation messages',
'index.php?option=com_postinstall', 'component', 0, 1,
1, 32, 0, '1900-01-01 00:00:00', 0, 1,
'class:postinstall', 0, '', 45, 46, 0, '*',
1;

ALTER TABLE [#__modules] ADD [asset_id] [bigint] NOT NULL DEFAULT 0;

CREATE TABLE [#__postinstall_messages] (
  [postinstall_message_id] [bigint] IDENTITY(1,1) NOT NULL,
  [extension_id] [bigint] NOT NULL DEFAULT 700,
  [title_key] [nvarchar](255) NOT NULL DEFAULT '',
  [description_key] [nvarchar](255) NOT NULL DEFAULT '',
  [action_key] [nvarchar](255) NOT NULL DEFAULT '',
  [language_extension] [nvarchar](255) NOT NULL DEFAULT
'com_postinstall',
  [language_client_id] [int] NOT NULL DEFAULT 1,
  [type] [nvarchar](10) NOT NULL DEFAULT 'link',
  [action_file] [nvarchar](255) DEFAULT '',
  [action] [nvarchar](255) DEFAULT '',
  [condition_file] [nvarchar](255) DEFAULT NULL,
  [condition_method] [nvarchar](255) DEFAULT NULL,
  [version_introduced] [nvarchar](50) NOT NULL DEFAULT '3.2.0',
  [enabled] [int] NOT NULL DEFAULT 1,
  CONSTRAINT [PK_#__postinstall_message_id] PRIMARY KEY CLUSTERED
    (
      [postinstall_message_id] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY];

INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [action_file], [action], [condition_file],
[condition_method], [version_introduced], [enabled])
SELECT 700, 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_TITLE',
'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_BODY',
'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_ACTION',
'plg_twofactorauth_totp', 1, 'action',
'site://plugins/twofactorauth/totp/postinstall/actions.php',
'twofactorauth_postinstall_action',
'site://plugins/twofactorauth/totp/postinstall/actions.php',
'twofactorauth_postinstall_condition', '3.2.0', 1
UNION ALL
SELECT 700, 'COM_CPANEL_MSG_EACCELERATOR_TITLE',
'COM_CPANEL_MSG_EACCELERATOR_BODY',
'COM_CPANEL_MSG_EACCELERATOR_BUTTON', 'com_cpanel', 1,
'action',
'admin://components/com_admin/postinstall/eaccelerator.php',
'admin_postinstall_eaccelerator_action',
'admin://components/com_admin/postinstall/eaccelerator.php',
'admin_postinstall_eaccelerator_condition', '3.2.0', 1;

CREATE TABLE [#__ucm_history] (
  [version_id] [bigint] IDENTITY(1,1) NOT NULL,
  [ucm_item_id] [bigint] NOT NULL,
  [ucm_type_id] [bigint] NOT NULL,
  [version_note] [nvarchar](255) NOT NULL DEFAULT '',
  [save_date] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
  [editor_user_id] [bigint] NOT NULL DEFAULT 0,
  [character_count] [bigint] NOT NULL DEFAULT 0,
  [sha1_hash] [nvarchar](50) NOT NULL DEFAULT '',
  [version_data] [nvarchar](max) NOT NULL,
  [keep_forever] [smallint] NOT NULL DEFAULT 0,
  CONSTRAINT [PK_#__ucm_history_version_id] PRIMARY KEY CLUSTERED
    (
      [version_id] ASC
    )WITH (PAD_INDEX= OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY];

CREATE NONCLUSTERED INDEX [idx_ucm_item_id] ON [#__ucm_history]
(
  [ucm_type_id] ASC,
  [ucm_item_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_save_date] ON [#__ucm_history]
(
  [save_date] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

ALTER TABLE [#__users] ADD [otpKey] [nvarchar](1000) NOT NULL DEFAULT
'';

ALTER TABLE [#__users] ADD [otep] [nvarchar](1000) NOT NULL DEFAULT
'';

CREATE TABLE [#__user_keys] (
  [id] [bigint] IDENTITY(1,1) NOT NULL,
  [user_id] [nvarchar](255) NOT NULL,
  [token] [nvarchar](255) NOT NULL,
  [series] [nvarchar](255) NOT NULL,
  [invalid] [smallint] NOT NULL,
  [time] [nvarchar](200) NOT NULL,
  [uastring] [nvarchar](255) NOT NULL,
  CONSTRAINT [PK_#__user_keys_id] PRIMARY KEY CLUSTERED
    (
      [id] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
  CONSTRAINT [#__user_keys$series] UNIQUE NONCLUSTERED
    (
      [series] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
  CONSTRAINT [#__user_keys$series_2] UNIQUE NONCLUSTERED
    (
      [series] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
  CONSTRAINT [#__user_keys$series_3] UNIQUE NONCLUSTERED
    (
      [series] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY];

CREATE NONCLUSTERED INDEX [user_id] ON [#__user_keys]
(
  [user_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

/* Queries below sync the schema to MySQL where able without causing errors
*/

ALTER TABLE [#__contentitem_tag_map] ADD [type_id] [int] NOT NULL;

CREATE NONCLUSTERED INDEX [idx_type] ON [#__contentitem_tag_map]
(
  [type_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

ALTER TABLE [#__newsfeeds] ALTER COLUMN [alias] [nvarchar](255) NOT NULL;

ALTER TABLE [#__overrider] ALTER COLUMN [constant] [nvarchar](255) NOT
NULL;
ALTER TABLE [#__overrider] ALTER COLUMN [string] [nvarchar](max) NOT NULL;
ALTER TABLE [#__overrider] ALTER COLUMN [file] [nvarchar](255) NOT NULL;

ALTER TABLE [#__session] DROP COLUMN [usertype];

ALTER TABLE [#__ucm_content] ALTER COLUMN [core_metadata] [nvarchar](2048)
NOT NULL;

CREATE PROCEDURE "#removeDefault"
(
	@table NVARCHAR(100),
	@column NVARCHAR(100)
)
AS
BEGIN
	DECLARE @constraintName AS nvarchar(100)
	DECLARE @constraintQuery AS nvarchar(1000)
	SELECT @constraintName = name FROM sys.default_constraints
		WHERE parent_object_id = object_id(@table)
		AND parent_column_id = columnproperty(object_id(@table), @column,
'ColumnId')
	SET @constraintQuery = 'ALTER TABLE [' + @table + '] DROP
CONSTRAINT [' + @constraintName + ']'
	EXECUTE sp_executesql @constraintQuery
END;

EXECUTE "#removeDefault" "#__ucm_content",
'core_content_item_id';
EXECUTE "#removeDefault" "#__ucm_content",
'asset_id';
EXECUTE "#removeDefault" "#__ucm_content",
'core_type_id';

EXECUTE "#removeDefault" "#__updates",
'categoryid';
ALTER TABLE [#__updates] DROP COLUMN [categoryid];

ALTER TABLE [#__updates] ALTER COLUMN [infourl] [nvarchar](max) NOT NULL;

/* Update bad params for two cpanel modules */

UPDATE [#__modules] SET [params] = REPLACE([params],
'"bootstrap_size":"1"',
'"bootstrap_size":"0"') WHERE [id] IN (3,4);
updates/sqlazure/3.2.1.sql000064400000000150151161446630011244
0ustar00DELETE FROM [#__postinstall_messages] WHERE [title_key] =
'PLG_USER_JOOMLA_POSTINSTALL_STRONGPW_TITLE';
updates/sqlazure/3.2.2-2013-12-22.sql000064400000000237151161446630012277
0ustar00ALTER TABLE [#__update_sites] ADD [extra_query] [nvarchar](1000)
NULL DEFAULT '';
ALTER TABLE [#__updates] ADD [extra_query] [nvarchar](1000) NULL DEFAULT
'';
updates/sqlazure/3.2.2-2013-12-28.sql000064400000000254151161446630012304
0ustar00UPDATE [#__menu] SET [component_id] = (SELECT [extension_id] FROM
[#__extensions] WHERE [element] = 'com_joomlaupdate') WHERE
[link] = 'index.php?option=com_joomlaupdate';
updates/sqlazure/3.2.2-2014-01-08.sql000064400000000705151161446630012302
0ustar00SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 403, 'plg_content_contact', 'plugin',
'contact', 'content', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 1, 0;

SET IDENTITY_INSERT [#__extensions] OFF;
updates/sqlazure/3.2.2-2014-01-15.sql000064400000000743151161446630012302
0ustar00INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [action_file], [action], [condition_file],
[condition_method], [version_introduced], [enabled])
SELECT 700, 'COM_CPANEL_MSG_PHPVERSION_TITLE',
'COM_CPANEL_MSG_PHPVERSION_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/phpversion.php',
'admin_postinstall_phpversion_condition', '3.2.2', 1;
updates/sqlazure/3.2.2-2014-01-18.sql000064400000000144151161446630012300
0ustar00/* Update updates version length */
ALTER TABLE [#__updates] ALTER COLUMN [version] [nvarchar](32);
updates/sqlazure/3.2.2-2014-01-23.sql000064400000000661151161446630012300
0ustar00SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 106, 'PHPass', 'library', 'phpass',
'', 0, 1, 1, 1, '', '', '',
'', 0, '1900-01-01 00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] OFF;
updates/sqlazure/3.2.3-2014-02-20.sql000064400000000235151161446630012274
0ustar00UPDATE [#__extensions] SET [params] = (SELECT [params] FROM
[#__extensions] WHERE [name] = 'plg_system_remember') WHERE
[name] =
'plg_authentication_cookie';updates/sqlazure/3.3.0-2014-02-16.sql000064400000000105151161446630012273
0ustar00ALTER TABLE [#__users] ADD [requireReset] [smallint] NULL DEFAULT
0;
updates/sqlazure/3.3.0-2014-04-02.sql000064400000000752151161446630012300
0ustar00SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 451, 'plg_search_tags', 'plugin',
'tags', 'search', 0, 0, 1, 0, '',
'{"search_limit":"50","show_tagged_items":"1"}',
'', '', 0, '1900-01-01 00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] OFF;
updates/sqlazure/3.3.4-2014-08-03.sql000064400000000126151161446630012304
0ustar00ALTER TABLE [#__user_profiles] ALTER COLUMN [profile_value]
[nvarchar](max) NOT NULL;
updates/sqlazure/3.3.6-2014-09-30.sql000064400000000723151161446630012312
0ustar00INSERT INTO [#__update_sites] ([name], [type], [location],
[enabled])
SELECT 'Joomla! Update Component Update Site',
'extension',
'https://update.joomla.org/core/extensions/com_joomlaupdate.xml',
1;

INSERT INTO [#__update_sites_extensions] ([update_site_id], [extension_id])
SELECT (SELECT [update_site_id] FROM [#__update_sites] WHERE [name] =
'Joomla! Update Component Update Site'), (SELECT [extension_id]
FROM [#__extensions] WHERE [name] = 'com_joomlaupdate');
updates/sqlazure/3.4.0-2014-08-24.sql000064400000000733151161446630012310
0ustar00INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [action_file], [action], [condition_file],
[condition_method], [version_introduced], [enabled])
SELECT 700, 'COM_CPANEL_MSG_HTACCESS_TITLE',
'COM_CPANEL_MSG_HTACCESS_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/htaccess.php',
'admin_postinstall_htaccess_condition', '3.4.0', 1;
updates/sqlazure/3.4.0-2014-09-01.sql000064400000001464151161446630012306
0ustar00SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 801, 'weblinks', 'package',
'pkg_weblinks', '', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] OFF;

INSERT INTO [#__update_sites] ([name], [type], [location], [enabled])
SELECT 'Weblinks Update Site', 'extension',
'https://raw.githubusercontent.com/joomla-extensions/weblinks/master/manifest.xml',
1;

INSERT INTO [#__update_sites_extensions] ([update_site_id], [extension_id])
SELECT (SELECT [update_site_id] FROM [#__update_sites] WHERE [name] =
'Weblinks Update Site'), 801;
updates/sqlazure/3.4.0-2014-09-16.sql000064400000000463151161446630012312
0ustar00ALTER TABLE [#__redirect_links] ADD [header] [smallint] NOT NULL
DEFAULT 301;
--
-- The following statement has to be disabled because it conflicts with
-- a later change added with Joomla! 3.5.0 for long URLs in this table
--
-- ALTER TABLE [#__redirect_links] ALTER COLUMN [new_url] [nvarchar](255)
NULL;
updates/sqlazure/3.4.0-2014-10-20.sql000064400000000070151161446630012267
0ustar00DELETE FROM [#__extensions] WHERE [extension_id] = 100;
updates/sqlazure/3.4.0-2014-12-03.sql000064400000000244151161446630012275
0ustar00UPDATE [#__extensions] SET [protected] = '0' WHERE [name]
= 'plg_editors-xtd_article' AND [type] = 'plugin' AND
[element] = 'article' AND [folder] = 'editors-xtd';
updates/sqlazure/3.4.0-2015-01-21.sql000064400000000576151161446640012305
0ustar00INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [action_file], [action], [condition_file],
[condition_method], [version_introduced], [enabled])
SELECT 700, 'COM_CPANEL_MSG_ROBOTS_TITLE',
'COM_CPANEL_MSG_ROBOTS_BODY', '',
'com_cpanel', 1, 'message', '', '',
'', '', '3.3.0', 1;
updates/sqlazure/3.4.0-2015-02-26.sql000064400000000777151161446640012316
0ustar00INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [action_file], [action], [condition_file],
[condition_method], [version_introduced], [enabled])
SELECT 700, 'COM_CPANEL_MSG_LANGUAGEACCESS340_TITLE',
'COM_CPANEL_MSG_LANGUAGEACCESS340_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/languageaccess340.php',
'admin_postinstall_languageaccess340_condition',
'3.4.1', 1;
updates/sqlazure/3.4.4-2015-07-11.sql000064400000000631151161446640012306
0ustar00ALTER TABLE [#__contentitem_tag_map] DROP CONSTRAINT
[#__contentitem_tag_map$uc_ItemnameTagid];

ALTER TABLE [#__contentitem_tag_map] ADD CONSTRAINT
[#__contentitem_tag_map$uc_ItemnameTagid] UNIQUE NONCLUSTERED
(
  [type_id] ASC,
  [content_item_id] ASC,
  [tag_id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY];
updates/sqlazure/3.5.0-2015-10-13.sql000064400000000713151161446640012300
0ustar00SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 453, 'plg_editors-xtd_module', 'plugin',
'module', 'editors-xtd', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] OFF;
updates/sqlazure/3.5.0-2015-10-26.sql000064400000000234151161446640012302
0ustar00DROP INDEX [idx_tag_name] ON [#__contentitem_tag_map];
DROP INDEX [idx_tag] ON [#__contentitem_tag_map];
DROP INDEX [idx_type] ON [#__contentitem_tag_map];
updates/sqlazure/3.5.0-2015-10-30.sql000064400000000171151161446640012275
0ustar00UPDATE [#__menu] SET [title] = 'com_contact_contacts'
WHERE [client_id] = 1 AND [level] = 2 AND [title] =
'com_contact';
updates/sqlazure/3.5.0-2015-11-04.sql000064400000001051151161446640012275
0ustar00DELETE FROM [#__menu] WHERE [title] = 'com_messages_read'
AND [client_id] = 1;

SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 452, 'plg_system_updatenotification', 'plugin',
'updatenotification', 'system', 0, 1, 1, 0,
'', '', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] OFF;
updates/sqlazure/3.5.0-2015-11-05.sql000064400000001671151161446640012306
0ustar00SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 454, 'plg_system_stats', 'plugin',
'stats', 'system', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] OFF;

INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [action_file], [action], [condition_file],
[condition_method], [version_introduced], [enabled])
SELECT 700, 'COM_CPANEL_MSG_STATS_COLLECTION_TITLE',
'COM_CPANEL_MSG_STATS_COLLECTION_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/statscollection.php',
'admin_postinstall_statscollection_condition', '3.5.0',
1;
updates/sqlazure/3.5.0-2016-03-01.sql000064400000001302151161446640012273
0ustar00ALTER TABLE [#__redirect_links] DROP CONSTRAINT
[#__redirect_links$idx_link_old];
ALTER TABLE [#__redirect_links] ALTER COLUMN [old_url] [nvarchar](2048) NOT
NULL;

--
-- The following statement had to be modified for 3.6.0 by removing the
-- NOT NULL, which was wrong because not consistent with new install.
-- See also 3.6.0-2016-04-06.sql for updating 3.5.0 or 3.5.1
--
ALTER TABLE [#__redirect_links] ALTER COLUMN [new_url] [nvarchar](2048);

ALTER TABLE [#__redirect_links] ALTER COLUMN [referer] [nvarchar](2048) NOT
NULL;
CREATE NONCLUSTERED INDEX [idx_old_url] ON [#__redirect_links]
(
	[old_url] ASC
)WITH (STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);
updates/sqlazure/3.6.0-2016-04-01.sql000064400000001651151161446640012304
0ustar00-- Rename update site names
UPDATE [#__update_sites] SET [name] = 'Joomla! Core' WHERE [name]
= 'Joomla Core' AND [type] = 'collection';
UPDATE [#__update_sites] SET [name] = 'Joomla! Extension
Directory' WHERE [name] = 'Joomla Extension Directory' AND
[type] = 'collection';

UPDATE [#__update_sites] SET [location] =
'https://update.joomla.org/core/list.xml' WHERE [name] =
'Joomla! Core' AND [type] = 'collection';
UPDATE [#__update_sites] SET [location] =
'https://update.joomla.org/jed/list.xml' WHERE [name] =
'Joomla! Extension Directory' AND [type] =
'collection';
UPDATE [#__update_sites] SET [location] =
'https://update.joomla.org/language/translationlist_3.xml' WHERE
[name] = 'Accredited Joomla! Translations' AND [type] =
'collection';
UPDATE [#__update_sites] SET [location] =
'https://update.joomla.org/core/extensions/com_joomlaupdate.xml'
WHERE [name] = 'Joomla! Update Component Update Site' AND [type]
= 'extension';
updates/sqlazure/3.6.0-2016-04-06.sql000064400000000111151161446640012277
0ustar00ALTER TABLE [#__redirect_links] ALTER COLUMN [new_url]
[nvarchar](2048);
updates/sqlazure/3.6.0-2016-04-08.sql000064400000001305151161446640012307
0ustar00SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 802, 'English (United Kingdom)', 'package',
'pkg_en-GB', '', 0, 1, 1, 1, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] OFF;

UPDATE [#__update_sites_extensions]
SET [extension_id] = 802
WHERE [update_site_id] IN (
			SELECT [update_site_id]
			FROM [#__update_sites]
			WHERE [name] = 'Accredited Joomla! Translations'
			AND [type] = 'collection'
			)
AND [extension_id] = 600;
updates/sqlazure/3.6.0-2016-04-09.sql000064400000000164151161446640012312
0ustar00--
-- Add ACL check for to #__menu_types
--

ALTER TABLE [#__menu_types] ADD [asset_id] [bigint] NOT NULL DEFAULT
0;updates/sqlazure/3.6.0-2016-05-06.sql000064400000001540151161446640012307
0ustar00DELETE FROM [#__extensions] WHERE [type] = 'library' AND
[element] = 'simplepie';

SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 455, 'plg_installer_packageinstaller', 'plugin',
'packageinstaller', 'installer', 0, 1, 1, 1,
'', '', '', '', 0, '1900-01-01
00:00:00', 1, 0
UNION ALL
SELECT 456, 'plg_installer_folderinstaller', 'plugin',
'folderinstaller', 'installer', 0, 1, 1, 1,
'', '', '', '', 0, '1900-01-01
00:00:00', 2, 0
UNION ALL
SELECT 457, 'plg_installer_urlinstaller', 'plugin',
'urlinstaller', 'installer', 0, 1, 1, 1, '',
'', '', '', 0, '1900-01-01
00:00:00', 3, 0;

SET IDENTITY_INSERT [#__extensions] OFF;
updates/sqlazure/3.6.0-2016-06-01.sql000064400000000125151161446640012301
0ustar00UPDATE [#__extensions] SET [protected] = 1, [enabled] = 1 WHERE
[name] = 'com_ajax';
updates/sqlazure/3.6.0-2016-06-05.sql000064400000000162151161446640012306
0ustar00--
-- Add ACL check for to #__languages
--

ALTER TABLE [#__languages] ADD [asset_id] [bigint] NOT NULL DEFAULT
0;updates/sqlazure/3.6.3-2016-08-15.sql000064400000000206151161446640012313
0ustar00--
-- Increasing size of the URL field in com_newsfeeds
--

ALTER TABLE [#__newsfeeds] ALTER COLUMN [link] [nvarchar](2048) NOT NULL;
updates/sqlazure/3.6.3-2016-08-16.sql000064400000001351151161446640012316
0ustar00INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [action_file], [action], [condition_file],
[condition_method], [version_introduced], [enabled])
SELECT 700,
'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME',
'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_BODY',
'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_ACTION',
'plg_system_updatenotification', 1, 'action',
'site://plugins/system/updatenotification/postinstall/updatecachetime.php',
'updatecachetime_postinstall_action',
'site://plugins/system/updatenotification/postinstall/updatecachetime.php',
'updatecachetime_postinstall_condition', '3.6.3', 1;
updates/sqlazure/3.7.0-2016-08-06.sql000064400000000725151161446640012317
0ustar00SET IDENTITY_INSERT #__extensions  ON;

INSERT INTO #__extensions ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 458, 'plg_quickicon_phpversioncheck', 'plugin',
'phpversioncheck', 'quickicon', 0, 1, 1, 1,
'', '', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT #__extensions  OFF;
updates/sqlazure/3.7.0-2016-08-22.sql000064400000000710151161446640012307
0ustar00SET IDENTITY_INSERT [#__extensions]  ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 459, 'plg_editors-xtd_menu', 'plugin',
'menu', 'editors-xtd', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] 
OFF;updates/sqlazure/3.7.0-2016-08-29.sql000064400000013673151161446640012332
0ustar00/****** Object:  Table [#__fields] ******/

SET QUOTED_IDENTIFIER ON;

CREATE TABLE [#__fields] (
	[id] [int] IDENTITY(1,1) NOT NULL,
	[asset_id] [int] NOT NULL DEFAULT 0,
	[context] [nvarchar](255) NOT NULL DEFAULT '',
	[group_id] [int] NOT NULL DEFAULT 0,
	[title] [nvarchar](255) NOT NULL DEFAULT '',
	[name] [nvarchar](255) NOT NULL DEFAULT '',
	[label] [nvarchar](255) NOT NULL DEFAULT '',
	[default_value] [nvarchar](max) NOT NULL DEFAULT '',
	[type] [nvarchar](255) NOT NULL DEFAULT '',
	[note] [nvarchar](255) NOT NULL DEFAULT '',
	[description] [nvarchar](max) NOT NULL DEFAULT '',
	[state] [smallint] NOT NULL DEFAULT 0,
	[required] [smallint] NOT NULL DEFAULT 0,
	[checked_out] [bigint] NOT NULL DEFAULT 0,
	[checked_out_time] [datetime] NOT NULL DEFAULT '1900-01-01
00:00:00',
	[ordering] [int] NOT NULL DEFAULT 0,
	[params] [nvarchar](max) NOT NULL DEFAULT '',
	[fieldparams] [nvarchar](max) NOT NULL DEFAULT '',
	[language] [nvarchar](7) NOT NULL DEFAULT '',
	[created_time] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
	[created_user_id] [bigint] NOT NULL DEFAULT 0,
	[modified_time] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
	[modified_by] [bigint] NOT NULL DEFAULT 0,
	[access] [int] NOT NULL DEFAULT 1,
CONSTRAINT [PK_#__fields_id] PRIMARY KEY CLUSTERED(
	[id] ASC)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON
) ON [PRIMARY]) ON [PRIMARY];

CREATE NONCLUSTERED INDEX [idx_checkout] ON [#__fields](
	[checked_out] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_state] ON [#__fields](
	[state] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_access] ON [#__fields](
	[access] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_context] ON [#__fields](
	[context] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_language] ON [#__fields](
	[language] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

/****** Object:  Table [#__fields_categories] ******/

SET QUOTED_IDENTIFIER ON;

CREATE TABLE [#__fields_categories] (
	[field_id] [int] NOT NULL DEFAULT 0,
	[category_id] [int] NOT NULL DEFAULT 0,
CONSTRAINT [PK_#__fields_categories_id] PRIMARY KEY CLUSTERED(
	[field_id] ASC,
	[category_id] ASC)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON
) ON [PRIMARY]) ON [PRIMARY];

/****** Object:  Table [#__fields_groups] ******/

SET QUOTED_IDENTIFIER ON;

CREATE TABLE [#__fields_groups] (
	[id] [int] IDENTITY(1,1) NOT NULL,
	[asset_id] [int] NOT NULL DEFAULT 0,
	[context] [nvarchar](255) NOT NULL DEFAULT '',
	[title] [nvarchar](255) NOT NULL DEFAULT '',
	[note] [nvarchar](255) NOT NULL DEFAULT '',
	[description] [nvarchar](max) NOT NULL DEFAULT '',
	[state] [smallint] NOT NULL DEFAULT 0,
	[checked_out] [bigint] NOT NULL DEFAULT 0,
	[checked_out_time] [datetime] NOT NULL DEFAULT '1900-01-01
00:00:00',
	[ordering] [int] NOT NULL DEFAULT 0,
	[language] [nvarchar](7) NOT NULL DEFAULT '',
	[created] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
	[created_by] [bigint] NOT NULL DEFAULT 0,
	[modified] [datetime] NOT NULL DEFAULT
'1900-01-01T00:00:00.000',
	[modified_by] [bigint] NOT NULL DEFAULT 0,
	[access] [int] NOT NULL DEFAULT 1,
CONSTRAINT [PK_#__fields_groups_id] PRIMARY KEY CLUSTERED(
	[id] ASC)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON
 ) ON [PRIMARY]) ON [PRIMARY];

CREATE NONCLUSTERED INDEX [idx_checkout] ON [#__fields_groups](
	[checked_out] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_state] ON [#__fields_groups](
	[state] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_created_by] ON [#__fields_groups](
	[created_by] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_access] ON [#__fields_groups](
	[access] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_context] ON [#__fields_groups](
	[context] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_language] ON [#__fields_groups](
	[language] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

/****** Object:  Table [#__fields_values] ******/

SET QUOTED_IDENTIFIER ON;

CREATE TABLE [#__fields_values] (
	[field_id] [bigint] NOT NULL DEFAULT 1,
	[item_id] [nvarchar](255) NOT NULL DEFAULT '',
	[value] [nvarchar](max) NOT NULL DEFAULT '',
) ON [PRIMARY];

CREATE NONCLUSTERED INDEX [idx_field_id] ON [#__fields_values](
	[field_id] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX [idx_item_id] ON [#__fields_values](
	[item_id] ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

SET IDENTITY_INSERT [#__extensions] ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 33, 'com_fields', 'component',
'com_fields', '', 1, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 461, 'plg_system_fields', 'plugin',
'fields', 'system', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0


SET IDENTITY_INSERT [#__extensions] OFF;
updates/sqlazure/3.7.0-2016-09-29.sql000064400000000776151161446640012333
0ustar00INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [action_file], [action], [condition_file],
[condition_method], [version_introduced], [enabled])
SELECT 700, 'COM_CPANEL_MSG_JOOMLA40_PRE_CHECKS_TITLE',
'COM_CPANEL_MSG_JOOMLA40_PRE_CHECKS_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/joomla40checks.php',
'admin_postinstall_joomla40checks_condition', '3.7.0',
1;

updates/sqlazure/3.7.0-2016-10-01.sql000064400000000717151161446640012304
0ustar00SET IDENTITY_INSERT [#__extensions]  ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 460, 'plg_editors-xtd_contact', 'plugin',
'contact', 'editors-xtd', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions]  OFF;
updates/sqlazure/3.7.0-2016-10-02.sql000064400000000102151161446640012271
0ustar00ALTER TABLE [#__session] ALTER COLUMN [client_id] [tinyint] NULL;
updates/sqlazure/3.7.0-2016-11-04.sql000064400000001215151161446640012302
0ustar00-- Change default value for enabled column.
DECLARE @table AS nvarchar(100)
DECLARE @constraintName AS nvarchar(100)
DECLARE @constraintQuery AS nvarchar(1000)
SET QUOTED_IDENTIFIER OFF
SET @table = "#__extensions"
SET QUOTED_IDENTIFIER ON
SELECT @constraintName = name FROM sys.default_constraints
WHERE parent_object_id = object_id(@table)
AND parent_column_id = columnproperty(object_id(@table),
'enabled', 'ColumnId')
SET @constraintQuery = 'ALTER TABLE [' + @table + '] DROP
CONSTRAINT [' + @constraintName
+ ']; ALTER TABLE [' + @table + '] ADD CONSTRAINT [' +
@constraintName + '] DEFAULT 0 FOR [enabled]'
EXECUTE sp_executesql @constraintQuery;
updates/sqlazure/3.7.0-2016-11-19.sql000064400000000242151161446640012307
0ustar00ALTER TABLE [#__menu_types] ADD [client_id] [tinyint] NOT NULL
DEFAULT 0;

UPDATE [#__menu] SET [published] = 1 WHERE [menutype] = 'main' OR
[menutype] = 'menu';
updates/sqlazure/3.7.0-2016-11-24.sql000064400000000411151161446640012301
0ustar00ALTER TABLE [#__extensions] ADD [package_id] [bigint] NOT NULL
DEFAULT 0;

UPDATE [#__extensions]
SET [package_id] = (SELECT [extension_id] FROM [#__extensions] WHERE [type]
= 'package' AND [element] = 'pkg_en-GB')
WHERE [type]= 'language' AND [element] = 'en-GB';
updates/sqlazure/3.7.0-2017-01-08.sql000064400000003374151161446640012316
0ustar00-- Normalize ucm_content_table default values.
ALTER TABLE [#__ucm_content] ADD DEFAULT ('') FOR
[core_type_alias];
ALTER TABLE [#__ucm_content] ADD DEFAULT ('') FOR [core_body];
ALTER TABLE [#__ucm_content] ADD DEFAULT ('') FOR [core_params];
ALTER TABLE [#__ucm_content] ADD DEFAULT ('') FOR
[core_metadata];
ALTER TABLE [#__ucm_content] ADD DEFAULT ('') FOR
[core_language];

ALTER TABLE [#__ucm_content] DROP CONSTRAINT
[#__ucm_content_core_content_id$idx_type_alias_item_id];
ALTER TABLE [#__ucm_content] ALTER COLUMN [core_content_item_id] [bigint]
NOT NULL;
ALTER TABLE [#__ucm_content] ADD CONSTRAINT
[#__ucm_content_core_content_id$idx_type_alias_item_id] UNIQUE NONCLUSTERED
(
	[core_type_alias] ASC,
	[core_content_item_id] ASC
) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY];
ALTER TABLE [#__ucm_content] ADD DEFAULT (0) FOR [core_content_item_id];

ALTER TABLE [#__ucm_content] ALTER COLUMN [asset_id] [bigint] NOT NULL;
ALTER TABLE [#__ucm_content] ADD DEFAULT (0) FOR [asset_id];

ALTER TABLE [#__ucm_content] ADD DEFAULT ('') FOR [core_images];
ALTER TABLE [#__ucm_content] ADD DEFAULT ('') FOR [core_urls];
ALTER TABLE [#__ucm_content] ADD DEFAULT ('') FOR [core_metakey];
ALTER TABLE [#__ucm_content] ADD DEFAULT ('') FOR
[core_metadesc];
ALTER TABLE [#__ucm_content] ADD DEFAULT ('') FOR
[core_xreference];

DROP INDEX [idx_core_type_id] ON [#__ucm_content];
ALTER TABLE [#__ucm_content] ALTER COLUMN [core_type_id] [bigint] NOT NULL;
CREATE NONCLUSTERED INDEX [idx_core_type_id] ON [#__ucm_content]
(
	[core_type_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);
ALTER TABLE [#__ucm_content] ADD DEFAULT (0) FOR [core_type_id];
updates/sqlazure/3.7.0-2017-01-09.sql000064400000000726151161446640012315
0ustar00-- Normalize categories table default values.
ALTER TABLE [#__categories] ADD DEFAULT ('') FOR [title];
ALTER TABLE [#__categories] ADD DEFAULT ('') FOR [description];
ALTER TABLE [#__categories] ADD DEFAULT ('') FOR [params];
ALTER TABLE [#__categories] ADD DEFAULT ('') FOR [metadesc];
ALTER TABLE [#__categories] ADD DEFAULT ('') FOR [metakey];
ALTER TABLE [#__categories] ADD DEFAULT ('') FOR [metadata];
ALTER TABLE [#__categories] ADD DEFAULT ('') FOR [language];
updates/sqlazure/3.7.0-2017-01-15.sql000064400000000706151161446640012310
0ustar00SET IDENTITY_INSERT #__extensions  ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state]) VALUES
(34, 'com_associations', 'component',
'com_associations', '', 1, 1, 1, 1, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT #__extensions  OFF;
updates/sqlazure/3.7.0-2017-01-17.sql000064400000011410151161446640012304
0ustar00-- Sync menutype for admin menu and set client_id correct
-- Note: This change had to be modified with Joomla 3.7.3 because the
-- original version made site menus disappear if there were menu types
-- "main" or "menu" defined for the site.

-- Step 1: If there is any user-defined menu and menu type "main"
for the site
-- (client_id = 0), then change the menu type for the menu, any module and
the
-- menu type to something very likely not being used yet and just within
the
-- max. length of 24 characters.
UPDATE [#__menu]
   SET [menutype] = 'main_is_reserved_133C585'
 WHERE [client_id] = 0
   AND [menutype] = 'main'
   AND (SELECT COUNT([id]) FROM [#__menu_types] WHERE [client_id] = 0 AND
[menutype] = 'main') > 0;

UPDATE [#__modules]
   SET [params] =
REPLACE([params],'"menutype":"main"','"menutype":"main_is_reserved_133C585"')
 WHERE [client_id] = 0
   AND (SELECT COUNT([id]) FROM [#__menu_types] WHERE [client_id] = 0 AND
[menutype] = 'main') > 0;

UPDATE [#__menu_types]
   SET [menutype] = 'main_is_reserved_133C585'
 WHERE [client_id] = 0 
   AND [menutype] = 'main';

-- Step 2: What remains now are the main menu items, possibly with wrong
-- client_id if there was nothing hit by step 1 because there was no record
in
-- the menu types table with client_id = 0.
UPDATE [#__menu]
   SET [client_id] = 1
 WHERE [menutype] = 'main';

-- Step 3: If we have menu items for the admin using menutype =
"menu" and
-- having correct client_id = 1, we can be sure they belong to the admin
menu
-- and so rename the menutype.
UPDATE [#__menu]
   SET [menutype] = 'main'
 WHERE [client_id] = 1 
   AND [menutype] = 'menu';

-- Step 4: If there is no user-defined menu type "menu" for the
site, we can
-- assume that any menu items for that menu type belong to the admin.
-- Fix the client_id for those as it was done with the original version of
this
-- schema update script here.
UPDATE [#__menu]
   SET [menutype] = 'main',
       [client_id] = 1
 WHERE [menutype] = 'menu'
   AND (SELECT COUNT([id]) FROM [#__menu_types] WHERE [client_id] = 0 AND
[menutype] = 'menu') > 0;

-- Step 5: For the standard admin menu items of menutype "main"
there is no record
-- in the menutype table on a clean Joomla installation. If there is one,
it is a
-- mistake and it should be deleted. This is also the case with menu type
"menu"
-- for the admin, for which we changed the menutype of the menu items in
step 3.
DELETE FROM [#__menu_types]
 WHERE [client_id] = 1
   AND [menutype] IN ('main', 'menu');

-- End sync menutype for admin menu and set client_id correct

SET IDENTITY_INSERT #__extensions  ON;

INSERT INTO [#__extensions] ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 462, 'plg_fields_calendar', 'plugin',
'calendar', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 463, 'plg_fields_checkboxes', 'plugin',
'checkboxes', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 464, 'plg_fields_color', 'plugin',
'color', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 465, 'plg_fields_editor', 'plugin',
'editor', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 466, 'plg_fields_imagelist', 'plugin',
'imagelist', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 467, 'plg_fields_integer', 'plugin',
'integer', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 468, 'plg_fields_list', 'plugin',
'list', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 469, 'plg_fields_media', 'plugin',
'media', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 470, 'plg_fields_radio', 'plugin',
'radio', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 471, 'plg_fields_sql', 'plugin',
'sql', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 472, 'plg_fields_text', 'plugin',
'text', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 473, 'plg_fields_textarea', 'plugin',
'textarea', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 474, 'plg_fields_url', 'plugin',
'url', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 475, 'plg_fields_user', 'plugin',
'user', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0
UNION ALL
SELECT 476, 'plg_fields_usergrouplist', 'plugin',
'usergrouplist', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT #__extensions  OFF;

updates/sqlazure/3.7.0-2017-01-31.sql000064400000000677151161446640012315
0ustar00SET IDENTITY_INSERT #__extensions  ON;

INSERT INTO #__extensions ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 477, 'plg_content_fields', 'plugin',
'fields', 'content', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT #__extensions  OFF;
updates/sqlazure/3.7.0-2017-02-02.sql000064400000000707151161446640012306
0ustar00SET IDENTITY_INSERT #__extensions  ON;

INSERT INTO #__extensions ([extension_id], [name], [type], [element],
[folder], [client_id], [enabled], [access], [protected], [manifest_cache],
[params], [custom_data], [system_data], [checked_out], [checked_out_time],
[ordering], [state])
SELECT 478, 'plg_editors-xtd_fields', 'plugin',
'fields', 'editors-xtd', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0;

SET IDENTITY_INSERT #__extensions  OFF;
updates/sqlazure/3.7.0-2017-02-15.sql000064400000000162151161446640012305
0ustar00-- Normalize redirect_links table default values.
ALTER TABLE [#__redirect_links] ADD DEFAULT ('') FOR [comment];
updates/sqlazure/3.7.0-2017-02-16.sql000064400000042540151161446640012314
0ustar00-- Replace datetime to datetime2(0) type for all columns.
DROP INDEX [idx_track_date] ON [#__banner_tracks];
ALTER TABLE [#__banner_tracks] DROP CONSTRAINT
[PK_#__banner_tracks_track_date];
ALTER TABLE [#__banner_tracks] ALTER COLUMN [track_date] [datetime2](0) NOT
NULL;
ALTER TABLE [#__banner_tracks] ADD CONSTRAINT
[PK_#__banner_tracks_track_date_type_id] PRIMARY KEY CLUSTERED
(
	[track_date] ASC,
	[track_type] ASC,
	[banner_id] ASC
) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY];
CREATE NONCLUSTERED INDEX [idx_track_date2] ON [#__banner_tracks]
(
	[track_date] ASC
) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE PROCEDURE "#removeDefault"
(
	@table NVARCHAR(100),
	@column NVARCHAR(100)
)
AS
BEGIN
	DECLARE @constraintName AS nvarchar(100)
	DECLARE @constraintQuery AS nvarchar(1000)
	SELECT @constraintName = name FROM sys.default_constraints
		WHERE parent_object_id = object_id(@table)
		AND parent_column_id = columnproperty(object_id(@table), @column,
'ColumnId')
	SET @constraintQuery = 'ALTER TABLE [' + @table + '] DROP
CONSTRAINT [' + @constraintName + ']'
	EXECUTE sp_executesql @constraintQuery
END;

EXECUTE "#removeDefault" "#__banner_clients",
'checked_out_time';
ALTER TABLE [#__banner_clients] ALTER COLUMN [checked_out_time]
[datetime2](0) NOT NULL;
ALTER TABLE [#__banner_clients] ADD DEFAULT '1900-01-01 00:00:00'
FOR [checked_out_time];

EXECUTE "#removeDefault" "#__banners",
'checked_out_time';
ALTER TABLE [#__banners] ALTER COLUMN [checked_out_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__banners] ADD DEFAULT '1900-01-01 00:00:00' FOR
[checked_out_time];

EXECUTE "#removeDefault" "#__banners",
'publish_up';
ALTER TABLE [#__banners] ALTER COLUMN [publish_up] [datetime2](0) NOT NULL;
ALTER TABLE [#__banners] ADD DEFAULT '1900-01-01 00:00:00' FOR
[publish_up];

EXECUTE "#removeDefault" "#__banners",
'publish_down';
ALTER TABLE [#__banners] ALTER COLUMN [publish_down] [datetime2](0) NOT
NULL;
ALTER TABLE [#__banners] ADD DEFAULT '1900-01-01 00:00:00' FOR
[publish_down];

EXECUTE "#removeDefault" "#__banners",
'reset';
ALTER TABLE [#__banners] ALTER COLUMN [reset] [datetime2](0) NOT NULL;
ALTER TABLE [#__banners] ADD DEFAULT '1900-01-01 00:00:00' FOR
[reset];

EXECUTE "#removeDefault" "#__banners",
'created';
ALTER TABLE [#__banners] ALTER COLUMN [created] [datetime2](0) NOT NULL;
ALTER TABLE [#__banners] ADD DEFAULT '1900-01-01 00:00:00' FOR
[created];

EXECUTE "#removeDefault" "#__banners",
'modified';
ALTER TABLE [#__banners] ALTER COLUMN [modified] [datetime2](0) NOT NULL;
ALTER TABLE [#__banners] ADD DEFAULT '1900-01-01 00:00:00' FOR
[modified];

DROP INDEX [idx_checked_out_time] ON [#__categories];
EXECUTE "#removeDefault" "#__categories",
'checked_out_time';
ALTER TABLE [#__categories] ALTER COLUMN [checked_out_time] [datetime2](0)
NOT NULL;
ALTER TABLE [#__categories] ADD DEFAULT '1900-01-01 00:00:00' FOR
[checked_out_time];
CREATE NONCLUSTERED INDEX [idx_checked_out_time2] ON [#__categories](
	[checked_out_time] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

EXECUTE "#removeDefault" "#__categories",
'created_time';
ALTER TABLE [#__categories] ALTER COLUMN [created_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__categories] ADD DEFAULT '1900-01-01 00:00:00' FOR
[created_time];

EXECUTE "#removeDefault" "#__categories",
'modified_time';
ALTER TABLE [#__categories] ALTER COLUMN [modified_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__categories] ADD DEFAULT '1900-01-01 00:00:00' FOR
[modified_time];

EXECUTE "#removeDefault" "#__contact_details",
'checked_out_time';
ALTER TABLE [#__contact_details] ALTER COLUMN [checked_out_time]
[datetime2](0) NOT NULL;
ALTER TABLE [#__contact_details] ADD DEFAULT '1900-01-01
00:00:00' FOR [checked_out_time];

EXECUTE "#removeDefault" "#__contact_details",
'created';
ALTER TABLE [#__contact_details] ALTER COLUMN [created] [datetime2](0) NOT
NULL;
ALTER TABLE [#__contact_details] ADD DEFAULT '1900-01-01
00:00:00' FOR [created];

EXECUTE "#removeDefault" "#__contact_details",
'modified';
ALTER TABLE [#__contact_details] ALTER COLUMN [modified] [datetime2](0) NOT
NULL;
ALTER TABLE [#__contact_details] ADD DEFAULT '1900-01-01
00:00:00' FOR [modified];

EXECUTE "#removeDefault" "#__contact_details",
'publish_up';
ALTER TABLE [#__contact_details] ALTER COLUMN [publish_up] [datetime2](0)
NOT NULL;
ALTER TABLE [#__contact_details] ADD DEFAULT '1900-01-01
00:00:00' FOR [publish_up];

EXECUTE "#removeDefault" "#__contact_details",
'publish_down';
ALTER TABLE [#__contact_details] ALTER COLUMN [publish_down] [datetime2](0)
NOT NULL;
ALTER TABLE [#__contact_details] ADD DEFAULT '1900-01-01
00:00:00' FOR [publish_down];

EXECUTE "#removeDefault" "#__content",
'created';
ALTER TABLE [#__content] ALTER COLUMN [created] [datetime2](0) NOT NULL;
ALTER TABLE [#__content] ADD DEFAULT '1900-01-01 00:00:00' FOR
[created];

EXECUTE "#removeDefault" "#__content",
'modified';
ALTER TABLE [#__content] ALTER COLUMN [modified] [datetime2](0) NOT NULL;
ALTER TABLE [#__content] ADD DEFAULT '1900-01-01 00:00:00' FOR
[modified];

EXECUTE "#removeDefault" "#__content",
'checked_out_time';
ALTER TABLE [#__content] ALTER COLUMN [checked_out_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__content] ADD DEFAULT '1900-01-01 00:00:00' FOR
[checked_out_time];

EXECUTE "#removeDefault" "#__content",
'publish_up';
ALTER TABLE [#__content] ALTER COLUMN [publish_up] [datetime2](0) NOT NULL;
ALTER TABLE [#__content] ADD DEFAULT '1900-01-01 00:00:00' FOR
[publish_up];

EXECUTE "#removeDefault" "#__content",
'publish_down';
ALTER TABLE [#__content] ALTER COLUMN [publish_down] [datetime2](0) NOT
NULL;
ALTER TABLE [#__content] ADD DEFAULT '1900-01-01 00:00:00' FOR
[publish_down];

DROP INDEX [idx_date_id] ON [#__contentitem_tag_map];
EXECUTE "#removeDefault" "#__contentitem_tag_map",
'tag_date';
ALTER TABLE [#__contentitem_tag_map] ALTER COLUMN [tag_date] [datetime2](0)
NOT NULL;
ALTER TABLE [#__contentitem_tag_map] ADD DEFAULT '1900-01-01
00:00:00' FOR [tag_date];
CREATE NONCLUSTERED INDEX [idx_date_id2] ON [#__contentitem_tag_map](
	[tag_date] ASC,
	[tag_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

EXECUTE "#removeDefault" "#__extensions",
'checked_out_time';
ALTER TABLE [#__extensions] ALTER COLUMN [checked_out_time] [datetime2](0)
NOT NULL;
ALTER TABLE [#__extensions] ADD DEFAULT '1900-01-01 00:00:00' FOR
[checked_out_time];

EXECUTE "#removeDefault" "#__fields",
'checked_out_time';
ALTER TABLE [#__fields] ALTER COLUMN [checked_out_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__fields] ADD DEFAULT '1900-01-01 00:00:00' FOR
[checked_out_time];

EXECUTE "#removeDefault" "#__fields",
'created_time';
ALTER TABLE [#__fields] ALTER COLUMN [created_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__fields] ADD DEFAULT '1900-01-01 00:00:00' FOR
[created_time];

EXECUTE "#removeDefault" "#__fields",
'modified_time';
ALTER TABLE [#__fields] ALTER COLUMN [modified_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__fields] ADD DEFAULT '1900-01-01 00:00:00' FOR
[modified_time];

EXECUTE "#removeDefault" "#__fields_groups",
'checked_out_time';
ALTER TABLE [#__fields_groups] ALTER COLUMN [checked_out_time]
[datetime2](0) NOT NULL;
ALTER TABLE [#__fields_groups] ADD DEFAULT '1900-01-01 00:00:00'
FOR [checked_out_time];

EXECUTE "#removeDefault" "#__fields_groups",
'created';
ALTER TABLE [#__fields_groups] ALTER COLUMN [created] [datetime2](0) NOT
NULL;
ALTER TABLE [#__fields_groups] ADD DEFAULT '1900-01-01 00:00:00'
FOR [created];

EXECUTE "#removeDefault" "#__fields_groups",
'modified';
ALTER TABLE [#__fields_groups] ALTER COLUMN [modified] [datetime2](0) NOT
NULL;
ALTER TABLE [#__fields_groups] ADD DEFAULT '1900-01-01 00:00:00'
FOR [modified];

EXECUTE "#removeDefault" "#__finder_filters",
'created';
ALTER TABLE [#__finder_filters] ALTER COLUMN [created] [datetime2](0) NOT
NULL;
ALTER TABLE [#__finder_filters] ADD DEFAULT '1900-01-01 00:00:00'
FOR [created];

EXECUTE "#removeDefault" "#__finder_filters",
'modified';
ALTER TABLE [#__finder_filters] ALTER COLUMN [modified] [datetime2](0) NOT
NULL;
ALTER TABLE [#__finder_filters] ADD DEFAULT '1900-01-01 00:00:00'
FOR [modified];

EXECUTE "#removeDefault" "#__finder_filters",
'checked_out_time';
ALTER TABLE [#__finder_filters] ALTER COLUMN [checked_out_time]
[datetime2](0) NOT NULL;
ALTER TABLE [#__finder_filters] ADD DEFAULT '1900-01-01 00:00:00'
FOR [checked_out_time];

EXECUTE "#removeDefault" "#__finder_links",
'indexdate';
ALTER TABLE [#__finder_links] ALTER COLUMN [indexdate] [datetime2](0) NOT
NULL;
ALTER TABLE [#__finder_links] ADD DEFAULT '1900-01-01 00:00:00'
FOR [indexdate];

EXECUTE "#removeDefault" "#__finder_links",
'publish_start_date';
ALTER TABLE [#__finder_links] ALTER COLUMN [publish_start_date]
[datetime2](0) NOT NULL;
ALTER TABLE [#__finder_links] ADD DEFAULT '1900-01-01 00:00:00'
FOR [publish_start_date];

EXECUTE "#removeDefault" "#__finder_links",
'publish_end_date';
ALTER TABLE [#__finder_links] ALTER COLUMN [publish_end_date]
[datetime2](0) NOT NULL;
ALTER TABLE [#__finder_links] ADD DEFAULT '1900-01-01 00:00:00'
FOR [publish_end_date];

EXECUTE "#removeDefault" "#__finder_links",
'start_date';
ALTER TABLE [#__finder_links] ALTER COLUMN [start_date] [datetime2](0) NOT
NULL;
ALTER TABLE [#__finder_links] ADD DEFAULT '1900-01-01 00:00:00'
FOR [start_date];

EXECUTE "#removeDefault" "#__finder_links",
'end_date';
ALTER TABLE [#__finder_links] ALTER COLUMN [end_date] [datetime2](0) NOT
NULL;
ALTER TABLE [#__finder_links] ADD DEFAULT '1900-01-01 00:00:00'
FOR [end_date];

EXECUTE "#removeDefault" "#__menu",
'checked_out_time';
ALTER TABLE [#__menu] ALTER COLUMN [checked_out_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__menu] ADD DEFAULT '1900-01-01 00:00:00' FOR
[checked_out_time];

EXECUTE "#removeDefault" "#__messages",
'date_time';
ALTER TABLE [#__messages] ALTER COLUMN [date_time] [datetime2](0) NOT NULL;
ALTER TABLE [#__messages] ADD DEFAULT '1900-01-01 00:00:00' FOR
[date_time];

EXECUTE "#removeDefault" "#__modules",
'checked_out_time';
ALTER TABLE [#__modules] ALTER COLUMN [checked_out_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__modules] ADD DEFAULT '1900-01-01 00:00:00' FOR
[checked_out_time];

EXECUTE "#removeDefault" "#__modules",
'publish_up';
ALTER TABLE [#__modules] ALTER COLUMN [publish_up] [datetime2](0) NOT NULL;
ALTER TABLE [#__modules] ADD DEFAULT '1900-01-01 00:00:00' FOR
[publish_up];

EXECUTE "#removeDefault" "#__modules",
'publish_down';
ALTER TABLE [#__modules] ALTER COLUMN [publish_down] [datetime2](0) NOT
NULL;
ALTER TABLE [#__modules] ADD DEFAULT '1900-01-01 00:00:00' FOR
[publish_down];

EXECUTE "#removeDefault" "#__newsfeeds",
'checked_out_time';
ALTER TABLE [#__newsfeeds] ALTER COLUMN [checked_out_time] [datetime2](0)
NOT NULL;
ALTER TABLE [#__newsfeeds] ADD DEFAULT '1900-01-01 00:00:00' FOR
[checked_out_time];

EXECUTE "#removeDefault" "#__newsfeeds",
'created';
ALTER TABLE [#__newsfeeds] ALTER COLUMN [created] [datetime2](0) NOT NULL;
ALTER TABLE [#__newsfeeds] ADD DEFAULT '1900-01-01 00:00:00' FOR
[created];

EXECUTE "#removeDefault" "#__newsfeeds",
'modified';
ALTER TABLE [#__newsfeeds] ALTER COLUMN [modified] [datetime2](0) NOT NULL;
ALTER TABLE [#__newsfeeds] ADD DEFAULT '1900-01-01 00:00:00' FOR
[modified];

EXECUTE "#removeDefault" "#__newsfeeds",
'publish_up';
ALTER TABLE [#__newsfeeds] ALTER COLUMN [publish_up] [datetime2](0) NOT
NULL;
ALTER TABLE [#__newsfeeds] ADD DEFAULT '1900-01-01 00:00:00' FOR
[publish_up];

EXECUTE "#removeDefault" "#__newsfeeds",
'publish_down';
ALTER TABLE [#__newsfeeds] ALTER COLUMN [publish_down] [datetime2](0) NOT
NULL;
ALTER TABLE [#__newsfeeds] ADD DEFAULT '1900-01-01 00:00:00' FOR
[publish_down];

EXECUTE "#removeDefault" "#__redirect_links",
'created_date';
ALTER TABLE [#__redirect_links] ALTER COLUMN [created_date] [datetime2](0)
NOT NULL;
ALTER TABLE [#__redirect_links] ADD DEFAULT '1900-01-01 00:00:00'
FOR [created_date];

DROP INDEX [idx_link_modifed] ON [#__redirect_links];
EXECUTE "#removeDefault" "#__redirect_links",
'modified_date';
ALTER TABLE [#__redirect_links] ALTER COLUMN [modified_date] [datetime2](0)
NOT NULL;
ALTER TABLE [#__redirect_links] ADD DEFAULT '1900-01-01 00:00:00'
FOR [modified_date];
CREATE NONCLUSTERED INDEX [idx_link_modifed2] ON [#__redirect_links](
	[modified_date] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

EXECUTE "#removeDefault" "#__tags",
'checked_out_time';
ALTER TABLE [#__tags] ALTER COLUMN [checked_out_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__tags] ADD DEFAULT '1900-01-01 00:00:00' FOR
[checked_out_time];

EXECUTE "#removeDefault" "#__tags",
'created_time';
ALTER TABLE [#__tags] ALTER COLUMN [created_time] [datetime2](0) NOT NULL;
ALTER TABLE [#__tags] ADD DEFAULT '1900-01-01 00:00:00' FOR
[created_time];

EXECUTE "#removeDefault" "#__tags",
'modified_time';
ALTER TABLE [#__tags] ALTER COLUMN [modified_time] [datetime2](0) NOT NULL;
ALTER TABLE [#__tags] ADD DEFAULT '1900-01-01 00:00:00' FOR
[modified_time];

EXECUTE "#removeDefault" "#__tags",
'publish_up';
ALTER TABLE [#__tags] ALTER COLUMN [publish_up] [datetime2](0) NOT NULL;
ALTER TABLE [#__tags] ADD DEFAULT '1900-01-01 00:00:00' FOR
[publish_up];

EXECUTE "#removeDefault" "#__tags",
'publish_down';
ALTER TABLE [#__tags] ALTER COLUMN [publish_down] [datetime2](0) NOT NULL;
ALTER TABLE [#__tags] ADD DEFAULT '1900-01-01 00:00:00' FOR
[publish_down];

EXECUTE "#removeDefault" "#__ucm_content",
'core_checked_out_time';
ALTER TABLE [#__ucm_content] ALTER COLUMN [core_checked_out_time]
[datetime2](0) NOT NULL;
ALTER TABLE [#__ucm_content] ADD DEFAULT '1900-01-01 00:00:00'
FOR [core_checked_out_time];

DROP INDEX [idx_created_time] ON [#__ucm_content];
EXECUTE "#removeDefault" "#__ucm_content",
'core_created_time';
ALTER TABLE [#__ucm_content] ALTER COLUMN [core_created_time]
[datetime2](0) NOT NULL;
ALTER TABLE [#__ucm_content] ADD DEFAULT '1900-01-01 00:00:00'
FOR [core_created_time];
CREATE NONCLUSTERED INDEX [idx_created_time2] ON [#__ucm_content](
	[core_created_time] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

DROP INDEX [idx_modified_time] ON [#__ucm_content];
EXECUTE "#removeDefault" "#__ucm_content",
'core_modified_time';
ALTER TABLE [#__ucm_content] ALTER COLUMN [core_modified_time]
[datetime2](0) NOT NULL;
ALTER TABLE [#__ucm_content] ADD DEFAULT '1900-01-01 00:00:00'
FOR [core_modified_time];
CREATE NONCLUSTERED INDEX [idx_modified_time2] ON [#__ucm_content](
	[core_modified_time] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

EXECUTE "#removeDefault" "#__ucm_content",
'core_publish_up';
ALTER TABLE [#__ucm_content] ALTER COLUMN [core_publish_up] [datetime2](0)
NOT NULL;
ALTER TABLE [#__ucm_content] ADD DEFAULT '1900-01-01 00:00:00'
FOR [core_publish_up];

EXECUTE "#removeDefault" "#__ucm_content",
'core_publish_down';
ALTER TABLE [#__ucm_content] ALTER COLUMN [core_publish_down]
[datetime2](0) NOT NULL;
ALTER TABLE [#__ucm_content] ADD DEFAULT '1900-01-01 00:00:00'
FOR [core_publish_down];

DROP INDEX [idx_save_date] ON [#__ucm_history];
EXECUTE "#removeDefault" "#__ucm_history",
'save_date';
ALTER TABLE [#__ucm_history] ALTER COLUMN [save_date] [datetime2](0) NOT
NULL;
ALTER TABLE [#__ucm_history] ADD DEFAULT '1900-01-01 00:00:00'
FOR [save_date];
CREATE NONCLUSTERED INDEX [idx_save_date2] ON [#__ucm_history](
	[save_date] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

EXECUTE "#removeDefault" "#__user_notes",
'checked_out_time';
ALTER TABLE [#__user_notes] ALTER COLUMN [checked_out_time] [datetime2](0)
NOT NULL;
ALTER TABLE [#__user_notes] ADD DEFAULT '1900-01-01 00:00:00' FOR
[checked_out_time];

EXECUTE "#removeDefault" "#__user_notes",
'created_time';
ALTER TABLE [#__user_notes] ALTER COLUMN [created_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__user_notes] ADD DEFAULT '1900-01-01 00:00:00' FOR
[created_time];

EXECUTE "#removeDefault" "#__user_notes",
'modified_time';
ALTER TABLE [#__user_notes] ALTER COLUMN [modified_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__user_notes] ADD DEFAULT '1900-01-01 00:00:00' FOR
[modified_time];

EXECUTE "#removeDefault" "#__user_notes",
'review_time';
ALTER TABLE [#__user_notes] ALTER COLUMN [review_time] [datetime2](0) NOT
NULL;
ALTER TABLE [#__user_notes] ADD DEFAULT '1900-01-01 00:00:00' FOR
[review_time];

EXECUTE "#removeDefault" "#__user_notes",
'publish_up';
ALTER TABLE [#__user_notes] ALTER COLUMN [publish_up] [datetime2](0) NOT
NULL;
ALTER TABLE [#__user_notes] ADD DEFAULT '1900-01-01 00:00:00' FOR
[publish_up];

EXECUTE "#removeDefault" "#__user_notes",
'publish_down';
ALTER TABLE [#__user_notes] ALTER COLUMN [publish_down] [datetime2](0) NOT
NULL;
ALTER TABLE [#__user_notes] ADD DEFAULT '1900-01-01 00:00:00' FOR
[publish_down];

EXECUTE "#removeDefault" "#__users",
'registerDate';
ALTER TABLE [#__users] ALTER COLUMN [registerDate] [datetime2](0) NOT NULL;
ALTER TABLE [#__users] ADD DEFAULT '1900-01-01 00:00:00' FOR
[registerDate];

EXECUTE "#removeDefault" "#__users",
'lastvisitDate';
ALTER TABLE [#__users] ALTER COLUMN [lastvisitDate] [datetime2](0) NOT
NULL;
ALTER TABLE [#__users] ADD DEFAULT '1900-01-01 00:00:00' FOR
[lastvisitDate];

EXECUTE "#removeDefault" "#__users",
'lastResetTime';
ALTER TABLE [#__users] ALTER COLUMN [lastResetTime] [datetime2](0) NOT
NULL;
ALTER TABLE [#__users] ADD DEFAULT '1900-01-01 00:00:00' FOR
[lastResetTime];

DROP PROCEDURE "#removeDefault";
updates/sqlazure/3.7.0-2017-02-17.sql000064400000002025151161446640012307
0ustar00-- Normalize contact_details table default values.
DECLARE @table AS nvarchar(32)
DECLARE @constraintName AS nvarchar(100)
DECLARE @constraintQuery AS nvarchar(1000)
SET QUOTED_IDENTIFIER OFF
SET @table = "#__contact_details"
SET QUOTED_IDENTIFIER ON
SELECT @constraintName = name FROM sys.default_constraints
WHERE parent_object_id = object_id(@table)
AND parent_column_id = columnproperty(object_id(@table), 'name',
'ColumnId')
SET @constraintQuery = 'ALTER TABLE [' + @table + '] DROP
CONSTRAINT [' + @constraintName + ']'
EXECUTE sp_executesql @constraintQuery;

ALTER TABLE [#__contact_details] ADD DEFAULT (0) FOR [published];
ALTER TABLE [#__contact_details] ADD DEFAULT (0) FOR [checked_out];
ALTER TABLE [#__contact_details] ADD DEFAULT ('') FOR
[created_by_alias];

ALTER TABLE [#__contact_details] ADD DEFAULT ('') FOR
[sortname1];
ALTER TABLE [#__contact_details] ADD DEFAULT ('') FOR
[sortname2];
ALTER TABLE [#__contact_details] ADD DEFAULT ('') FOR
[sortname3];
ALTER TABLE [#__contact_details] ADD DEFAULT ('') FOR
[xreference];
updates/sqlazure/3.7.0-2017-03-03.sql000064400000002074151161446640012307
0ustar00CREATE PROCEDURE "#removeDefault"
(
	@table NVARCHAR(100),
	@column NVARCHAR(100)
)
AS
BEGIN
	DECLARE @constraintName AS nvarchar(100)
	DECLARE @constraintQuery AS nvarchar(1000)
	SELECT @constraintName = name FROM sys.default_constraints
		WHERE parent_object_id = object_id(@table)
		AND parent_column_id = columnproperty(object_id(@table), @column,
'ColumnId')
	SET @constraintQuery = 'ALTER TABLE [' + @table + '] DROP
CONSTRAINT [' + @constraintName + ']'
	EXECUTE sp_executesql @constraintQuery
END;

EXECUTE "#removeDefault" "#__extensions",
'system_data';
EXECUTE "#removeDefault" "#__updates",
'data';

ALTER TABLE "#__content" ADD DEFAULT ('') FOR
"xreference";
ALTER TABLE "#__newsfeeds" ADD DEFAULT ('') FOR
"xreference";

-- Delete wrong unique index
DROP INDEX "idx_access" ON "#__languages";

-- Add missing unique index
ALTER TABLE "#__languages" ADD CONSTRAINT
"#__languages$idx_langcode" UNIQUE ("lang_code") ON
[PRIMARY];

-- Add missing index keys
CREATE INDEX "idx_access" ON "#__languages"
("access");
CREATE INDEX "idx_ordering" ON "#__languages"
("ordering");
updates/sqlazure/3.7.0-2017-03-09.sql000064400000001401151161446640012306
0ustar00UPDATE "#__categories" SET published = 1 WHERE alias =
'root';
UPDATE "c"
SET published = c2.newPublished
FROM "#__categories" AS "c"
INNER JOIN (
SELECT c2.id,CASE WHEN MIN(p.published) > 0 THEN MAX(p.published) ELSE
MIN(p.published) END AS newPublished
FROM "#__categories" AS "c2"
INNER JOIN "#__categories" AS "p" ON p.lft <= c2.lft
AND c2.rgt <= p.rgt
GROUP BY c2.id) AS c2 ON c2.id = c.id;

UPDATE "#__menu" SET published = 1 WHERE alias =
'root';
UPDATE "c"
SET published = c2.newPublished
FROM "#__menu" AS "c"
INNER JOIN (
SELECT c2.id,CASE WHEN MIN(p.published) > 0 THEN MAX(p.published) ELSE
MIN(p.published) END AS newPublished
FROM "#__menu" AS "c2"
INNER JOIN "#__menu" AS "p" ON p.lft <= c2.lft AND
c2.rgt <= p.rgt
GROUP BY c2.id) AS c2 ON c2.id = c.id;
updates/sqlazure/3.7.0-2017-04-10.sql000064400000001144151161446640012303
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled")
VALUES
(700, 'TPL_HATHOR_MESSAGE_POSTINSTALL_TITLE',
'TPL_HATHOR_MESSAGE_POSTINSTALL_BODY',
'TPL_HATHOR_MESSAGE_POSTINSTALL_ACTION', 'tpl_hathor',
1, 'action',
'admin://templates/hathor/postinstall/hathormessage.php',
'hathormessage_postinstall_action',
'admin://templates/hathor/postinstall/hathormessage.php',
'hathormessage_postinstall_condition', '3.7.0',
1);updates/sqlazure/3.7.0-2017-04-19.sql000064400000000250151161446640012311
0ustar00-- Set integer field default values.
UPDATE [#__extensions] SET [params] =
'{"multiple":"0","first":"1","last":"100","step":"1"}'
WHERE [name] = 'plg_fields_integer';

updates/sqlazure/3.7.4-2017-07-05.sql000064400000000134151161446640012314
0ustar00DELETE FROM [#__postinstall_messages] WHERE [title_key] =
'COM_CPANEL_MSG_PHPVERSION_TITLE';updates/sqlazure/3.8.0-2017-07-28.sql000064400000000110151161446640012310
0ustar00ALTER TABLE [#__fields_groups] ADD [params] [text] NOT NULL DEFAULT
'';
updates/sqlazure/3.8.0-2017-07-31.sql000064400000001003151161446640012304
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
  (318, 0, 'mod_sampledata', 'module',
'mod_sampledata', '', 1, 0, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0),
  (479, 0, 'plg_sampledata_blog', 'plugin',
'blog', 'sampledata', 0, 0, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0);
updates/sqlazure/3.8.2-2017-10-14.sql000064400000000324151161446640012306
0ustar00--
-- Add index for alias check #__content
--

CREATE NONCLUSTERED INDEX [idx_alias] ON [#__content]
(
	[alias] ASC
)WITH (STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);
updates/sqlazure/3.8.4-2018-01-16.sql000064400000000210151161446640012305
0ustar00ALTER TABLE [#__user_keys] DROP CONSTRAINT [#__user_keys$series_2];
ALTER TABLE [#__user_keys] DROP CONSTRAINT [#__user_keys$series_3];
updates/sqlazure/3.8.6-2018-02-14.sql000064400000002017151161446640012315
0ustar00INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(480, 0, 'plg_system_sessiongc', 'plugin',
'sessiongc', 'system', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0);

INSERT INTO "#__postinstall_messages" ("extension_id",
"title_key", "description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled")
VALUES
(700, 'PLG_PLG_RECAPTCHA_VERSION_1_POSTINSTALL_TITLE',
'PLG_PLG_RECAPTCHA_VERSION_1_POSTINSTALL_BODY',
'PLG_PLG_RECAPTCHA_VERSION_1_POSTINSTALL_ACTION',
'plg_captcha_recaptcha', 1, 'action',
'site://plugins/captcha/recaptcha/postinstall/actions.php',
'recaptcha_postinstall_action',
'site://plugins/captcha/recaptcha/postinstall/actions.php',
'recaptcha_postinstall_condition', '3.8.6', 1);
updates/sqlazure/3.8.8-2018-05-18.sql000064400000001017151161446640012325
0ustar00INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [action_file], [action], [condition_file],
[condition_method], [version_introduced], [enabled])
SELECT 700, 'COM_CPANEL_MSG_UPDATEDEFAULTSETTINGS_TITLE',
'COM_CPANEL_MSG_UPDATEDEFAULTSETTINGS_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/updatedefaultsettings.php',
'admin_postinstall_updatedefaultsettings_condition',
'3.8.8', 1;
updates/sqlazure/3.8.9-2018-06-19.sql000064400000000153151161446640012330
0ustar00-- Enable Sample Data Module.
UPDATE [#__extensions] SET [enabled] = '1' WHERE [name] =
'mod_sampledata';

updates/sqlazure/3.9.0-2018-05-02.sql000064400000002557151161446640012321
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(35, 0, 'com_privacy', 'component',
'com_privacy', '', 1, 1, 1, 1, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;

CREATE TABLE "#__privacy_requests" (
  "id" int IDENTITY(1,1) NOT NULL,
  "email" nvarchar(100) NOT NULL DEFAULT '',
  "requested_at" datetime2(0) NOT NULL DEFAULT '1900-01-01
00:00:00',
  "status" smallint NOT NULL,
  "request_type" nvarchar(25) NOT NULL DEFAULT '',
  "confirm_token" nvarchar(100) NOT NULL DEFAULT '',
  "confirm_token_created_at" datetime2(0) NOT NULL DEFAULT
'1900-01-01 00:00:00',
  "checked_out" bigint NOT NULL DEFAULT 0,
  "checked_out_time" datetime2(0) NOT NULL DEFAULT
'1900-01-01 00:00:00',
CONSTRAINT "PK_#__privacy_requests_id" PRIMARY KEY CLUSTERED(
  "id" ASC)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON
) ON [PRIMARY]) ON [PRIMARY];

CREATE NONCLUSTERED INDEX "idx_checkout" ON
"#__privacy_requests" (
  "checked_out" ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);
updates/sqlazure/3.9.0-2018-05-03.sql000064400000000750151161446640012313
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(482, 0, 'plg_content_confirmconsent', 'plugin',
'confirmconsent', 'content', 0, 0, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;
updates/sqlazure/3.9.0-2018-05-05.sql000064400000011665151161446640012324
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(36, 0, 'com_actionlogs', 'component',
'com_actionlogs', '', 1, 1, 1, 1, '',
'{"ip_logging":0,"csv_delimiter":",","loggable_extensions":["com_banners","com_cache","com_categories","com_config","com_contact","com_content","com_installer","com_media","com_menus","com_messages","com_modules","com_newsfeeds","com_plugins","com_redirect","com_tags","com_templates","com_users"]}',
'', '', 0, '1900-01-01 00:00:00', 0, 0),
(483, 0, 'plg_system_actionlogs', 'plugin',
'actionlogs', 'system', 0, 0, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0),
(484, 0, 'plg_actionlog_joomla', 'plugin',
'joomla', 'actionlog', 0, 1, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;

CREATE TABLE "#__action_logs" (
	"id" "int" IDENTITY(1,1) NOT NULL,
	"message_language_key" "nvarchar"(255) NOT NULL
DEFAULT '',
	"message" "nvarchar"(max) NOT NULL DEFAULT
'',
	"log_date" "datetime" NOT NULL DEFAULT
'1900-01-01 00:00:00',
	"extension" "nvarchar"(255) NOT NULL DEFAULT
'',
	"user_id" "bigint" NOT NULL DEFAULT 0,
	"item_id" "bigint" NOT NULL DEFAULT 0,
	"ip_address" "nvarchar"(40) NOT NULL DEFAULT
'0.0.0.0',
	CONSTRAINT "PK_#__action_logs_id" PRIMARY KEY CLUSTERED
 (
 	"id" ASC
 )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
 ) ON [PRIMARY];

CREATE TABLE "#__action_logs_extensions" (
	"id" "int" IDENTITY(1,1) NOT NULL,
	"extension" "nvarchar"(255) NOT NULL DEFAULT
'',
	CONSTRAINT "PK_#__action_logs_extensions_id" PRIMARY KEY
CLUSTERED
 (
	"id" ASC
 )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
 ) ON [PRIMARY];

SET IDENTITY_INSERT "#__action_logs_extensions" ON;

INSERT INTO "#__action_logs_extensions" ("id",
"extension") VALUES
(1, 'com_banners'),
(2, 'com_cache'),
(3, 'com_categories'),
(4, 'com_config'),
(5, 'com_contact'),
(6, 'com_content'),
(7, 'com_installer'),
(8, 'com_media'),
(9, 'com_menus'),
(10, 'com_messages'),
(11, 'com_modules'),
(12, 'com_newsfeeds'),
(13, 'com_plugins'),
(14, 'com_redirect'),
(15, 'com_tags'),
(16, 'com_templates'),
(17, 'com_users');

SET IDENTITY_INSERT "#__action_logs_extensions" OFF;

CREATE TABLE "#__action_log_config" (
	"id" "int" IDENTITY(1,1) NOT NULL,
	"type_title" "nvarchar"(255) NOT NULL DEFAULT
'',
	"type_alias" "nvarchar"(255) NOT NULL DEFAULT
'',
	"id_holder" "nvarchar"(255) NULL,
	"title_holder" "nvarchar"(255) NULL,
	"table_name" "nvarchar"(255) NULL,
	"text_prefix" "nvarchar"(255) NULL,
	CONSTRAINT "PK_#__action_log_config_id" PRIMARY KEY CLUSTERED
 (
 	"id" ASC
 )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
 ) ON [PRIMARY];

SET IDENTITY_INSERT "#__action_log_config" ON;

INSERT INTO "#__action_log_config" ("id",
"type_title", "type_alias", "id_holder",
"title_holder", "table_name", "text_prefix")
VALUES
(1, 'article', 'com_content.article', 'id'
,'title' , '#__content',
'PLG_ACTIONLOG_JOOMLA'),
(2, 'article', 'com_content.form', 'id',
'title' , '#__content',
'PLG_ACTIONLOG_JOOMLA'),
(3, 'banner', 'com_banners.banner', 'id'
,'name' , '#__banners',
'PLG_ACTIONLOG_JOOMLA'),
(4, 'user_note', 'com_users.note', 'id',
'subject' ,'#__user_notes',
'PLG_ACTIONLOG_JOOMLA'),
(5, 'media', 'com_media.file', '' ,
'name' , '',  'PLG_ACTIONLOG_JOOMLA'),
(6, 'category', 'com_categories.category',
'id' , 'title' , '#__categories',
'PLG_ACTIONLOG_JOOMLA'),
(7, 'menu', 'com_menus.menu', 'id'
,'title' , '#__menu_types',
'PLG_ACTIONLOG_JOOMLA'),
(8, 'menu_item', 'com_menus.item', 'id' ,
'title' , '#__menu', 'PLG_ACTIONLOG_JOOMLA'),
(9, 'newsfeed', 'com_newsfeeds.newsfeed',
'id' ,'name' , '#__newsfeeds',
'PLG_ACTIONLOG_JOOMLA'),
(10, 'link', 'com_redirect.link', 'id',
'old_url' , '#__redirect_links',
'PLG_ACTIONLOG_JOOMLA'),
(11, 'tag', 'com_tags.tag', 'id',
'title' , '#__tags', 'PLG_ACTIONLOG_JOOMLA'),
(12, 'style', 'com_templates.style', 'id' ,
'title' , '#__template_styles',
'PLG_ACTIONLOG_JOOMLA'),
(13, 'plugin', 'com_plugins.plugin',
'extension_id' , 'name' , '#__extensions',
'PLG_ACTIONLOG_JOOMLA'),
(14, 'component_config', 'com_config.component',
'extension_id' , 'name', '',
'PLG_ACTIONLOG_JOOMLA'),
(15, 'contact', 'com_contact.contact', 'id',
'name', '#__contact_details',
'PLG_ACTIONLOG_JOOMLA'),
(16, 'module', 'com_modules.module', 'id'
,'title', '#__modules',
'PLG_ACTIONLOG_JOOMLA'),
(17, 'access_level', 'com_users.level', 'id'
, 'title', '#__viewlevels',
'PLG_ACTIONLOG_JOOMLA'),
(18, 'banner_client', 'com_banners.client',
'id', 'name', '#__banner_clients',
'PLG_ACTIONLOG_JOOMLA');

SET IDENTITY_INSERT "#__action_log_config" OFF;
updates/sqlazure/3.9.0-2018-05-19.sql000064400000000734151161446640012324
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(481, 0, 'plg_fields_repeatable', 'plugin',
'repeatable', 'fields', 0, 1, 1, 0, '',
'', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;
updates/sqlazure/3.9.0-2018-05-20.sql000064400000000733151161446640012313
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(319, 0, 'mod_latestactions', 'module',
'mod_latestactions', '', 1, 1, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;
updates/sqlazure/3.9.0-2018-05-24.sql000064400000002376151161446640012324
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(485, 0, 'plg_system_privacyconsent', 'plugin',
'privacyconsent', 'system', 0, 0, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;

--
-- Table structure for table `#__privacy_consents`
--

CREATE TABLE "#__privacy_consents" (
  "id" int IDENTITY(1,1) NOT NULL,
  "user_id" bigint NOT NULL DEFAULT 0,
  "created" datetime2(0) NOT NULL DEFAULT '1900-01-01
00:00:00',
  "subject" nvarchar(255) NOT NULL DEFAULT '',
  "body" nvarchar(max) NOT NULL,
  "remind" smallint NOT NULL,
  "token" nvarchar(100) NOT NULL DEFAULT '',
CONSTRAINT "PK_#__privacy_consents_id" PRIMARY KEY CLUSTERED(
  "id" ASC)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON
) ON [PRIMARY]) ON [PRIMARY];

CREATE NONCLUSTERED INDEX "idx_user_id" ON
"#__privacy_consents" (
  "user_id" ASC)
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);
updates/sqlazure/3.9.0-2018-05-27.sql000064400000001131151161446640012313
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(486, 0, 'plg_system_logrotation', 'plugin',
'logrotation', 'system', 0, 1, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0),
(487, 0, 'plg_privacy_user', 'plugin',
'user', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;
updates/sqlazure/3.9.0-2018-06-02.sql000064400000001530151161446650012311
0ustar00ALTER TABLE "#__content" ADD "note"
"nvarchar"(255) NOT NULL DEFAULT '';

UPDATE "#__content_types" SET "field_mappings" =
'{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext",
"core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access",
"core_params":"attribs",
"core_featured":"featured",
"core_metadata":"metadata",
"core_language":"language",
"core_images":"images",
"core_urls":"urls",
"core_version":"version",
"core_ordering":"ordering",
"core_metakey":"metakey",
"core_metadesc":"metadesc",
"core_catid":"catid",
"core_xreference":"xreference",
"asset_id":"asset_id",
"note":"note"},
"special":{"fulltext":"fulltext"}}'
WHERE "type_alias" = 'com_content.article';
updates/sqlazure/3.9.0-2018-06-12.sql000064400000000743151161446650012317
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(320, 0, 'mod_privacy_dashboard', 'module',
'mod_privacy_dashboard', '', 1, 1, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;
updates/sqlazure/3.9.0-2018-06-13.sql000064400000000750151161446650012316
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(488, 0, 'plg_quickicon_privacycheck', 'plugin',
'privacycheck', 'quickicon', 0, 1, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;
updates/sqlazure/3.9.0-2018-06-14.sql000064400000001023151161446650012311
0ustar00INSERT INTO "#__postinstall_messages"
("extension_id", "title_key",
"description_key", "action_key",
"language_extension", "language_client_id",
"type", "action_file", "action",
"condition_file", "condition_method",
"version_introduced", "enabled") VALUES
(700, 'COM_ACTIONLOGS_POSTINSTALL_TITLE',
'COM_ACTIONLOGS_POSTINSTALL_BODY', '',
'com_actionlogs', 1, 'message', '',
'', '', '', '3.9.0', 1),
(700, 'COM_PRIVACY_POSTINSTALL_TITLE',
'COM_PRIVACY_POSTINSTALL_BODY', '',
'com_privacy', 1, 'message', '',
'', '', '', '3.9.0', 1);
updates/sqlazure/3.9.0-2018-06-17.sql000064400000000720151161446650012317
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(489, 0, 'plg_user_terms', 'plugin', 'terms',
'user', 0, 0, 1, 0, '', '{}', '',
'', 0, '1900-01-01 00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;
updates/sqlazure/3.9.0-2018-07-09.sql000064400000001330151161446650012317
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(490, 0, 'plg_privacy_contact', 'plugin',
'contact', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0),
(491, 0, 'plg_privacy_content', 'plugin',
'content', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0),
(492, 0, 'plg_privacy_message', 'plugin',
'message', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;
updates/sqlazure/3.9.0-2018-07-10.sql000064400000000506151161446650012313
0ustar00SET IDENTITY_INSERT "#__action_log_config" ON;

INSERT INTO "#__action_log_config" ("id",
"type_title", "type_alias", "id_holder",
"title_holder", "table_name", "text_prefix")
VALUES
(19, 'application_config', 'com_config.application',
'', 'name', '',
'PLG_ACTIONLOG_JOOMLA');

SET IDENTITY_INSERT "#__action_log_config" OFF;
updates/sqlazure/3.9.0-2018-07-11.sql000064400000000740151161446650012314
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(493, 0, 'plg_privacy_actionlogs', 'plugin',
'actionlogs', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;
updates/sqlazure/3.9.0-2018-08-12.sql000064400000000115151161446650012312
0ustar00ALTER TABLE "#__privacy_consents" ADD "state"
"smallint" NOT NULL DEFAULT 1;
updates/sqlazure/3.9.0-2018-08-28.sql000064400000001252151161446650012324
0ustar00sp_rename "#__session", "#__session_old";

SELECT cast("session_id" AS varbinary) AS "session_id",
"client_id", "guest", cast("time" AS int) AS
"time", "data", "userid",
"username"
INTO "#__session"
FROM "#__session_old";

DROP TABLE "#__session_old";

ALTER TABLE "#__session" ALTER COLUMN "session_id"
varbinary(192) NOT NULL;
ALTER TABLE "#__session" ADD CONSTRAINT
"PK_#__session_session_id" PRIMARY KEY CLUSTERED
("session_id") ON [PRIMARY];
ALTER TABLE "#__session" ALTER COLUMN "time" int NOT
NULL;
ALTER TABLE "#__session" ADD DEFAULT (0) FOR "time";

CREATE NONCLUSTERED INDEX "time" ON "#__session"
("time");
CREATE NONCLUSTERED INDEX "userid" ON "#__session"
("userid");
updates/sqlazure/3.9.0-2018-08-29.sql000064400000001042151161446650012322
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(494, 0, 'plg_captcha_recaptcha_invisible', 'plugin',
'recaptcha_invisible', 'captcha', 0, 0, 1, 0,
'',
'{"public_key":"","private_key":"","theme":"clean"}',
'', '', 0, '1900-01-01 00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;
updates/sqlazure/3.9.0-2018-09-04.sql000064400000001042151161446650012314
0ustar00CREATE TABLE "#__action_logs_users" (
  "user_id" int NOT NULL,
  "notify" tinyint NOT NULL,
  "extensions" nvarchar(max) NOT NULL,
 CONSTRAINT "PK_#__action_logs_users_user_id" PRIMARY KEY
NONCLUSTERED
(
  "user_id" ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY];

CREATE CLUSTERED INDEX "idx_notify" ON
"#__action_logs_users"
(
  "notify" ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);
updates/sqlazure/3.9.0-2018-10-15.sql000064400000001377151161446650012321
0ustar00CREATE NONCLUSTERED INDEX "idx_user_id" ON
"#__action_logs"
(
	"user_id" ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX "idx_user_id_logdate" ON
"#__action_logs"
(
	"user_id" ASC,
	"log_date" ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX "idx_user_id_extension" ON
"#__action_logs"
(
	"user_id" ASC,
	"extension" ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);

CREATE NONCLUSTERED INDEX "idx_extension_itemid" ON
"#__action_logs"
(
	"extension" ASC,
	"item_id"
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);
updates/sqlazure/3.9.0-2018-10-20.sql000064400000002162151161446650012306
0ustar00-- Drop default values
DECLARE @table AS nvarchar(100)
DECLARE @constraintName AS nvarchar(100)
DECLARE @constraintQuery AS nvarchar(1000)
SET QUOTED_IDENTIFIER OFF
SET @table = "#__privacy_requests"
SET QUOTED_IDENTIFIER ON

-- Drop default value from checked_out
SELECT @constraintName = name FROM sys.default_constraints
WHERE parent_object_id = object_id(@table)
AND parent_column_id = columnproperty(object_id(@table),
'checked_out', 'ColumnId')
SET @constraintQuery = 'ALTER TABLE [' + @table + '] DROP
CONSTRAINT [' + @constraintName + ']'
EXECUTE sp_executesql @constraintQuery

-- Drop default value from checked_out_time
SELECT @constraintName = name FROM sys.default_constraints
WHERE parent_object_id = object_id(@table)
AND parent_column_id = columnproperty(object_id(@table),
'checked_out_time', 'ColumnId')
SET @constraintQuery = 'ALTER TABLE [' + @table + '] DROP
CONSTRAINT [' + @constraintName + ']'
EXECUTE sp_executesql @constraintQuery;

DROP INDEX "idx_checkout" ON "#__privacy_requests";
ALTER TABLE "#__privacy_requests" DROP COLUMN
"checked_out";
ALTER TABLE "#__privacy_requests" DROP COLUMN
"checked_out_time";
updates/sqlazure/3.9.0-2018-10-21.sql000064400000000734151161446650012312
0ustar00SET IDENTITY_INSERT "#__extensions" ON;

INSERT INTO "#__extensions" ("extension_id",
"package_id", "name", "type",
"element", "folder", "client_id",
"enabled", "access", "protected",
"manifest_cache", "params", "custom_data",
"system_data", "checked_out",
"checked_out_time", "ordering", "state")
VALUES
(495, 0, 'plg_privacy_consents', 'plugin',
'consents', 'privacy', 0, 1, 1, 0, '',
'{}', '', '', 0, '1900-01-01
00:00:00', 0, 0);

SET IDENTITY_INSERT "#__extensions" OFF;
updates/sqlazure/3.9.10-2019-07-09.sql000064400000000212151161446650012377
0ustar00ALTER TABLE [#__template_styles] ALTER COLUMN [home] nvarchar(7)
NOT NULL;
ALTER TABLE [#__template_styles] ADD DEFAULT ('0') FOR [home];
updates/sqlazure/3.9.16-2020-03-04.sql000064400000000310151161446650012363
0ustar00DROP INDEX [username] ON [#__users];

CREATE UNIQUE INDEX [idx_username] ON [#__users]
(
  [username] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE =
OFF);updates/sqlazure/3.9.19-2020-06-01.sql000064400000000764151161446650012403
0ustar00INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [action_file], [action], [condition_file],
[condition_method], [version_introduced], [enabled])
SELECT 700, 'COM_CPANEL_MSG_TEXTFILTER3919_TITLE',
'COM_CPANEL_MSG_TEXTFILTER3919_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/textfilter3919.php',
'admin_postinstall_textfilter3919_condition', '3.9.19',
1;
updates/sqlazure/3.9.21-2020-08-02.sql000064400000000750151161446650012372
0ustar00INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [action_file], [action], [condition_file],
[condition_method], [version_introduced], [enabled])
SELECT 700, 'COM_CPANEL_MSG_HTACCESSSVG_TITLE',
'COM_CPANEL_MSG_HTACCESSSVG_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/htaccesssvg.php',
'admin_postinstall_htaccesssvg_condition', '3.9.21', 1;
updates/sqlazure/3.9.22-2020-09-16.sql000064400000000546151161446650012404
0ustar00INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [version_introduced], [enabled])
VALUES
(700, 'COM_ADMIN_POSTINSTALL_MSG_HTACCESS_AUTOINDEX_TITLE',
'COM_ADMIN_POSTINSTALL_MSG_HTACCESS_AUTOINDEX_DESCRIPTION',
'', 'com_admin', 1, 'message',
'3.9.22', 1);
updates/sqlazure/3.9.3-2019-01-12.sql000064400000000461151161446660012314
0ustar00UPDATE "#__extensions" 
SET "params" = REPLACE("params",
'"com_categories",',
'"com_categories","com_checkin",')
WHERE "name" = 'com_actionlogs';

SET IDENTITY_INSERT #__extensions  ON;

INSERT INTO "#__action_logs_extensions" ("extension")
VALUES
('com_checkin');

SET IDENTITY_INSERT #__extensions 
OFF;updates/sqlazure/3.9.3-2019-02-07.sql000064400000000743151161446660012324
0ustar00INSERT INTO [#__postinstall_messages] ([extension_id], [title_key],
[description_key], [action_key], [language_extension],
[language_client_id], [type], [action_file], [action], [condition_file],
[condition_method], [version_introduced], [enabled])
SELECT 700, 'COM_CPANEL_MSG_ADDNOSNIFF_TITLE',
'COM_CPANEL_MSG_ADDNOSNIFF_BODY', '',
'com_cpanel', 1, 'message', '', '',
'admin://components/com_admin/postinstall/addnosniff.php',
'admin_postinstall_addnosniff_condition', '3.9.3', 1;
updates/sqlazure/3.9.4-2019-03-06.sql000064400000000507151161446660012323
0ustar00UPDATE "#__extensions" SET "element" =
'contact', "folder" = 'privacy' WHERE
"name" = 'plg_privacy_contact';
UPDATE "#__extensions" SET "element" =
'content', "folder" = 'privacy' WHERE
"name" = 'plg_privacy_content';
UPDATE "#__extensions" SET "element" =
'message', "folder" = 'privacy' WHERE
"name" = 'plg_privacy_message';
updates/sqlazure/3.9.7-2019-04-23.sql000064400000000300151161446660012315
0ustar00CREATE NONCLUSTERED INDEX [idx_client_id_guest] ON [#__session]
(
	[client_id] ASC,
	[guest] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);
updates/sqlazure/3.9.7-2019-04-26.sql000064400000000522151161446660012326
0ustar00UPDATE [#__content_types] SET [content_history_options] =
REPLACE([content_history_options],
'\"ignoreChanges\":[\"modified_by\",
\"modified\", \"checked_out\",
\"checked_out_time\", \"version\",
\"hits\"]',
'\"ignoreChanges\":[\"modified_by\",
\"modified\", \"checked_out\",
\"checked_out_time\", \"version\", \"hits\",
\"ordering\"]');
updates/sqlazure/3.9.7-2019-05-16.sql000064400000000105151161446660012323
0ustar00# Query removed, see
https://github.com/joomla/joomla-cms/pull/25177
updates/sqlazure/3.9.8-2019-06-11.sql000064400000000102151161446660012315
0ustar00UPDATE [#__users] SET [params] = REPLACE([params],
'",,"',
'","');updates/sqlazure/3.9.8-2019-06-15.sql000064400000001056151161446660012332
0ustar00DROP INDEX [idx_home] ON [#__template_styles];
# Query removed, see https://github.com/joomla/joomla-cms/pull/25484
CREATE NONCLUSTERED INDEX [idx_client_id] ON [#__template_styles]
(
  [client_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);
CREATE NONCLUSTERED INDEX [idx_client_id_home] ON [#__template_styles]
(
  [client_id] ASC,
  [home] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING =
OFF, ONLINE = OFF);
ALTER TABLE [#__template_styles] ADD DEFAULT (0) FOR [home];
config.helpdeskpro.sql000064400000007242151162102600011050 0ustar00INSERT
INTO `#__helpdeskpro_configs` (`id`, `config_key`, `config_value`) VALUES
(1, 'allow_public_user_submit_ticket', '0'),
(2, 'enable_captcha', '0'),
(3, 'date_format', 'l, d M Y g:i a'),
(4, 'default_ticket_priority_id', '3'),
(5, 'new_ticket_status_id', '1'),
(6, 'ticket_status_when_customer_add_comment', '2'),
(7, 'ticket_status_when_admin_add_comment', '3'),
(8, 'closed_ticket_status', '4'),
(9, 'enable_attachment', '1'),
(10, 'allowed_file_types',
'bmp|csv|doc|docx|gif|ico|jpg|jpeg|odg|odp|ods|odt|pdf|png|ppt|txt|xcf|xls|xlsx|zip|gzip'),
(11, 'max_number_attachments', '3'),
(12, 'send_ticket_attachments_to_email', '1'),
(13, 'process_bb_code', '1'),
(14, 'highlight_code', '1'),
(15, 'programming_languages', 'Php,JScript,Css,Xml'),
(16, 'staff_group_id', '5'),
(17, 'from_name', ''),
(18, 'from_email', ''),
(19, 'notification_emails', ''),
(20, 'new_ticket_admin_email_subject', '[[CATEGORY_TITLE] -
#[TICKET_ID]](New) [TICKET_SUBJECT]'),
(21, 'new_ticket_admin_email_body', '<p>User
<strong>[NAME]</strong> has just submitted support ticket
#[TICKET_ID]</p>\r\n<p><strong>[TICKET_SUBJECT]</strong></p>\r\n<p>[TICKET_MESSAGE]</p>\r\n<p><a
href="[FRONTEND_LINK]">You can click here to view the ticket
from front-end</a></p>\r\n<p><a
href="[BACKEND_LINK]">You can click here to view the ticket
from back-end of your site</a></p>'),
(22, 'new_ticket_user_email_subject',
'[[CATEGORY_TITLE]]Ticket #[TICKET_ID] received'),
(23, 'new_ticket_user_email_body', '<p>Dear
<strong>[NAME]</strong></p>\r\n<p>We received your
support request for ticket #[TICKET_ID]. Our support staff will check and
reply you within 24 hours. Below are detail of your support
ticket:</p>\r\n<p><strong>[TICKET_SUBJECT]</strong></p>\r\n<p>[TICKET_MESSAGE]</p>\r\n<p><a
href="[FRONTEND_LINK]">You can click here to view the
ticket</a></p>\r\n<p><a
href="[FRONTEND_LINK_WITHOUT_LOGIN]">You can also click here
to view the ticket without having to login</a></p>'),
(24, 'ticket_updated_admin_email_subject',
'[[CATEGORY_TITLE] - #[TICKET_ID]](Updated) [TICKET_SUBJECT]'),
(25, 'ticket_updated_admin_email_body', '<p>User
[NAME] has just added a comment to ticket #[TICKET_ID]
:</p>\r\n<p>[TICKET_COMMENT]</p>\r\n<p><a
href="[FRONTEND_LINK]">You can click here to view the ticket
from front-end</a></p>\r\n<p><a
href="[BACKEND_LINK]">You can click here to view the ticket
from back-end of your site</a></p>'),
(26, 'ticket_updated_user_email_subject', '[[CATEGORY_TITLE]
- #[TICKET_ID]](Updated) [TICKET_SUBJECT]'),
(27, 'ticket_updated_user_email_body', '<p>Dear
<strong>[NAME]</strong></p>\r\n<p>User
<strong>[MANAGER_NAME]</strong> has just added a comment to
ticket
#<strong>[TICKET_ID]</strong>:</p>\r\n<p>[TICKET_COMMENT]</p>\r\n<p><a
href="[FRONTEND_LINK]">You can click here to view the
ticket</a></p>\r\n<p><a
href="[FRONTEND_LINK_WITHOUT_LOGIN]">You can also click here
to view the ticket without having to login</a></p>'),
(28, 'ticket_assiged_email_subject', 'New Ticket
assignment'),
(29, 'ticket_assiged_email_body', '<p>Dear
[STAFF_NAME]</p>\r\n<p>[MANAGER_NAME] has just assigned a new
ticket #[TICKET_ID] to you. Please login to your account, check and work on
the ticket.</p>'),
(30, 'notify_manager_when_staff_reply', '1'),
(31, 'notify_staff_when_customer_reply', '1');
INSERT INTO `#__helpdeskpro_priorities` (`id`, `title`, `ordering`,
`published`) VALUES
(1, '1 - VERY LOW', 1, 1),
(2, '2 - LOW', 2, 1),
(3, '3 - NORMAL', 3, 1),
(4, '4 - ELEVATED', 4, 1),
(5, '4 - ELEVATED', 5, 1),
(6, '5 - HIGH', 6, 1);
INSERT INTO `#__helpdeskpro_statuses` (`id`, `title`, `ordering`,
`published`) VALUES
(1, 'NEW', 1, 1),
(2, 'PENDING RESOLUTION', 2, 1),
(3, 'REQUIRE FEEDBACK', 3, 1),
(4, 'CLOSED', 4,
1);install.helpdeskpro.sql000064400000007671151162102600011257
0ustar00CREATE TABLE IF NOT EXISTS `#__helpdeskpro_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `parent_id` int(11) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` text,
  `access` tinyint(4) NOT NULL DEFAULT '0',
  `managers` varchar(255) DEFAULT NULL,
  `ordering` int(11) DEFAULT NULL,
  `published` tinyint(3) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) CHARACTER SET `utf8`;
CREATE TABLE IF NOT EXISTS `#__helpdeskpro_configs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `config_key` varchar(255) DEFAULT NULL,
  `config_value` text,
  PRIMARY KEY (`id`)
) CHARACTER SET `utf8`;
CREATE TABLE IF NOT EXISTS `#__helpdeskpro_fields` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `category_id` int(11) DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` text,
  `field_type` tinyint(3) unsigned DEFAULT NULL,
  `required` tinyint(3) unsigned DEFAULT NULL,
  `values` text,
  `default_values` text,
  `rows` tinyint(3) unsigned DEFAULT NULL,
  `cols` tinyint(3) unsigned DEFAULT NULL,
  `size` tinyint(3) unsigned DEFAULT NULL,
  `datatype_validation` tinyint(3) unsigned DEFAULT NULL,
  `css_class` varchar(100) DEFAULT NULL,
  `extra` varchar(255) DEFAULT NULL,
  `ordering` int(11) DEFAULT NULL,
  `published` tinyint(3) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) CHARACTER SET `utf8`;
CREATE TABLE IF NOT EXISTS `#__helpdeskpro_field_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `field_id` int(11) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) CHARACTER SET `utf8`;
CREATE TABLE IF NOT EXISTS `#__helpdeskpro_field_value` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `ticket_id` int(11) DEFAULT NULL,
  `field_id` int(11) DEFAULT NULL,
  `field_value` text,
  PRIMARY KEY (`id`)
) CHARACTER SET `utf8`;
CREATE TABLE IF NOT EXISTS `#__helpdeskpro_messages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ticket_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `date_added` datetime DEFAULT NULL,
  `message` text,
  `attachments` tinytext,
  `original_filenames` tinytext,
  PRIMARY KEY (`id`)
) CHARACTER SET `utf8`;
CREATE TABLE IF NOT EXISTS `#__helpdeskpro_priorities` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) DEFAULT NULL,
  `ordering` int(11) DEFAULT NULL,
  `published` tinyint(3) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) CHARACTER SET `utf8`;
CREATE TABLE IF NOT EXISTS `#__helpdeskpro_statuses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) DEFAULT NULL,
  `ordering` int(11) DEFAULT NULL,
  `published` tinyint(3) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) CHARACTER SET `utf8`;
CREATE TABLE IF NOT EXISTS `#__helpdeskpro_tickets` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `category_id` int(11) NOT NULL DEFAULT '0',
  `user_id` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `message` text,
  `attachments` varchar(255) DEFAULT NULL,
  `original_filenames` varchar(255) DEFAULT NULL,
  `ticket_code` varchar(15) DEFAULT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` datetime DEFAULT NULL,
  `priority_id` tinyint(3) unsigned DEFAULT NULL,
  `status_id` tinyint(3) unsigned DEFAULT NULL,
  `rating` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) CHARACTER SET `utf8`;
CREATE TABLE IF NOT EXISTS `#__helpdeskpro_labels` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) DEFAULT NULL,
  `color_code` varchar(40) DEFAULT NULL,
  `published` tinyint(3) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) CHARACTER SET `utf8`;
CREATE TABLE IF NOT EXISTS `#__helpdeskpro_replies` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(225) NOT NULL,
  `message` text,
  `published` tinyint(3) unsigned DEFAULT NULL,
  `ordering` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) CHARACTER SET `utf8`;.DS_Store000064400000014004151163543300006227
0ustar00Bud1	tesbwspblupdatesbwspblob�bplist00�
]ShowStatusBar[ShowSidebar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds[ShowPathbar				_{{1068,
373}, {1361, 870}}	%1=I`myz{|}~��updatesvSrnlong
@� @� @� @E	DSDB
`� @� @�
@updates/1.0.0.sql000064400000000000151163543300007355
0ustar00updates/1.2.0.sql000064400000026256151163543300007404 0ustar00ALTER
TABLE  `#__invoices_contacts` ADD  `city` varchar(255) NOT NULL,
  ADD `state` varchar(255) NOT NULL,
  ADD `country` varchar(255) NOT NULL,
  ADD `vatid` varchar(255) NOT NULL,
  ADD `zipcode` varchar(255) NOT NULL ;

ALTER TABLE  `#__invoices_invoices` ADD  `discount` decimal(10,2) NOT NULL,
  ADD `invoice_duedate` datetime NOT NULL,
  ADD `admin_notes` text NOT NULL,
  ADD `to_city` varchar(255) NOT NULL,
  ADD `to_state` varchar(255) NOT NULL,
  ADD `to_country` varchar(255) NOT NULL,
  ADD `to_vatid` varchar(255) NOT NULL,
  ADD `to_zipcode` varchar(255) NOT NULL,
  ADD `rec_year` int(3) NOT NULL,
  ADD `rec_month` int(3) NOT NULL,
  ADD `rec_day` int(3) NOT NULL,
  ADD `rec_nextdate` date NOT NULL,
  ADD `is_recurrent` tinyint(1) NOT NULL ;

ALTER TABLE  `#__invoices_items` ADD  `discount` decimal(10,2) NOT NULL,
  ADD `ordering` int(11) NOT NULL ;

ALTER TABLE  `#__invoices_payments` ADD  `ordering` int(11) NOT NULL ;

ALTER TABLE  `#__invoices_taxes` ADD  `ordering` int(11) NOT NULL ;

ALTER TABLE  `#__invoices_templates` ADD  `payments2` text NOT NULL ;


INSERT INTO `#__invoices_templates` ( `name`, `content`, `items`, `taxes`,
`payments`, `payments2`) VALUES
( 'Default', '<table width="690"
style="width:690px; font-family:Helvetica;font-size:11px;" 
>\r\n  <tr>\r\n    <td valign="top"
style="vertical-align:top;"><img
src="http://www.joomlafinances.com/components/com_invoices/assets/images/logo.png"
/><br />\r\n      <br />\r\n     
<strong>{from_name}</strong> <br />\r\n     
{from_address} <br />\r\n      <br />\r\n      E-mail:
{from_email} <br />\r\n      Phone: {from_phone} <br />\r\n    
 Fiscal number: {from_num} </td>\r\n    <td valign="top"
style="vertical-align:top;" width="200"><div
style="background:#000; color:#FFF; padding:2px;">INVOICE
INFO</div>\r\n      <div style="border:1px solid #000;
padding:2px; border-top:none;">\r\n        <table>\r\n       
  <tr>\r\n            <td>Date: </td>\r\n           
<td>{invoice_date}</td>\r\n          </tr>\r\n         
<tr>\r\n            <td>Invoice number: </td>\r\n        
   <td>{invoice_num}</td>\r\n          </tr>\r\n       
</table>\r\n      </div>\r\n      <br />\r\n      <div
style="background:#000; color:#FFF; padding:2px;">BILL
TO</div>\r\n      <div style="border:1px solid #000;
padding:2px; border-top:none;">
<strong>{to_name}</strong> <br />\r\n        {to_company}
<br />\r\n        {to_address} <br />\r\n        {to_zipcode}
{to_city} <br />\r\n        {to_state} {to_country} <br />\r\n 
      <br />\r\n        VAT ID: {to_vatid}<br />\r\n       
E-mail: {to_email} <br />\r\n      </div></td>\r\n 
</tr>\r\n  <tr>\r\n    <td colspan="2"><br
/></td>\r\n  </tr>\r\n  <tr>\r\n    <td
colspan="2"><div style="background:#000; color:#FFF;
padding:2px;">ITEMS</div>\r\n      <div
style="border:1px solid #000; padding:2px;
border-top:none;">\r\n        <table width="100%" 
>\r\n          <tr>\r\n            <th
align="left">Description</th>\r\n            <th
align="right" style="text-align:right;">Unit
cost</th>\r\n            <th align="right"
style="text-align:right;">Quantity</th>\r\n           
<th align="right"
style="text-align:right;">Discount</th>\r\n           
<th align="right"
style="text-align:right;">Price</th>\r\n         
</tr>\r\n          <tr >\r\n            <th
colspan="5"><hr /></th>\r\n         
</tr>\r\n          {items}\r\n          <tr >\r\n           
<td colspan="5"><hr /></td>\r\n         
</tr>\r\n          <tfoot>\r\n            <tr>\r\n       
      <td colspan="2"></td>\r\n              <td
colspan="2">Discount</td>\r\n              <td
align="right"
style="text-align:right;">{discount}</td>\r\n           
</tr>\r\n            <tr>\r\n              <td
colspan="2"></td>\r\n              <td
colspan="2">Subtotal</td>\r\n              <td
align="right"
style="text-align:right;">{subtotal}</td>\r\n           
</tr>\r\n          {taxes}\r\n          <tr >\r\n           
<td colspan="2"></td>\r\n            <td
colspan="3"><hr /></td>\r\n         
</tr>\r\n          <tr>\r\n            <td
colspan="2"></td>\r\n            <td
colspan="2"><strong>Total</strong></td>\r\n 
          <td align="right"
style="text-align:right;"><strong>{total}</strong></td>\r\n
         </tr>\r\n          </tfoot>\r\n          \r\n       
</table>\r\n      </div></td>\r\n  </tr>\r\n 
<tr>\r\n    <td colspan="2"><br
/></td>\r\n  </tr>\r\n  <tr>\r\n    <td
colspan="2"><div style="background:#000; color:#FFF;
padding:2px;">PAYMENTS RECEIVED</div>\r\n      <div
style="border:1px solid #000; padding:2px;
border-top:none;">\r\n        <table width="100%" 
>\r\n          <tr>\r\n            <th
align="left">Payment date</th>\r\n            <th
align="left">Description</th>\r\n            <th
align="right"
style="text-align:right;">Amount</th>\r\n         
</tr>\r\n          <tr >\r\n            <th
colspan="3"><hr /></th>\r\n         
</tr>\r\n          {payments}\r\n          <tr >\r\n           
<td colspan="3"><hr /></td>\r\n         
</tr>\r\n          <tfoot>\r\n           \r\n           
<tr>\r\n              <td ></td>\r\n              <td
><strong>Total amount paid</strong></td>\r\n          
   <td align="right"
style="text-align:right;"><strong>{total_payments}</strong></td>\r\n
           </tr>\r\n            \r\n          </tfoot>\r\n     
  </table>\r\n       \r\n      </div></td>\r\n 
</tr>\r\n  <tr>\r\n    <td colspan="2"><br
/></td>\r\n  </tr>\r\n  <tr>\r\n    <td
colspan="2"><div style="background:#000; color:#FFF;
padding:2px;">PENDING PAYMENTS</div>\r\n      <div
style="border:1px solid #000; padding:2px;
border-top:none;">\r\n        \r\n        <table
width="100%"  >\r\n          <tr>\r\n            <th
align="left">Due date</th>\r\n            <th
align="left">Description</th>\r\n            <th
align="left"></th>\r\n            <th
align="right"
style="text-align:right;">Amount</th>\r\n         
</tr>\r\n          <tr >\r\n            <th
colspan="4"><hr /></th>\r\n         
</tr>\r\n          {payments2}\r\n          <tr >\r\n          
 <td colspan="4"><hr /></td>\r\n         
</tr>\r\n          <tfoot>\r\n            \r\n           
<tr>\r\n              <td ></td>\r\n              <td
></td>\r\n              <td ><strong>Amount
outstanding</strong></td>\r\n              <td
align="right"
style="text-align:right;"><strong>{amount_outstanding}</strong></td>\r\n
           </tr>\r\n          </tfoot>\r\n       
</table>\r\n        \r\n      </div></td>\r\n 
</tr>\r\n  <tr>\r\n    <td colspan="2"><br
/></td>\r\n  </tr>\r\n  <tr>\r\n    <td
colspan="2"><div
style="padding:2px;">Notes</div>\r\n      <div
style="border-top:1px solid #000; padding:2px;
">{notes}</div></td>\r\n 
</tr>\r\n</table>',
'<tr><td>\r\n<strong>{name}</strong><br
/>{desc}\r\n</td>\r\n<td align="right"
style="text-align:right;">\r\n{value}\r\n</td>\r\n<td
align="right"
style="text-align:right;">\r\n{amount}\r\n</td>\r\n<td
align="right"
style="text-align:right;">\r\n{discount}\r\n</td>\r\n<td
align="right"
style="text-align:right;">\r\n{item_total}\r\n</td>\r\n</tr>',
'<tr>\r\n<td colspan="2"></td>\r\n<td
colspan="2">{name}</td>\r\n<td
align="right"
style="text-align:right;">{value}</td>\r\n</tr>',
'<tr><td>\r\n{payment_datetime}\r\n</td>\r\n<td
>\r\n{description}\r\n</td>\r\n<td align="right"
style="text-align:right;">\r\n{amount}\r\n</td>\r\n</tr>',
'<tr><td>\r\n{duedate}\r\n</td>\r\n<td
>\r\n{description}\r\n</td>\r\n<td >\r\n<a
href="{payment_link}">Pay
now</a>\r\n</td>\r\n<td align="right"
style="text-align:right;">\r\n{amount}\r\n</td>\r\n</tr>'),
( 'Default (without payments)', '<table
width="690" style="width:690px; font-family:Helvetica;"
 >\r\n  <tr>\r\n    <td valign="top"
style="vertical-align:top;"><img
src="http://www.joomlafinances.com/components/com_invoices/assets/images/logo.png"
/><br />\r\n      <br />\r\n     
<strong>{from_name}</strong> <br />\r\n     
{from_address} <br />\r\n      <br />\r\n      E-mail:
{from_email} <br />\r\n      Phone: {from_phone} <br />\r\n    
 Fiscal number: {from_num} </td>\r\n    <td valign="top"
style="vertical-align:top;" width="200"><div
style="background:#000; color:#FFF; padding:2px;">INVOICE
INFO</div>\r\n      <div style="border:1px solid #000;
padding:2px; border-top:none;">\r\n        <table>\r\n       
  <tr>\r\n            <td>Date: </td>\r\n           
<td>{invoice_date}</td>\r\n          </tr>\r\n         
<tr>\r\n            <td>Invoice number: </td>\r\n        
   <td>{invoice_num}</td>\r\n          </tr>\r\n       
</table>\r\n      </div>\r\n      <br />\r\n      <div
style="background:#000; color:#FFF; padding:2px;">BILL
TO</div>\r\n      <div style="border:1px solid #000;
padding:2px; border-top:none;">
<strong>{to_name}</strong> <br />\r\n        {to_company}
<br />\r\n        {to_address} <br />\r\n        {to_zipcode}
{to_city} <br />\r\n        {to_state} {to_country} <br />\r\n 
      <br />\r\n        VAT ID: {to_vatid}<br />\r\n       
E-mail: {to_email} <br />\r\n      </div></td>\r\n 
</tr>\r\n  <tr>\r\n    <td colspan="2"><br
/></td>\r\n  </tr>\r\n  <tr>\r\n    <td
colspan="2"><div style="background:#000; color:#FFF;
padding:2px;">ITEMS</div>\r\n      <div
style="border:1px solid #000; padding:2px;
border-top:none;">\r\n        <table width="100%" 
>\r\n          <tr>\r\n            <th
align="left">Description</th>\r\n            <th
align="right" style="text-align:right;">Unit
cost</th>\r\n            <th align="right"
style="text-align:right;">Quantity</th>\r\n           
<th align="right"
style="text-align:right;">Discount</th>\r\n           
<th align="right"
style="text-align:right;">Price</th>\r\n         
</tr>\r\n          <tr >\r\n            <th
colspan="5"><hr /></th>\r\n         
</tr>\r\n          {items}\r\n          <tr >\r\n           
<td colspan="5"><hr /></td>\r\n         
</tr>\r\n          <tfoot>\r\n            <tr>\r\n       
      <td colspan="2"></td>\r\n              <td
colspan="2">Discount</td>\r\n              <td
align="right"
style="text-align:right;">{discount}</td>\r\n           
</tr>\r\n            <tr>\r\n              <td
colspan="2"></td>\r\n              <td
colspan="2">Subtotal</td>\r\n              <td
align="right"
style="text-align:right;">{subtotal}</td>\r\n           
</tr>\r\n          {taxes}\r\n          <tr >\r\n           
<td colspan="2"></td>\r\n            <td
colspan="3"><hr /></td>\r\n         
</tr>\r\n          <tr>\r\n            <td
colspan="2"></td>\r\n            <td
colspan="2"><strong>Total</strong></td>\r\n 
          <td align="right"
style="text-align:right;"><strong>{total}</strong></td>\r\n
         </tr>\r\n          </tfoot>\r\n          \r\n       
</table>\r\n      </div></td>\r\n  </tr>\r\n  \r\n 
<tr>\r\n    <td colspan="2"><br
/></td>\r\n  </tr>\r\n  <tr>\r\n    <td
colspan="2"><div
style="padding:2px;">Notes</div>\r\n      <div
style="border-top:1px solid #000; padding:2px;
">{notes}</div></td>\r\n 
</tr>\r\n</table>',
'<tr><td>\r\n<strong>{name}</strong><br
/>{desc}\r\n</td>\r\n<td align="right"
style="text-align:right;">\r\n{value}\r\n</td>\r\n<td
align="right"
style="text-align:right;">\r\n{amount}\r\n</td>\r\n<td
align="right"
style="text-align:right;">\r\n{discount}\r\n</td>\r\n<td
align="right"
style="text-align:right;">\r\n{item_total}\r\n</td>\r\n</tr>',
'<tr>\r\n<td colspan="2"></td>\r\n<td
colspan="2">{name}</td>\r\n<td
align="right"
style="text-align:right;">{value}</td>\r\n</tr>',
'', '');
updates/1.2.1.sql000064400000000142151163543300007367 0ustar00ALTER TABLE 
`#__invoices_templates` ADD `styles` text NOT NULL, ADD `content_pdf` text
NOT NULL ;updates/1.3.0.sql000064400000111245151163543320007400
0ustar00ALTER TABLE  `#__invoices_invoices` ADD  `to_phone` VARCHAR( 255 )
NOT NULL , ADD  `external_type` VARCHAR( 255 ) NOT NULL , ADD 
`external_id` INT( 11 ) NOT NULL , ADD  `type` INT( 3 ) NOT NULL DEFAULT 
'1', ADD  `rec_email` TINYINT( 1 ) NOT NULL , ADD  `auth_code`
VARCHAR( 255 ) NOT NULL, ADD  `computed_status` VARCHAR( 255 ) NOT NULL,
ADD  `computed_total` DECIMAL( 10, 2 ) NOT NULL;

ALTER TABLE `#__invoices_items` ADD  `tax` DECIMAL( 10, 2 ) NOT NULL, ADD 
`sku` VARCHAR( 255 ) NOT NULL, ADD  `external_type` VARCHAR( 255 ) NOT NULL
, ADD  `product_id` INT( 11 ) NOT NULL;

ALTER TABLE `#__invoices_contacts` ADD  `phone` VARCHAR( 255 ) NOT NULL;

ALTER TABLE  `#__invoices_templateitems` ADD  `tax` DECIMAL( 10, 2 ) NOT
NULL , ADD  `sku` VARCHAR( 255 ) NOT NULL;

INSERT INTO `#__invoices_templates` (`id`, `name`, `content`, `items`,
`taxes`, `payments`, `payments2`, `styles`, `content_pdf`) VALUES
(NULL, 'Invoice (Bootstrap)', '<div
style="font-family:Helvetica;"  >\r\n  <div
class="row-fluid">\r\n    <div class="span6">
<img src="http://www.joomlathat.com/images/joomlathat3.png"
/><br />\r\n      <br />\r\n      <dl
class="dl-horizontal">\r\n       
<dt>From</dt>\r\n        <dd>
<strong>{from_name}</strong> </dd>\r\n       
<dt>Address</dt>\r\n        <dd>\r\n         
<address>\r\n          {from_address}\r\n         
</address>\r\n        </dd>\r\n       
<dt>e-mail</dt>\r\n        <dd> {from_email}
</dd>\r\n        <dt>Fiscal number</dt>\r\n       
<dd> {from_num} </dd>\r\n      </dl>\r\n   
</div>\r\n    <div class="span6">\r\n      <div
class="well well-small">\r\n        <dl
class="dl-horizontal">\r\n          <dt>Invoice
number</dt>\r\n          <dd>{invoice_num}</dd>\r\n      
   <dt>Invoice date</dt>\r\n         
<dd>{invoice_date}</dd>\r\n          <dt>Due
date</dt>\r\n          <dd>{invoice_duedate}</dd>\r\n    
     <dt>Invoice total</dt>\r\n         
<dd>{total}</dd>\r\n          <dt>Status</dt>\r\n  
       <dd>{status}</dd>\r\n        </dl>\r\n     
</div>\r\n      <div class="well well-small">\r\n    
   <dl class="dl-horizontal">\r\n          <dt>Bill
to</dt>\r\n          <dd>
<strong>{to_name}</strong> </dd>\r\n         
<dt>Address</dt>\r\n          <dd>\r\n           
<address>\r\n            {to_company} <br />\r\n           
{to_address} <br />\r\n            {to_zipcode} {to_city} <br
/>\r\n            {to_state} {to_country}\r\n           
</address>\r\n          </dd>\r\n         
<dt>e-mail</dt>\r\n         
<dd>{to_email}</dd>\r\n          <dt>VAT
ID</dt>\r\n          <dd>{to_vatid}</dd>\r\n         
<dt>Phone</dt>\r\n          <dd>{to_phone}</dd>\r\n
       </dl>\r\n      </div>\r\n    </div>\r\n 
</div>\r\n  <h2
class="invoice_header">Items</h2>\r\n  <table
width="100%" class="table table-striped"   >\r\n   
<thead>\r\n      <tr>\r\n        <th
align="left">SKU</th>\r\n        <th
align="left">Description</th>\r\n        <th
align="right" style="text-align:right;">Unit
cost</th>\r\n        <th align="right"
style="text-align:right;">Quantity</th>\r\n       
<th align="right"
style="text-align:right;">Discount</th>\r\n       
<th align="right"
style="text-align:right;">Tax</th>\r\n        <th
align="right"
style="text-align:right;">Price</th>\r\n     
</tr>\r\n    </thead>\r\n    <tbody>\r\n    \r\n   
{items}\r\n    </tbody>\r\n    \r\n    <tfoot>\r\n     
<tr>\r\n        <td colspan="4"></td>\r\n      
 <td colspan="2" align="right"
style="text-align:right;">Discount</td>\r\n       
<td align="right"
style="text-align:right;">{discount}</td>\r\n     
</tr>\r\n      <tr>\r\n        <td
colspan="4"></td>\r\n        <td
colspan="2" align="right"
style="text-align:right;">Subtotal</td>\r\n       
<td align="right"
style="text-align:right;">{subtotal}</td>\r\n     
</tr>\r\n    {taxes}\r\n    <tr>\r\n      <td
colspan="4"></td>\r\n      <td colspan="2"
align="right"
style="text-align:right;"><strong>Total</strong></td>\r\n
     <td align="right"
style="text-align:right;"><strong>{total}</strong></td>\r\n
   </tr>\r\n    </tfoot>\r\n    \r\n  </table>\r\n 
<ul class="nav nav-tabs">\r\n    <li><a
href="#payments_received" data-toggle="tab">Payments
received {num_payments_received}</a></li>\r\n    <li
class="active"><a href="#pending_payments"
data-toggle="tab">Pending payments
{num_pending_payments}</a></li>\r\n  </ul>\r\n  <div
class="tab-content">\r\n    <div class="tab-pane
" id="payments_received">\r\n      <table
width="100%" class="table table-striped "
style="table-layout:fixed;" >\r\n        <thead>\r\n    
     <tr>\r\n            <th align="left">Payment
date</th>\r\n            <th
align="left">Description</th>\r\n            <th
align="left">Status</th>\r\n            <th
align="left"></th>\r\n            <th
align="right"
style="text-align:right;">Amount</th>\r\n         
</tr>\r\n        </thead>\r\n        <tbody>\r\n       
\r\n        {payments}\r\n        </tbody>\r\n        \r\n       
<tfoot>\r\n          <tr>\r\n            <td
></td>\r\n            <td ></td>\r\n            <td
></td>\r\n            <td align="right"
style="text-align:right;"><strong>Total amount
paid</strong></td>\r\n            <td
align="right"
style="text-align:right;"><strong>{total_payments}</strong></td>\r\n
         </tr>\r\n        </tfoot>\r\n      </table>\r\n 
  </div>\r\n    <div class="tab-pane active"
id="pending_payments">\r\n      <table
width="100%" class="table table-striped table-hover"
style="table-layout:fixed;">\r\n        <thead>\r\n     
    <tr>\r\n            <th align="left">Due
date</th>\r\n            <th
align="left">Description</th>\r\n            <th
align="left">Status</th>\r\n            <th
align="left"></th>\r\n            <th
align="right"
style="text-align:right;">Amount</th>\r\n         
</tr>\r\n        </thead>\r\n        <tbody>\r\n       
\r\n        {payments2}\r\n        </tbody>\r\n        \r\n       
<tfoot>\r\n          <tr>\r\n            <td
></td>\r\n            <td ></td>\r\n            <td
></td>\r\n            <td align="right"
style="text-align:right;"><strong>Amount
outstanding</strong></td>\r\n            <td
align="right"
style="text-align:right;"><strong>{amount_outstanding}</strong></td>\r\n
         </tr>\r\n        </tfoot>\r\n      </table>\r\n 
  </div>\r\n  </div>\r\n  \r\n  <!--h2
class="invoice_header">Payments received</h2--> \r\n 
\r\n  <!--h2 class="invoice_header">Pending
payments</h2-->\r\n  \r\n  <div
style="padding:2px;">Notes</div>\r\n  <div
style="border-top:1px solid #000; padding:2px; "
class="muted"><small>{notes}</small></div>\r\n</div>',
'<tr>\r\n<td>{sku}</td>\r\n<td><strong>{name}</strong><br
/>{desc}</td>\r\n<td align="right"
style="text-align:right;">{value}</td>\r\n<td
align="right"
style="text-align:right;">{amount}</td>\r\n<td
align="right"
style="text-align:right;">{discount}</td>\r\n<td
align="right"
style="text-align:right;">{tax}</td>\r\n<td
align="right"
style="text-align:right;">{item_total}</td>\r\n</tr>',
'<tr>\r\n<td colspan="4"></td>\r\n<td
colspan="2" align="right"
style="text-align:right;">{name}</td>\r\n<td
align="right"
style="text-align:right;">{value}</td>\r\n</tr>',
'<tr><td>\r\n{payment_datetime}\r\n</td>\r\n<td
>\r\n{description}\r\n</td>\r\n<td
>\r\n{payment_status}\r\n</td>\r\n<td align="right"
style="text-align:right;">\r\n<a
href="{payment_link}" class="btn btn-mini"><i
class="icon-eye-open"></i> View
details</a>\r\n</td>\r\n<td align="right"
style="text-align:right;">\r\n{amount}\r\n</td>\r\n</tr>',
'<tr><td>\r\n{duedate}\r\n</td>\r\n<td
>\r\n{description}\r\n</td>\r\n<td
>\r\n{payment_status}\r\n</td>\r\n<td align="right"
style="text-align:right;">\r\n<a
href="{payment_link}" target="_parent" class="btn
btn-info btn-mini"><i class="icon-arrow-right
icon-white"></i> Pay now</a>\r\n</td>\r\n<td
align="right"
style="text-align:right;">\r\n{amount}\r\n</td>\r\n</tr>',
'.clearfix{*zoom:1;}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0;}\r\n.clearfix:after{clear:both;}\r\n.hide-text{font:0/0
a;color:transparent;text-shadow:none;background-color:transparent;border:0;}\r\n\r\ndl{margin-bottom:20px;}\r\ndt,dd{line-height:20px;}\r\ndt{font-weight:bold;}\r\ndd{margin-left:10px;}\r\n.dl-horizontal{*zoom:1;}.dl-horizontal:before,.dl-horizontal:after{display:table;content:"";line-height:0;}\r\n.dl-horizontal:after{clear:both;}\r\n.dl-horizontal
dt{float:left;width:120px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}\r\n.dl-horizontal
dd{margin-left:140px;}\r\nhr{margin:20px 0;border:0;border-top:1px solid
#eeeeee;border-bottom:1px solid
#ffffff;}\r\nabbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px
dotted
#999999;}\r\nabbr.initialism{font-size:90%;text-transform:uppercase;}\r\n\r\nq:before,q:after,blockquote:before,blockquote:after{content:"";}\r\naddress{display:block;margin-bottom:20px;font-style:normal;line-height:20px;}\r\n\r\ntable{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}\r\n.table{width:100%;margin-bottom:20px;}.table
th,.table
td{padding:8px;line-height:20px;text-align:left;vertical-align:top;border-top:1px
solid #dddddd;}\r\n.table th{font-weight:bold;}\r\n.table thead
th{vertical-align:bottom;}\r\n.table caption+thead tr:first-child th,.table
caption+thead tr:first-child td,.table colgroup+thead tr:first-child
th,.table colgroup+thead tr:first-child td,.table thead:first-child
tr:first-child th,.table thead:first-child tr:first-child
td{border-top:0;}\r\n.table tbody+tbody{border-top:2px solid
#dddddd;}\r\n.table .table{background-color:#ffffff;}\r\n.table-condensed
th,.table-condensed td{padding:4px 5px;}\r\n.table-bordered{border:1px
solid
#dddddd;border-collapse:separate;*border-collapse:collapse;border-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}.table-bordered
th,.table-bordered td{border-left:1px solid #dddddd;}\r\n.table-bordered
caption+thead tr:first-child th,.table-bordered caption+tbody
tr:first-child th,.table-bordered caption+tbody tr:first-child
td,.table-bordered colgroup+thead tr:first-child th,.table-bordered
colgroup+tbody tr:first-child th,.table-bordered colgroup+tbody
tr:first-child td,.table-bordered thead:first-child tr:first-child
th,.table-bordered tbody:first-child tr:first-child th,.table-bordered
tbody:first-child tr:first-child td{border-top:0;}\r\n.table-bordered
thead:first-child tr:first-child>th:first-child,.table-bordered
tbody:first-child tr:first-child>td:first-child,.table-bordered
tbody:first-child
tr:first-child>th:first-child{-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;}\r\n.table-bordered
thead:first-child tr:first-child>th:last-child,.table-bordered
tbody:first-child tr:first-child>td:last-child,.table-bordered
tbody:first-child
tr:first-child>th:last-child{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;}\r\n.table-bordered
thead:last-child tr:last-child>th:first-child,.table-bordered
tbody:last-child tr:last-child>td:first-child,.table-bordered
tbody:last-child tr:last-child>th:first-child,.table-bordered
tfoot:last-child tr:last-child>td:first-child,.table-bordered
tfoot:last-child
tr:last-child>th:first-child{-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px;}\r\n.table-bordered
thead:last-child tr:last-child>th:last-child,.table-bordered
tbody:last-child tr:last-child>td:last-child,.table-bordered
tbody:last-child tr:last-child>th:last-child,.table-bordered
tfoot:last-child tr:last-child>td:last-child,.table-bordered
tfoot:last-child
tr:last-child>th:last-child{-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px;}\r\n.table-bordered
tfoot+tbody:last-child tr:last-child
td:first-child{-webkit-border-bottom-left-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;}\r\n.table-bordered
tfoot+tbody:last-child tr:last-child
td:last-child{-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;}\r\n.table-bordered
caption+thead tr:first-child th:first-child,.table-bordered caption+tbody
tr:first-child td:first-child,.table-bordered colgroup+thead tr:first-child
th:first-child,.table-bordered colgroup+tbody tr:first-child
td:first-child{-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;}\r\n.table-bordered
caption+thead tr:first-child th:last-child,.table-bordered caption+tbody
tr:first-child td:last-child,.table-bordered colgroup+thead tr:first-child
th:last-child,.table-bordered colgroup+tbody tr:first-child
td:last-child{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;}\r\n.table-striped
tbody>tr:nth-child(odd)>td,.table-striped
tbody>tr:nth-child(odd)>th{background-color:#f9f9f9;}\r\n.table-hover
tbody tr:hover>td,.table-hover tbody
tr:hover>th{background-color:#f5f5f5;}\r\ntable
td[class*="span"],table th[class*="span"],.row-fluid
table td[class*="span"],.row-fluid table
th[class*="span"]{display:table-cell;float:none;margin-left:0;}\r\n.table
td.span1,.table th.span1{float:none;width:44px;margin-left:0;}\r\n.table
td.span2,.table th.span2{float:none;width:124px;margin-left:0;}\r\n.table
td.span3,.table th.span3{float:none;width:204px;margin-left:0;}\r\n.table
td.span4,.table th.span4{float:none;width:284px;margin-left:0;}\r\n.table
td.span5,.table th.span5{float:none;width:364px;margin-left:0;}\r\n.table
td.span6,.table th.span6{float:none;width:444px;margin-left:0;}\r\n.table
td.span7,.table th.span7{float:none;width:524px;margin-left:0;}\r\n.table
td.span8,.table th.span8{float:none;width:604px;margin-left:0;}\r\n.table
td.span9,.table th.span9{float:none;width:684px;margin-left:0;}\r\n.table
td.span10,.table th.span10{float:none;width:764px;margin-left:0;}\r\n.table
td.span11,.table th.span11{float:none;width:844px;margin-left:0;}\r\n.table
td.span12,.table th.span12{float:none;width:924px;margin-left:0;}\r\n.table
tbody tr.success>td{background-color:#dff0d8;}\r\n.table tbody
tr.error>td{background-color:#f2dede;}\r\n.table tbody
tr.warning>td{background-color:#fcf8e3;}\r\n.table tbody
tr.info>td{background-color:#d9edf7;}\r\n.table-hover tbody
tr.success:hover>td{background-color:#d0e9c6;}\r\n.table-hover tbody
tr.error:hover>td{background-color:#ebcccc;}\r\n.table-hover tbody
tr.warning:hover>td{background-color:#faf2cc;}\r\n.table-hover tbody
tr.info:hover>td{background-color:#c4e3f3;}\r\n\r\n.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px
solid
#e3e3e3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset
0 1px 1px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0,
0.05);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);}.well
blockquote{border-color:#ddd;border-color:rgba(0, 0, 0,
0.15);}\r\n.well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;}\r\n.well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}\r\n\r\ntable.dl-table
td{line-height:20px;}\r\ntd.invoice_label{text-align:right;font-weight:bold;\r\nwidth:120px;
padding-right:20px;line-height:20px;}', '<div
style="font-family:Helvetica; font-size:12px;"  >\r\n 
<table width="100%">\r\n    <tr>\r\n      <td
width="50%"  valign="top"><img
src="http://www.joomlathat.com/images/joomlathat3.png"
/><br />\r\n        <br />\r\n        <table
class="dl-table">\r\n          <tr>\r\n           
<td class="invoice_label"
valign="top">From</td>\r\n            <td
valign="top"><strong>{from_name}</strong></td>\r\n
         </tr>\r\n          <tr>\r\n            <td
class="invoice_label"
valign="top">Address</td>\r\n            <td
valign="top"><address>\r\n             
{from_address}\r\n              </address></td>\r\n         
</tr>\r\n          <tr>\r\n            <td
class="invoice_label"
valign="top">e-mail</td>\r\n            <td
valign="top">{from_email}</td>\r\n         
</tr>\r\n          <tr>\r\n            <td
class="invoice_label" valign="top">Fiscal
number</td>\r\n            <td
valign="top">{from_num}</td>\r\n         
</tr>\r\n        </table></td>\r\n      <td
width="50%"  valign="top"><div class="well
well-small">\r\n          <table
class="dl-table">\r\n            <tr>\r\n             
<td class="invoice_label" valign="top">Invoice
number</td>\r\n              <td
valign="top">{invoice_num}</td>\r\n           
</tr>\r\n            <tr>\r\n              <td
class="invoice_label" valign="top">Invoice
date</td>\r\n              <td
valign="top">{invoice_date}</td>\r\n           
</tr>\r\n            <tr>\r\n              <td
class="invoice_label" valign="top">Due
date</td>\r\n              <td
valign="top">{invoice_duedate}</td>\r\n           
</tr>\r\n            <tr>\r\n              <td
class="invoice_label" valign="top">Invoice
total</td>\r\n              <td
valign="top">{total}</td>\r\n            </tr>\r\n
           <tr>\r\n              <td
class="invoice_label"
valign="top">Status</td>\r\n              <td
valign="top">{status}</td>\r\n           
</tr>\r\n          </table>\r\n        </div>\r\n       
<div class="well well-small">\r\n          <table
class="dl-table">\r\n            <tr>\r\n             
<td class="invoice_label" valign="top">Bill
to</td>\r\n              <td
valign="top"><strong>{to_name}</strong></td>\r\n
           </tr>\r\n            <tr>\r\n              <td
class="invoice_label"
valign="top">Address</td>\r\n              <td
valign="top"><address>\r\n                {to_company}
<br />\r\n                {to_address} <br />\r\n              
 {to_zipcode} {to_city} <br />\r\n                {to_state}
{to_country}\r\n                </address></td>\r\n           
</tr>\r\n            <tr>\r\n              <td
class="invoice_label"
valign="top">e-mail</td>\r\n              <td
valign="top">{to_email}</td>\r\n           
</tr>\r\n            <tr>\r\n              <td
class="invoice_label" valign="top">VAT
ID</td>\r\n              <td
valign="top">{to_vatid}</td>\r\n           
</tr>\r\n            <tr>\r\n              <td
class="invoice_label"
valign="top">Phone</td>\r\n              <td
valign="top">{to_phone}</td>\r\n           
</tr>\r\n          </table>\r\n       
</div></td>\r\n    </tr>\r\n  </table>\r\n  <h2
class="invoice_header">Items</h2>\r\n  <table
width="100%" class="table table-striped"   >\r\n   
<thead>\r\n      <tr>\r\n        <th
align="left">SKU</th>\r\n        <th
align="left">Description</th>\r\n        <th
align="right" style="text-align:right;">Unit
cost</th>\r\n        <th align="right"
style="text-align:right;">Quantity</th>\r\n       
<th align="right"
style="text-align:right;">Discount</th>\r\n       
<th align="right"
style="text-align:right;">Tax</th>\r\n        <th
align="right"
style="text-align:right;">Price</th>\r\n     
</tr>\r\n    </thead>\r\n    <tbody>\r\n    \r\n   
{items}\r\n    </tbody>\r\n    \r\n    <tfoot>\r\n     
<tr>\r\n        <td colspan="4"></td>\r\n      
 <td colspan="2" align="right"
style="text-align:right;">Discount</td>\r\n       
<td align="right"
style="text-align:right;">{discount}</td>\r\n     
</tr>\r\n      <tr>\r\n        <td
colspan="4"></td>\r\n        <td
colspan="2" align="right"
style="text-align:right;">Subtotal</td>\r\n       
<td align="right"
style="text-align:right;">{subtotal}</td>\r\n     
</tr>\r\n    {taxes}\r\n    <tr>\r\n      <td
colspan="4"></td>\r\n      <td colspan="2"
align="right"
style="text-align:right;"><strong>Total</strong></td>\r\n
     <td align="right"
style="text-align:right;"><strong>{total}</strong></td>\r\n
   </tr>\r\n    </tfoot>\r\n    \r\n  </table>\r\n 
<h2 class="invoice_header">Payments received</h2>\r\n
 <table width="100%" class="table table-striped "
style="table-layout:fixed;" >\r\n    <thead>\r\n     
<tr>\r\n        <th align="left">Payment
date</th>\r\n        <th
align="left">Description</th>\r\n        <th
align="left">Status</th>\r\n        <th
align="left"></th>\r\n        <th
align="right"
style="text-align:right;">Amount</th>\r\n     
</tr>\r\n    </thead>\r\n    <tbody>\r\n    \r\n   
{payments}\r\n    </tbody>\r\n    \r\n    <tfoot>\r\n     
<tr>\r\n        <td ></td>\r\n        <td
></td>\r\n        <td ></td>\r\n        <td
align="right"
style="text-align:right;"><strong>Total amount
paid</strong></td>\r\n        <td align="right"
style="text-align:right;"><strong>{total_payments}</strong></td>\r\n
     </tr>\r\n    </tfoot>\r\n  </table>\r\n  <h2
class="invoice_header">Pending payments</h2>\r\n 
<table width="100%" class="table table-striped
table-hover" style="table-layout:fixed;">\r\n   
<thead>\r\n      <tr>\r\n        <th
align="left">Due date</th>\r\n        <th
align="left">Description</th>\r\n        <th
align="left">Status</th>\r\n        <th
align="left"></th>\r\n        <th
align="right"
style="text-align:right;">Amount</th>\r\n     
</tr>\r\n    </thead>\r\n    <tbody>\r\n    \r\n   
{payments2}\r\n    </tbody>\r\n    \r\n    <tfoot>\r\n     
<tr>\r\n        <td ></td>\r\n        <td
></td>\r\n        <td ></td>\r\n        <td
align="right"
style="text-align:right;"><strong>Amount
outstanding</strong></td>\r\n        <td
align="right"
style="text-align:right;"><strong>{amount_outstanding}</strong></td>\r\n
     </tr>\r\n    </tfoot>\r\n  </table>\r\n  <div
style="padding:2px;">Notes</div>\r\n  <div
style="border-top:1px solid #000; padding:2px; "
class="muted"><small>{notes}</small></div>\r\n</div>'),
(NULL, 'Quote (Bootstrap)', '<div
style="font-family:Helvetica;"  >\r\n  <div
class="row-fluid">\r\n    <div class="span6">
<img src="http://www.joomlathat.com/images/joomlathat3.png"
/><br />\r\n      <br />\r\n      <dl
class="dl-horizontal">\r\n       
<dt>From</dt>\r\n        <dd>
<strong>{from_name}</strong> </dd>\r\n       
<dt>Address</dt>\r\n        <dd>\r\n         
<address>\r\n          {from_address}\r\n         
</address>\r\n        </dd>\r\n       
<dt>e-mail</dt>\r\n        <dd> {from_email}
</dd>\r\n        <dt>Fiscal number</dt>\r\n       
<dd> {from_num} </dd>\r\n      </dl>\r\n   
</div>\r\n    <div class="span6">\r\n      <div
class="well well-small">\r\n        <dl
class="dl-horizontal">\r\n          <dt>Quote
number</dt>\r\n          <dd>{invoice_num}</dd>\r\n      
   <dt>Quote date</dt>\r\n         
<dd>{invoice_date}</dd>\r\n          <dt>Due
date</dt>\r\n          <dd>{invoice_duedate}</dd>\r\n    
     <dt>Quote total</dt>\r\n         
<dd>{total}</dd>\r\n          <dt>Status</dt>\r\n  
       <dd>{status}</dd>\r\n        </dl>\r\n     
</div>\r\n      <div class="well well-small">\r\n    
   <dl class="dl-horizontal">\r\n          <dt>Bill
to</dt>\r\n          <dd>
<strong>{to_name}</strong> </dd>\r\n         
<dt>Address</dt>\r\n          <dd>\r\n           
<address>\r\n            {to_company} <br />\r\n           
{to_address} <br />\r\n            {to_zipcode} {to_city} <br
/>\r\n            {to_state} {to_country}\r\n           
</address>\r\n          </dd>\r\n         
<dt>e-mail</dt>\r\n         
<dd>{to_email}</dd>\r\n          <dt>VAT
ID</dt>\r\n          <dd>{to_vatid}</dd>\r\n         
<dt>Phone</dt>\r\n          <dd>{to_phone}</dd>\r\n
       </dl>\r\n      </div>\r\n    </div>\r\n 
</div>\r\n  <h2
class="invoice_header">Items</h2>\r\n  <table
width="100%" class="table table-striped"   >\r\n   
<thead>\r\n      <tr>\r\n        <th
align="left">SKU</th>\r\n        <th
align="left">Description</th>\r\n        <th
align="right" style="text-align:right;">Unit
cost</th>\r\n        <th align="right"
style="text-align:right;">Quantity</th>\r\n       
<th align="right"
style="text-align:right;">Discount</th>\r\n       
<th align="right"
style="text-align:right;">Tax</th>\r\n        <th
align="right"
style="text-align:right;">Price</th>\r\n     
</tr>\r\n    </thead>\r\n    <tbody>\r\n    \r\n   
{items}\r\n    </tbody>\r\n    \r\n    <tfoot>\r\n     
<tr>\r\n        <td colspan="4"></td>\r\n      
 <td colspan="2" align="right"
style="text-align:right;">Discount</td>\r\n       
<td align="right"
style="text-align:right;">{discount}</td>\r\n     
</tr>\r\n      <tr>\r\n        <td
colspan="4"></td>\r\n        <td
colspan="2" align="right"
style="text-align:right;">Subtotal</td>\r\n       
<td align="right"
style="text-align:right;">{subtotal}</td>\r\n     
</tr>\r\n    {taxes}\r\n    <tr>\r\n      <td
colspan="4"></td>\r\n      <td colspan="2"
align="right"
style="text-align:right;"><strong>Total</strong></td>\r\n
     <td align="right"
style="text-align:right;"><strong>{total}</strong></td>\r\n
   </tr>\r\n    </tfoot>\r\n    \r\n  </table>\r\n  \r\n 
<div style="padding:2px;">Notes</div>\r\n  <div
style="border-top:1px solid #000; padding:2px; "
class="muted"><small>{notes}</small></div>\r\n</div>',
'<tr>\r\n<td>{sku}</td>\r\n<td><strong>{name}</strong><br
/>{desc}</td>\r\n<td align="right"
style="text-align:right;">{value}</td>\r\n<td
align="right"
style="text-align:right;">{amount}</td>\r\n<td
align="right"
style="text-align:right;">{discount}</td>\r\n<td
align="right"
style="text-align:right;">{tax}</td>\r\n<td
align="right"
style="text-align:right;">{item_total}</td>\r\n</tr>',
'<tr>\r\n<td colspan="4"></td>\r\n<td
colspan="2" align="right"
style="text-align:right;">{name}</td>\r\n<td
align="right"
style="text-align:right;">{value}</td>\r\n</tr>',
'', '',
'.clearfix{*zoom:1;}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0;}\r\n.clearfix:after{clear:both;}\r\n.hide-text{font:0/0
a;color:transparent;text-shadow:none;background-color:transparent;border:0;}\r\n\r\ndl{margin-bottom:20px;}\r\ndt,dd{line-height:20px;}\r\ndt{font-weight:bold;}\r\ndd{margin-left:10px;}\r\n.dl-horizontal{*zoom:1;}.dl-horizontal:before,.dl-horizontal:after{display:table;content:"";line-height:0;}\r\n.dl-horizontal:after{clear:both;}\r\n.dl-horizontal
dt{float:left;width:120px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}\r\n.dl-horizontal
dd{margin-left:140px;}\r\nhr{margin:20px 0;border:0;border-top:1px solid
#eeeeee;border-bottom:1px solid
#ffffff;}\r\nabbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px
dotted
#999999;}\r\nabbr.initialism{font-size:90%;text-transform:uppercase;}\r\n\r\nq:before,q:after,blockquote:before,blockquote:after{content:"";}\r\naddress{display:block;margin-bottom:20px;font-style:normal;line-height:20px;}\r\n\r\ntable{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}\r\n.table{width:100%;margin-bottom:20px;}.table
th,.table
td{padding:8px;line-height:20px;text-align:left;vertical-align:top;border-top:1px
solid #dddddd;}\r\n.table th{font-weight:bold;}\r\n.table thead
th{vertical-align:bottom;}\r\n.table caption+thead tr:first-child th,.table
caption+thead tr:first-child td,.table colgroup+thead tr:first-child
th,.table colgroup+thead tr:first-child td,.table thead:first-child
tr:first-child th,.table thead:first-child tr:first-child
td{border-top:0;}\r\n.table tbody+tbody{border-top:2px solid
#dddddd;}\r\n.table .table{background-color:#ffffff;}\r\n.table-condensed
th,.table-condensed td{padding:4px 5px;}\r\n.table-bordered{border:1px
solid
#dddddd;border-collapse:separate;*border-collapse:collapse;border-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}.table-bordered
th,.table-bordered td{border-left:1px solid #dddddd;}\r\n.table-bordered
caption+thead tr:first-child th,.table-bordered caption+tbody
tr:first-child th,.table-bordered caption+tbody tr:first-child
td,.table-bordered colgroup+thead tr:first-child th,.table-bordered
colgroup+tbody tr:first-child th,.table-bordered colgroup+tbody
tr:first-child td,.table-bordered thead:first-child tr:first-child
th,.table-bordered tbody:first-child tr:first-child th,.table-bordered
tbody:first-child tr:first-child td{border-top:0;}\r\n.table-bordered
thead:first-child tr:first-child>th:first-child,.table-bordered
tbody:first-child tr:first-child>td:first-child,.table-bordered
tbody:first-child
tr:first-child>th:first-child{-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;}\r\n.table-bordered
thead:first-child tr:first-child>th:last-child,.table-bordered
tbody:first-child tr:first-child>td:last-child,.table-bordered
tbody:first-child
tr:first-child>th:last-child{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;}\r\n.table-bordered
thead:last-child tr:last-child>th:first-child,.table-bordered
tbody:last-child tr:last-child>td:first-child,.table-bordered
tbody:last-child tr:last-child>th:first-child,.table-bordered
tfoot:last-child tr:last-child>td:first-child,.table-bordered
tfoot:last-child
tr:last-child>th:first-child{-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px;}\r\n.table-bordered
thead:last-child tr:last-child>th:last-child,.table-bordered
tbody:last-child tr:last-child>td:last-child,.table-bordered
tbody:last-child tr:last-child>th:last-child,.table-bordered
tfoot:last-child tr:last-child>td:last-child,.table-bordered
tfoot:last-child
tr:last-child>th:last-child{-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px;}\r\n.table-bordered
tfoot+tbody:last-child tr:last-child
td:first-child{-webkit-border-bottom-left-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;}\r\n.table-bordered
tfoot+tbody:last-child tr:last-child
td:last-child{-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;}\r\n.table-bordered
caption+thead tr:first-child th:first-child,.table-bordered caption+tbody
tr:first-child td:first-child,.table-bordered colgroup+thead tr:first-child
th:first-child,.table-bordered colgroup+tbody tr:first-child
td:first-child{-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;}\r\n.table-bordered
caption+thead tr:first-child th:last-child,.table-bordered caption+tbody
tr:first-child td:last-child,.table-bordered colgroup+thead tr:first-child
th:last-child,.table-bordered colgroup+tbody tr:first-child
td:last-child{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;}\r\n.table-striped
tbody>tr:nth-child(odd)>td,.table-striped
tbody>tr:nth-child(odd)>th{background-color:#f9f9f9;}\r\n.table-hover
tbody tr:hover>td,.table-hover tbody
tr:hover>th{background-color:#f5f5f5;}\r\ntable
td[class*="span"],table th[class*="span"],.row-fluid
table td[class*="span"],.row-fluid table
th[class*="span"]{display:table-cell;float:none;margin-left:0;}\r\n.table
td.span1,.table th.span1{float:none;width:44px;margin-left:0;}\r\n.table
td.span2,.table th.span2{float:none;width:124px;margin-left:0;}\r\n.table
td.span3,.table th.span3{float:none;width:204px;margin-left:0;}\r\n.table
td.span4,.table th.span4{float:none;width:284px;margin-left:0;}\r\n.table
td.span5,.table th.span5{float:none;width:364px;margin-left:0;}\r\n.table
td.span6,.table th.span6{float:none;width:444px;margin-left:0;}\r\n.table
td.span7,.table th.span7{float:none;width:524px;margin-left:0;}\r\n.table
td.span8,.table th.span8{float:none;width:604px;margin-left:0;}\r\n.table
td.span9,.table th.span9{float:none;width:684px;margin-left:0;}\r\n.table
td.span10,.table th.span10{float:none;width:764px;margin-left:0;}\r\n.table
td.span11,.table th.span11{float:none;width:844px;margin-left:0;}\r\n.table
td.span12,.table th.span12{float:none;width:924px;margin-left:0;}\r\n.table
tbody tr.success>td{background-color:#dff0d8;}\r\n.table tbody
tr.error>td{background-color:#f2dede;}\r\n.table tbody
tr.warning>td{background-color:#fcf8e3;}\r\n.table tbody
tr.info>td{background-color:#d9edf7;}\r\n.table-hover tbody
tr.success:hover>td{background-color:#d0e9c6;}\r\n.table-hover tbody
tr.error:hover>td{background-color:#ebcccc;}\r\n.table-hover tbody
tr.warning:hover>td{background-color:#faf2cc;}\r\n.table-hover tbody
tr.info:hover>td{background-color:#c4e3f3;}\r\n\r\n.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px
solid
#e3e3e3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset
0 1px 1px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0,
0.05);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);}.well
blockquote{border-color:#ddd;border-color:rgba(0, 0, 0,
0.15);}\r\n.well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;}\r\n.well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}\r\n\r\ntable.dl-table
td{line-height:20px;}\r\ntd.invoice_label{text-align:right;font-weight:bold;\r\nwidth:120px;
padding-right:20px;line-height:20px;}', '<div
style="font-family:Helvetica; font-size:12px;"  >\r\n 
<table width="100%">\r\n    <tr>\r\n      <td
width="50%"  valign="top"><img
src="http://www.joomlathat.com/images/joomlathat3.png"
/><br />\r\n        <br />\r\n        <table
class="dl-table">\r\n          <tr>\r\n           
<td class="invoice_label"
valign="top">From</td>\r\n            <td
valign="top"><strong>{from_name}</strong></td>\r\n
         </tr>\r\n          <tr>\r\n            <td
class="invoice_label"
valign="top">Address</td>\r\n            <td
valign="top"><address>\r\n             
{from_address}\r\n              </address></td>\r\n         
</tr>\r\n          <tr>\r\n            <td
class="invoice_label"
valign="top">e-mail</td>\r\n            <td
valign="top">{from_email}</td>\r\n         
</tr>\r\n          <tr>\r\n            <td
class="invoice_label" valign="top">Fiscal
number</td>\r\n            <td
valign="top">{from_num}</td>\r\n         
</tr>\r\n        </table></td>\r\n      <td
width="50%"  valign="top"><div class="well
well-small">\r\n          <table
class="dl-table">\r\n            <tr>\r\n             
<td class="invoice_label" valign="top">Quote
number</td>\r\n              <td
valign="top">{invoice_num}</td>\r\n           
</tr>\r\n            <tr>\r\n              <td
class="invoice_label" valign="top">Quote
date</td>\r\n              <td
valign="top">{invoice_date}</td>\r\n           
</tr>\r\n            <tr>\r\n              <td
class="invoice_label" valign="top">Due
date</td>\r\n              <td
valign="top">{invoice_duedate}</td>\r\n           
</tr>\r\n            <tr>\r\n              <td
class="invoice_label" valign="top">Quote
total</td>\r\n              <td
valign="top">{total}</td>\r\n            </tr>\r\n
           <tr>\r\n              <td
class="invoice_label"
valign="top">Status</td>\r\n              <td
valign="top">{status}</td>\r\n           
</tr>\r\n          </table>\r\n        </div>\r\n       
<div class="well well-small">\r\n          <table
class="dl-table">\r\n            <tr>\r\n             
<td class="invoice_label" valign="top">Bill
to</td>\r\n              <td
valign="top"><strong>{to_name}</strong></td>\r\n
           </tr>\r\n            <tr>\r\n              <td
class="invoice_label"
valign="top">Address</td>\r\n              <td
valign="top"><address>\r\n                {to_company}
<br />\r\n                {to_address} <br />\r\n              
 {to_zipcode} {to_city} <br />\r\n                {to_state}
{to_country}\r\n                </address></td>\r\n           
</tr>\r\n            <tr>\r\n              <td
class="invoice_label"
valign="top">e-mail</td>\r\n              <td
valign="top">{to_email}</td>\r\n           
</tr>\r\n            <tr>\r\n              <td
class="invoice_label" valign="top">VAT
ID</td>\r\n              <td
valign="top">{to_vatid}</td>\r\n           
</tr>\r\n            <tr>\r\n              <td
class="invoice_label"
valign="top">Phone</td>\r\n              <td
valign="top">{to_phone}</td>\r\n           
</tr>\r\n          </table>\r\n       
</div></td>\r\n    </tr>\r\n  </table>\r\n  <h2
class="invoice_header">Items</h2>\r\n  <table
width="100%" class="table table-striped"   >\r\n   
<thead>\r\n      <tr>\r\n        <th
align="left">SKU</th>\r\n        <th
align="left">Description</th>\r\n        <th
align="right" style="text-align:right;">Unit
cost</th>\r\n        <th align="right"
style="text-align:right;">Quantity</th>\r\n       
<th align="right"
style="text-align:right;">Discount</th>\r\n       
<th align="right"
style="text-align:right;">Tax</th>\r\n        <th
align="right"
style="text-align:right;">Price</th>\r\n     
</tr>\r\n    </thead>\r\n    <tbody>\r\n    \r\n   
{items}\r\n    </tbody>\r\n    \r\n    <tfoot>\r\n     
<tr>\r\n        <td colspan="4"></td>\r\n      
 <td colspan="2" align="right"
style="text-align:right;">Discount</td>\r\n       
<td align="right"
style="text-align:right;">{discount}</td>\r\n     
</tr>\r\n      <tr>\r\n        <td
colspan="4"></td>\r\n        <td
colspan="2" align="right"
style="text-align:right;">Subtotal</td>\r\n       
<td align="right"
style="text-align:right;">{subtotal}</td>\r\n     
</tr>\r\n    {taxes}\r\n    <tr>\r\n      <td
colspan="4"></td>\r\n      <td colspan="2"
align="right"
style="text-align:right;"><strong>Total</strong></td>\r\n
     <td align="right"
style="text-align:right;"><strong>{total}</strong></td>\r\n
   </tr>\r\n    </tfoot>\r\n    \r\n  </table>\r\n  \r\n 
<div style="padding:2px;">Notes</div>\r\n  <div
style="border-top:1px solid #000; padding:2px; "
class="muted"><small>{notes}</small></div>\r\n</div>');
updates/1.4.0.sql000064400000122105151163543330007377 0ustar00ALTER TABLE
`#__invoices_invoices` ADD  `language` VARCHAR(255) NOT NULL;
ALTER TABLE `#__invoices_invoices` ADD  `last_sent` DATETIME NOT NULL;
ALTER TABLE `#__invoices_invoices` MODIFY `computed_total` DECIMAL(12,4)
NOT NULL;
ALTER TABLE `#__invoices_invoices` MODIFY `discount` DECIMAL(12,4) NOT
NULL;

ALTER TABLE `#__invoices_items` MODIFY `value` DECIMAL(12,4) NOT NULL;
ALTER TABLE `#__invoices_items` MODIFY `discount` DECIMAL(12,4) NOT NULL;
ALTER TABLE `#__invoices_items` MODIFY `tax` DECIMAL(12,4) NOT NULL;

ALTER TABLE `#__invoices_taxes` ADD  `checked` TINYINT(1) NOT NULL;
ALTER TABLE `#__invoices_taxes` MODIFY  `value` DECIMAL(12,4) NOT NULL;

ALTER TABLE `#__invoices_templateitems` MODIFY `value` DECIMAL(12,4) NOT
NULL;
ALTER TABLE `#__invoices_templateitems` MODIFY `tax` DECIMAL(12,4) NOT
NULL;


INSERT INTO `#__invoices_templates` (`id`, `name`, `content`, `items`,
`taxes`, `payments`, `payments2`, `styles`, `content_pdf`) VALUES
(NULL, 'Invoice (Bootstrap)', '<div
style="font-family: Helvetica;">\r\n  <div
class="row-fluid">\r\n    <div
class="span6"><img
src="http://www.joomlathat.com/images/joomlathat3.png"
alt="" /><br />\r\n      <br />\r\n      <dl
class="dl-horizontal">\r\n       
<dt>[[FROM]]</dt>\r\n       
<dd><strong>{from_name}</strong></dd>\r\n       
<dt>[[ADDRESS]]</dt>\r\n        <dd>\r\n         
<address>\r\n          {from_address}\r\n         
</address>\r\n        </dd>\r\n       
<dt>[[EMAIL]]</dt>\r\n       
<dd>{from_email}</dd>\r\n       
<dt>[[FISCAL_NUMBER]]</dt>\r\n       
<dd>{from_num}</dd>\r\n      </dl>\r\n   
</div>\r\n    <div class="span6">\r\n      <div
class="well well-small">\r\n        <dl
class="dl-horizontal">\r\n         
<dt>[[INVOICE_NUM]]</dt>\r\n         
<dd>{invoice_num}</dd>\r\n         
<dt>[[INVOICE_DATE]]</dt>\r\n         
<dd>{invoice_date}</dd>\r\n         
<dt>[[DUE_DATE]]</dt>\r\n         
<dd>{invoice_duedate}</dd>\r\n         
<dt>[[INVOICE_TOTAL]]</dt>\r\n         
<dd>{total}</dd>\r\n         
<dt>[[STATUS]]</dt>\r\n         
<dd>{status}</dd>\r\n        </dl>\r\n     
</div>\r\n      <div class="well well-small">\r\n    
   <dl class="dl-horizontal">\r\n         
<dt>[[BILL_TO]]</dt>\r\n         
<dd><strong>{to_name}</strong></dd>\r\n         
<dt>[[ADDRESS]]</dt>\r\n          <dd>\r\n           
<address>\r\n            {to_company} <br />\r\n           
{to_address} <br />\r\n            {to_zipcode} {to_city} <br
/>\r\n            {to_state} {to_country}\r\n           
</address>\r\n          </dd>\r\n         
<dt>[[EMAIL]]</dt>\r\n         
<dd>{to_email}</dd>\r\n         
<dt>[[VATID]]</dt>\r\n         
<dd>{to_vatid}</dd>\r\n         
<dt>[[PHONE]]</dt>\r\n         
<dd>{to_phone}</dd>\r\n        </dl>\r\n     
</div>\r\n    </div>\r\n  </div>\r\n  <h2
class="invoice_header">[[ITEMS]]</h2>\r\n  <table
class="table table-striped" width="100%">\r\n   
<thead>\r\n      <tr>\r\n        <th
align="left">[[SKU]]</th>\r\n        <th
align="left">[[DESCRIPTION]]</th>\r\n        <th
style="text-align: right;"
align="right">[[UNIT_COST]]</th>\r\n        <th
style="text-align: right;"
align="right">[[QUANTITY]]</th>\r\n        <th
style="text-align: right;"
align="right">[[DISCOUNT]]</th>\r\n        <th
style="text-align: right;"
align="right">[[TAX]]</th>\r\n        <th
style="text-align: right;"
align="right">[[PRICE]]</th>\r\n      </tr>\r\n   
</thead>\r\n    <tbody>\r\n      <!--ITEMS-->\r\n     
<tr>\r\n        <td>{sku}</td>\r\n       
<td><strong>{name}</strong><br />\r\n         
{desc}</td>\r\n        <td style="text-align: right;"
align="right">{value}</td>\r\n        <td
style="text-align: right;"
align="right">{amount}</td>\r\n        <td
style="text-align: right;"
align="right">{discount}</td>\r\n        <td
style="text-align: right;"
align="right">{tax}</td>\r\n        <td
style="text-align: right;"
align="right">{item_total}</td>\r\n      </tr>\r\n
     <!--/ITEMS-->\r\n    </tbody>\r\n    <tfoot>\r\n    
 <tr>\r\n        <td colspan="4"> </td>\r\n    
   <td style="text-align: right;" colspan="2"
align="right">[[DISCOUNT]]</td>\r\n        <td
style="text-align: right;"
align="right">{discount}</td>\r\n      </tr>\r\n  
   <tr>\r\n        <td colspan="4"> </td>\r\n  
     <td style="text-align: right;" colspan="2"
align="right">[[SUBTOTAL]]</td>\r\n        <td
style="text-align: right;"
align="right">{subtotal}</td>\r\n      </tr>\r\n  
   <!--TAXES-->\r\n      <tr>\r\n        <td
colspan="4"> </td>\r\n        <td
style="text-align: right;" colspan="2"
align="right">{name}</td>\r\n        <td
style="text-align: right;"
align="right">{value}</td>\r\n      </tr>\r\n     
<!--/TAXES-->\r\n      <!--GROUPED_TAXES-->\r\n     
<tr>\r\n        <td colspan="4"> </td>\r\n     
  <td style="text-align: right;" colspan="2"
align="right">{name}</td>\r\n        <td
style="text-align: right;"
align="right">{value}</td>\r\n      </tr>\r\n     
<!--/GROUPED_TAXES-->\r\n      <tr>\r\n        <td
colspan="4"> </td>\r\n        <td
style="text-align: right;" colspan="2"
align="right"><strong>[[TOTAL]]</strong></td>\r\n
       <td style="text-align: right;"
align="right"><strong>{total}</strong></td>\r\n
     </tr>\r\n    </tfoot>\r\n  </table>\r\n  <ul
class="nav nav-tabs">\r\n    <li><a
href="#payments_received"
data-toggle="tab">[[PAYMENTS_RECEIVED]]
{num_payments_received}</a></li>\r\n    <li
class="active"><a href="#pending_payments"
data-toggle="tab">[[PENDING_PAYMENTS]]
{num_pending_payments}</a></li>\r\n  </ul>\r\n  <div
class="tab-content">\r\n    <div
id="payments_received" class="tab-pane ">\r\n     
<table class="table table-striped " style="table-layout:
fixed;" width="100%">\r\n        <thead>\r\n       
  <tr>\r\n            <th
align="left">[[PAYMENT_DATE]]</th>\r\n            <th
align="left">[[DESCRIPTION]]</th>\r\n            <th
align="left">[[STATUS]]</th>\r\n            <th
align="left"> </th>\r\n            <th
style="text-align: right;"
align="right">[[AMOUNT]]</th>\r\n         
</tr>\r\n        </thead>\r\n        <tbody>\r\n         
<!--PAYMENTS-->\r\n          <tr>\r\n           
<td>{payment_datetime}</td>\r\n           
<td>{description}</td>\r\n           
<td>{payment_status}</td>\r\n            <td
style="text-align: right;" align="right"><a
class="btn btn-mini" href="{payment_link}">
[[VIEW_DETAILS]]</a></td>\r\n            <td
style="text-align: right;"
align="right">{amount}</td>\r\n          </tr>\r\n
         <!--/PAYMENTS-->\r\n        </tbody>\r\n       
<tfoot>\r\n          <tr>\r\n            <td>
</td>\r\n            <td> </td>\r\n            <td>
</td>\r\n            <td style="text-align: right;"
align="right"><strong>[[TOTAL_AMOUNT_PAID]]</strong></td>\r\n
           <td style="text-align: right;"
align="right"><strong>{total_payments}</strong></td>\r\n
         </tr>\r\n        </tfoot>\r\n      </table>\r\n 
  </div>\r\n    <div id="pending_payments"
class="tab-pane active">\r\n      <table class="table
table-striped table-hover" style="table-layout: fixed;"
width="100%">\r\n        <thead>\r\n         
<tr>\r\n            <th
align="left">[[DUE_DATE]]</th>\r\n            <th
align="left">[[DESCRIPTION]]</th>\r\n            <th
align="left">[[STATUS]]</th>\r\n            <th
align="left"> </th>\r\n            <th
style="text-align: right;"
align="right">[[AMOUNT]]</th>\r\n         
</tr>\r\n        </thead>\r\n        <tbody>\r\n         
<!--PAYMENTS2-->\r\n          <tr>\r\n           
<td>{duedate}</td>\r\n           
<td>{description}</td>\r\n           
<td>{payment_status}</td>\r\n            <td
style="text-align: right;" align="right"><a
class="btn btn-info btn-mini" href="{payment_link}"
target="_parent"> [[PAY_NOW]]</a></td>\r\n        
   <td style="text-align: right;"
align="right">{amount}</td>\r\n          </tr>\r\n
         <!--/PAYMENTS2-->\r\n        </tbody>\r\n       
<tfoot>\r\n          <tr>\r\n            <td>
</td>\r\n            <td> </td>\r\n            <td>
</td>\r\n            <td style="text-align: right;"
align="right"><strong>[[AMOUNT_OUTSTANDING]]</strong></td>\r\n
           <td style="text-align: right;"
align="right"><strong>{amount_outstanding}</strong></td>\r\n
         </tr>\r\n        </tfoot>\r\n      </table>\r\n 
  </div>\r\n  </div>\r\n  <div style="padding:
2px;">[[NOTES]]</div>\r\n  <div class="muted"
style="border-top: 1px solid #000; padding:
2px;"><small>{notes}</small></div>\r\n</div>',
'', '', '', '',
'.clearfix{*zoom:1;}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0;}\r\n.clearfix:after{clear:both;}\r\n.hide-text{font:0/0
a;color:transparent;text-shadow:none;background-color:transparent;border:0;}\r\n\r\ndl{margin-bottom:20px;}\r\ndt,dd{line-height:20px;}\r\ndt{font-weight:bold;}\r\ndd{margin-left:10px;}\r\n.dl-horizontal{*zoom:1;}.dl-horizontal:before,.dl-horizontal:after{display:table;content:"";line-height:0;}\r\n.dl-horizontal:after{clear:both;}\r\n.dl-horizontal
dt{float:left;width:120px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}\r\n.dl-horizontal
dd{margin-left:140px;}\r\nhr{margin:20px 0;border:0;border-top:1px solid
#eeeeee;border-bottom:1px solid
#ffffff;}\r\nabbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px
dotted
#999999;}\r\nabbr.initialism{font-size:90%;text-transform:uppercase;}\r\n\r\nq:before,q:after,blockquote:before,blockquote:after{content:"";}\r\naddress{display:block;margin-bottom:20px;font-style:normal;line-height:20px;}\r\n\r\ntable{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}\r\n.table{width:100%;margin-bottom:20px;}.table
th,.table
td{padding:8px;line-height:20px;text-align:left;vertical-align:top;border-top:1px
solid #dddddd;}\r\n.table th{font-weight:bold;}\r\n.table thead
th{vertical-align:bottom;}\r\n.table caption+thead tr:first-child th,.table
caption+thead tr:first-child td,.table colgroup+thead tr:first-child
th,.table colgroup+thead tr:first-child td,.table thead:first-child
tr:first-child th,.table thead:first-child tr:first-child
td{border-top:0;}\r\n.table tbody+tbody{border-top:2px solid
#dddddd;}\r\n.table .table{background-color:#ffffff;}\r\n.table-condensed
th,.table-condensed td{padding:4px 5px;}\r\n.table-bordered{border:1px
solid
#dddddd;border-collapse:separate;*border-collapse:collapse;border-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}.table-bordered
th,.table-bordered td{border-left:1px solid #dddddd;}\r\n.table-bordered
caption+thead tr:first-child th,.table-bordered caption+tbody
tr:first-child th,.table-bordered caption+tbody tr:first-child
td,.table-bordered colgroup+thead tr:first-child th,.table-bordered
colgroup+tbody tr:first-child th,.table-bordered colgroup+tbody
tr:first-child td,.table-bordered thead:first-child tr:first-child
th,.table-bordered tbody:first-child tr:first-child th,.table-bordered
tbody:first-child tr:first-child td{border-top:0;}\r\n.table-bordered
thead:first-child tr:first-child>th:first-child,.table-bordered
tbody:first-child tr:first-child>td:first-child,.table-bordered
tbody:first-child
tr:first-child>th:first-child{-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;}\r\n.table-bordered
thead:first-child tr:first-child>th:last-child,.table-bordered
tbody:first-child tr:first-child>td:last-child,.table-bordered
tbody:first-child
tr:first-child>th:last-child{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;}\r\n.table-bordered
thead:last-child tr:last-child>th:first-child,.table-bordered
tbody:last-child tr:last-child>td:first-child,.table-bordered
tbody:last-child tr:last-child>th:first-child,.table-bordered
tfoot:last-child tr:last-child>td:first-child,.table-bordered
tfoot:last-child
tr:last-child>th:first-child{-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px;}\r\n.table-bordered
thead:last-child tr:last-child>th:last-child,.table-bordered
tbody:last-child tr:last-child>td:last-child,.table-bordered
tbody:last-child tr:last-child>th:last-child,.table-bordered
tfoot:last-child tr:last-child>td:last-child,.table-bordered
tfoot:last-child
tr:last-child>th:last-child{-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px;}\r\n.table-bordered
tfoot+tbody:last-child tr:last-child
td:first-child{-webkit-border-bottom-left-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;}\r\n.table-bordered
tfoot+tbody:last-child tr:last-child
td:last-child{-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;}\r\n.table-bordered
caption+thead tr:first-child th:first-child,.table-bordered caption+tbody
tr:first-child td:first-child,.table-bordered colgroup+thead tr:first-child
th:first-child,.table-bordered colgroup+tbody tr:first-child
td:first-child{-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;}\r\n.table-bordered
caption+thead tr:first-child th:last-child,.table-bordered caption+tbody
tr:first-child td:last-child,.table-bordered colgroup+thead tr:first-child
th:last-child,.table-bordered colgroup+tbody tr:first-child
td:last-child{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;}\r\n.table-striped
tbody>tr:nth-child(odd)>td,.table-striped
tbody>tr:nth-child(odd)>th{background-color:#f9f9f9;}\r\n.table-hover
tbody tr:hover>td,.table-hover tbody
tr:hover>th{background-color:#f5f5f5;}\r\ntable
td[class*="span"],table th[class*="span"],.row-fluid
table td[class*="span"],.row-fluid table
th[class*="span"]{display:table-cell;float:none;margin-left:0;}\r\n.table
td.span1,.table th.span1{float:none;width:44px;margin-left:0;}\r\n.table
td.span2,.table th.span2{float:none;width:124px;margin-left:0;}\r\n.table
td.span3,.table th.span3{float:none;width:204px;margin-left:0;}\r\n.table
td.span4,.table th.span4{float:none;width:284px;margin-left:0;}\r\n.table
td.span5,.table th.span5{float:none;width:364px;margin-left:0;}\r\n.table
td.span6,.table th.span6{float:none;width:444px;margin-left:0;}\r\n.table
td.span7,.table th.span7{float:none;width:524px;margin-left:0;}\r\n.table
td.span8,.table th.span8{float:none;width:604px;margin-left:0;}\r\n.table
td.span9,.table th.span9{float:none;width:684px;margin-left:0;}\r\n.table
td.span10,.table th.span10{float:none;width:764px;margin-left:0;}\r\n.table
td.span11,.table th.span11{float:none;width:844px;margin-left:0;}\r\n.table
td.span12,.table th.span12{float:none;width:924px;margin-left:0;}\r\n.table
tbody tr.success>td{background-color:#dff0d8;}\r\n.table tbody
tr.error>td{background-color:#f2dede;}\r\n.table tbody
tr.warning>td{background-color:#fcf8e3;}\r\n.table tbody
tr.info>td{background-color:#d9edf7;}\r\n.table-hover tbody
tr.success:hover>td{background-color:#d0e9c6;}\r\n.table-hover tbody
tr.error:hover>td{background-color:#ebcccc;}\r\n.table-hover tbody
tr.warning:hover>td{background-color:#faf2cc;}\r\n.table-hover tbody
tr.info:hover>td{background-color:#c4e3f3;}\r\n\r\n.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px
solid
#e3e3e3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset
0 1px 1px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0,
0.05);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);}.well
blockquote{border-color:#ddd;border-color:rgba(0, 0, 0,
0.15);}\r\n.well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;}\r\n.well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}\r\n\r\ntable.dl-table
td{line-height:20px;}\r\ntd.invoice_label{text-align:right;font-weight:bold;\r\nwidth:120px;
padding-right:20px;line-height:20px;}', '<div
style="font-family: Helvetica; font-size: 12px;">\r\n 
<table width="100%">\r\n    <tbody>\r\n     
<tr>\r\n        <td valign="top"
width="50%"><img
src="http://www.joomlathat.com/images/joomlathat3.png"
alt="" /><br />\r\n          <br />\r\n         
<table class="dl-table">\r\n            <tbody>\r\n  
           <tr>\r\n                <td
class="invoice_label"
valign="top">[[FROM]]</td>\r\n                <td
valign="top"><strong>{from_name}</strong></td>\r\n
             </tr>\r\n              <tr>\r\n               
<td class="invoice_label"
valign="top">[[ADDRESS]]</td>\r\n                <td
valign="top"><address>\r\n                 
{from_address}\r\n                  </address></td>\r\n        
     </tr>\r\n              <tr>\r\n                <td
class="invoice_label"
valign="top">[[EMAIL]]</td>\r\n                <td
valign="top">{from_email}</td>\r\n             
</tr>\r\n              <tr>\r\n                <td
class="invoice_label"
valign="top">[[FISCAL_NUMBER]]</td>\r\n               
<td valign="top">{from_num}</td>\r\n             
</tr>\r\n            </tbody>\r\n         
</table></td>\r\n        <td valign="top"
width="50%"><div class="well well-small">\r\n 
          <table class="dl-table">\r\n             
<tbody>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[INVOICE_NUM]]</td>\r\n                 
<td valign="top">{invoice_num}</td>\r\n              
 </tr>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[INVOICE_DATE]]</td>\r\n                 
<td valign="top">{invoice_date}</td>\r\n             
  </tr>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[DUE_DATE]]</td>\r\n                 
<td valign="top">{invoice_duedate}</td>\r\n          
     </tr>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[INVOICE_TOTAL]]</td>\r\n                 
<td valign="top">{total}</td>\r\n               
</tr>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[STATUS]]</td>\r\n                  <td
valign="top">{status}</td>\r\n               
</tr>\r\n              </tbody>\r\n           
</table>\r\n          </div>\r\n          <div
class="well well-small">\r\n            <table
class="dl-table">\r\n              <tbody>\r\n          
     <tr>\r\n                  <td class="invoice_label"
valign="top">[[BILL_TO]]</td>\r\n                 
<td
valign="top"><strong>{to_name}</strong></td>\r\n
               </tr>\r\n                <tr>\r\n               
  <td class="invoice_label"
valign="top">[[ADDRESS]]</td>\r\n                 
<td valign="top"><address>\r\n                   
{to_company} <br />\r\n                    {to_address} <br
/>\r\n                    {to_zipcode} {to_city} <br />\r\n       
            {to_state} {to_country}\r\n                   
</address></td>\r\n                </tr>\r\n             
  <tr>\r\n                  <td class="invoice_label"
valign="top">[[EMAIL]]</td>\r\n                  <td
valign="top">{to_email}</td>\r\n               
</tr>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[VATID]]</td>\r\n                  <td
valign="top">{to_vatid}</td>\r\n               
</tr>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[PHONE]]</td>\r\n                  <td
valign="top">{to_phone}</td>\r\n               
</tr>\r\n              </tbody>\r\n           
</table>\r\n          </div></td>\r\n     
</tr>\r\n    </tbody>\r\n  </table>\r\n  <h2
class="invoice_header">[[ITEMS]]</h2>\r\n  <table
class="table table-striped" width="100%">\r\n   
<thead>\r\n      <tr>\r\n        <th
align="left">[[SKU]]</th>\r\n        <th
align="left">[[DESCRIPTION]]</th>\r\n        <th
style="text-align: right;"
align="right">[[UNIT_COST]]</th>\r\n        <th
style="text-align: right;"
align="right">[[QUANTITY]]</th>\r\n        <th
style="text-align: right;"
align="right">[[DISCOUNT]]</th>\r\n        <th
style="text-align: right;"
align="right">[[TAX]]</th>\r\n        <th
style="text-align: right;"
align="right">[[PRICE]]</th>\r\n      </tr>\r\n   
</thead>\r\n    <tbody>\r\n      <!--ITEMS-->\r\n     
<tr>\r\n        <td>{sku}</td>\r\n       
<td><strong>{name}</strong><br />\r\n         
{desc}</td>\r\n        <td style="text-align: right;"
align="right">{value}</td>\r\n        <td
style="text-align: right;"
align="right">{amount}</td>\r\n        <td
style="text-align: right;"
align="right">{discount}</td>\r\n        <td
style="text-align: right;"
align="right">{tax}</td>\r\n        <td
style="text-align: right;"
align="right">{item_total}</td>\r\n      </tr>\r\n
     <!--/ITEMS-->\r\n    </tbody>\r\n    <tfoot>\r\n    
 <tr>\r\n        <td colspan="4"> </td>\r\n    
   <td style="text-align: right;" colspan="2"
align="right">[[DISCOUNT]]</td>\r\n        <td
style="text-align: right;"
align="right">{discount}</td>\r\n      </tr>\r\n  
   <tr>\r\n        <td colspan="4"> </td>\r\n  
     <td style="text-align: right;" colspan="2"
align="right">[[SUBTOTAL]]</td>\r\n        <td
style="text-align: right;"
align="right">{subtotal}</td>\r\n      </tr>\r\n  
   <!--TAXES-->\r\n      <tr>\r\n        <td
colspan="4"> </td>\r\n        <td
style="text-align: right;" colspan="2"
align="right">{name}</td>\r\n        <td
style="text-align: right;"
align="right">{value}</td>\r\n      </tr>\r\n     
<!--/TAXES-->\r\n      <!--GROUPED_TAXES-->\r\n     
<tr>\r\n        <td colspan="4"> </td>\r\n     
  <td style="text-align: right;" colspan="2"
align="right">{name}</td>\r\n        <td
style="text-align: right;"
align="right">{value}</td>\r\n      </tr>\r\n     
<!--/GROUPED_TAXES-->\r\n      <tr>\r\n        <td
colspan="4"> </td>\r\n        <td
style="text-align: right;" colspan="2"
align="right"><strong>[[TOTAL]]</strong></td>\r\n
       <td style="text-align: right;"
align="right"><strong>{total}</strong></td>\r\n
     </tr>\r\n    </tfoot>\r\n  </table>\r\n  <h2
class="invoice_header">[[PAYMENTS_RECEIVED]]</h2>\r\n 
<table class="table table-striped " style="table-layout:
fixed;" width="100%">\r\n    <thead>\r\n     
<tr>\r\n        <th
align="left">[[PAYMENT_DATE]]</th>\r\n        <th
align="left">[[DESCRIPTION]]</th>\r\n        <th
align="left">[[STATUS]]</th>\r\n        <th
align="left"> </th>\r\n        <th
style="text-align: right;"
align="right">[[AMOUNT]]</th>\r\n      </tr>\r\n  
 </thead>\r\n    <tbody>\r\n      <!--PAYMENTS-->\r\n    
 <tr>\r\n        <td>{payment_datetime}</td>\r\n       
<td>{description}</td>\r\n       
<td>{payment_status}</td>\r\n        <td
style="text-align: right;" align="right"><a
class="btn btn-mini" href="{payment_link}">
[[VIEW_DETAILS]]</a></td>\r\n        <td
style="text-align: right;"
align="right">{amount}</td>\r\n      </tr>\r\n    
 <!--/PAYMENTS-->\r\n    </tbody>\r\n    <tfoot>\r\n     
<tr>\r\n        <td> </td>\r\n        <td>
</td>\r\n        <td> </td>\r\n        <td
style="text-align: right;"
align="right"><strong>[[TOTAL_AMOUNT_PAID]]</strong></td>\r\n
       <td style="text-align: right;"
align="right"><strong>{total_payments}</strong></td>\r\n
     </tr>\r\n    </tfoot>\r\n  </table>\r\n  <h2
class="invoice_header">[[PENDING_PAYMENTS]]</h2>\r\n 
<table class="table table-striped table-hover"
style="table-layout: fixed;" width="100%">\r\n   
<thead>\r\n      <tr>\r\n        <th
align="left">[[DUE_DATE]]</th>\r\n        <th
align="left">[[DESCRIPTION]]</th>\r\n        <th
align="left">[[STATUS]]</th>\r\n        <th
align="left"> </th>\r\n        <th
style="text-align: right;"
align="right">[[AMOUNT]]</th>\r\n      </tr>\r\n  
 </thead>\r\n    <tbody>\r\n      <!--PAYMENTS2-->\r\n   
  <tr>\r\n        <td>{duedate}</td>\r\n       
<td>{description}</td>\r\n       
<td>{payment_status}</td>\r\n        <td
style="text-align: right;" align="right"><a
class="btn btn-info btn-mini" href="{payment_link}"
target="_parent"> [[PAY_NOW]]</a></td>\r\n       
<td style="text-align: right;"
align="right">{amount}</td>\r\n      </tr>\r\n    
 <!--/PAYMENTS2-->\r\n    </tbody>\r\n    <tfoot>\r\n    
 <tr>\r\n        <td> </td>\r\n        <td>
</td>\r\n        <td> </td>\r\n        <td
style="text-align: right;"
align="right"><strong>[[AMOUNT_OUTSTANDING]]</strong></td>\r\n
       <td style="text-align: right;"
align="right"><strong>{amount_outstanding}</strong></td>\r\n
     </tr>\r\n    </tfoot>\r\n  </table>\r\n  <div
style="padding: 2px;">[[NOTES]]</div>\r\n  <div
class="muted" style="border-top: 1px solid #000; padding:
2px;"><small>{notes}</small></div>\r\n</div>'),
(NULL, 'Quote (Bootstrap)', '<div
style="font-family:Helvetica;"  >\r\n  <div
class="row-fluid">\r\n    <div class="span6">
<img src="http://www.joomlathat.com/images/joomlathat3.png"
/><br />\r\n      <br />\r\n      <dl
class="dl-horizontal">\r\n       
<dt>[[FROM]]</dt>\r\n       
<dd><strong>{from_name}</strong></dd>\r\n       
<dt>[[ADDRESS]]</dt>\r\n        <dd>\r\n         
<address>\r\n          {from_address}\r\n         
</address>\r\n        </dd>\r\n       
<dt>[[EMAIL]]</dt>\r\n       
<dd>{from_email}</dd>\r\n       
<dt>[[FISCAL_NUMBER]]</dt>\r\n       
<dd>{from_num}</dd>\r\n      </dl>\r\n   
</div>\r\n    <div class="span6">\r\n      <div
class="well well-small">\r\n        <dl
class="dl-horizontal">\r\n         
<dt>[[QUOTE_NUM]]</dt>\r\n         
<dd>{invoice_num}</dd>\r\n         
<dt>[[QUOTE_DATE]]</dt>\r\n         
<dd>{invoice_date}</dd>\r\n         
<dt>[[DUE_DATE]]</dt>\r\n         
<dd>{invoice_duedate}</dd>\r\n         
<dt>[[QUOTE_TOTAL]]</dt>\r\n         
<dd>{total}</dd>\r\n         
<dt>[[STATUS]]</dt>\r\n         
<dd>{status}</dd>\r\n        </dl>\r\n     
</div>\r\n      <div class="well well-small">\r\n    
   <dl class="dl-horizontal">\r\n         
<dt>[[BILL_TO]]</dt>\r\n         
<dd><strong>{to_name}</strong></dd>\r\n         
<dt>[[ADDRESS]]</dt>\r\n          <dd>\r\n           
<address>\r\n            {to_company} <br />\r\n           
{to_address} <br />\r\n            {to_zipcode} {to_city} <br
/>\r\n            {to_state} {to_country}\r\n           
</address>\r\n          </dd>\r\n         
<dt>[[EMAIL]]</dt>\r\n         
<dd>{to_email}</dd>\r\n         
<dt>[[VATID]]</dt>\r\n         
<dd>{to_vatid}</dd>\r\n         
<dt>[[PHONE]]</dt>\r\n         
<dd>{to_phone}</dd>\r\n        </dl>\r\n     
</div>\r\n\r\n {accept_button}  {reject_button}\r\n\r\n   
</div>\r\n  </div>\r\n  <h2
class="invoice_header">[[ITEMS]]</h2>\r\n  <table
width="100%" class="table table-striped"   >\r\n   
<thead>\r\n      <tr>\r\n        <th
align="left">[[SKU]]</th>\r\n        <th
align="left">[[DESCRIPTION]]</th>\r\n        <th
style="text-align: right;"
align="right">[[UNIT_COST]]</th>\r\n        <th
style="text-align: right;"
align="right">[[QUANTITY]]</th>\r\n        <th
style="text-align: right;"
align="right">[[DISCOUNT]]</th>\r\n        <th
style="text-align: right;"
align="right">[[TAX]]</th>\r\n        <th
style="text-align: right;"
align="right">[[PRICE]]</th>\r\n      </tr>\r\n   
</thead>\r\n    <tbody>\r\n      <!--ITEMS-->\r\n     
<tr>\r\n        <td>{sku}</td>\r\n       
<td><strong>{name}</strong><br />\r\n         
{desc}</td>\r\n        <td style="text-align: right;"
align="right">{value}</td>\r\n        <td
style="text-align: right;"
align="right">{amount}</td>\r\n        <td
style="text-align: right;"
align="right">{discount}</td>\r\n        <td
style="text-align: right;"
align="right">{tax}</td>\r\n        <td
style="text-align: right;"
align="right">{item_total}</td>\r\n      </tr>\r\n
     <!--/ITEMS-->\r\n    </tbody>\r\n    <tfoot>\r\n    
 <tr>\r\n        <td colspan="4"> </td>\r\n    
   <td style="text-align: right;" colspan="2"
align="right">[[DISCOUNT]]</td>\r\n        <td
style="text-align: right;"
align="right">{discount}</td>\r\n      </tr>\r\n  
   <tr>\r\n        <td colspan="4"> </td>\r\n  
     <td style="text-align: right;" colspan="2"
align="right">[[SUBTOTAL]]</td>\r\n        <td
style="text-align: right;"
align="right">{subtotal}</td>\r\n      </tr>\r\n  
   <!--TAXES-->\r\n      <tr>\r\n        <td
colspan="4"> </td>\r\n        <td
style="text-align: right;" colspan="2"
align="right">{name}</td>\r\n        <td
style="text-align: right;"
align="right">{value}</td>\r\n      </tr>\r\n     
<!--/TAXES-->\r\n      <tr>\r\n        <td
colspan="4"> </td>\r\n        <td
style="text-align: right;" colspan="2"
align="right"><strong>[[TOTAL]]</strong></td>\r\n
       <td style="text-align: right;"
align="right"><strong>{total}</strong></td>\r\n
     </tr>\r\n    </tfoot>\r\n  </table>\r\n  <div
style="padding: 2px;">[[NOTES]]</div>\r\n  <div
style="border-top:1px solid #000; padding:2px; "
class="muted"><small>{notes}</small></div>\r\n</div>',
'', '', '', '',
'.clearfix{*zoom:1;}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0;}\r\n.clearfix:after{clear:both;}\r\n.hide-text{font:0/0
a;color:transparent;text-shadow:none;background-color:transparent;border:0;}\r\n\r\ndl{margin-bottom:20px;}\r\ndt,dd{line-height:20px;}\r\ndt{font-weight:bold;}\r\ndd{margin-left:10px;}\r\n.dl-horizontal{*zoom:1;}.dl-horizontal:before,.dl-horizontal:after{display:table;content:"";line-height:0;}\r\n.dl-horizontal:after{clear:both;}\r\n.dl-horizontal
dt{float:left;width:120px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}\r\n.dl-horizontal
dd{margin-left:140px;}\r\nhr{margin:20px 0;border:0;border-top:1px solid
#eeeeee;border-bottom:1px solid
#ffffff;}\r\nabbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px
dotted
#999999;}\r\nabbr.initialism{font-size:90%;text-transform:uppercase;}\r\n\r\nq:before,q:after,blockquote:before,blockquote:after{content:"";}\r\naddress{display:block;margin-bottom:20px;font-style:normal;line-height:20px;}\r\n\r\ntable{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}\r\n.table{width:100%;margin-bottom:20px;}.table
th,.table
td{padding:8px;line-height:20px;text-align:left;vertical-align:top;border-top:1px
solid #dddddd;}\r\n.table th{font-weight:bold;}\r\n.table thead
th{vertical-align:bottom;}\r\n.table caption+thead tr:first-child th,.table
caption+thead tr:first-child td,.table colgroup+thead tr:first-child
th,.table colgroup+thead tr:first-child td,.table thead:first-child
tr:first-child th,.table thead:first-child tr:first-child
td{border-top:0;}\r\n.table tbody+tbody{border-top:2px solid
#dddddd;}\r\n.table .table{background-color:#ffffff;}\r\n.table-condensed
th,.table-condensed td{padding:4px 5px;}\r\n.table-bordered{border:1px
solid
#dddddd;border-collapse:separate;*border-collapse:collapse;border-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}.table-bordered
th,.table-bordered td{border-left:1px solid #dddddd;}\r\n.table-bordered
caption+thead tr:first-child th,.table-bordered caption+tbody
tr:first-child th,.table-bordered caption+tbody tr:first-child
td,.table-bordered colgroup+thead tr:first-child th,.table-bordered
colgroup+tbody tr:first-child th,.table-bordered colgroup+tbody
tr:first-child td,.table-bordered thead:first-child tr:first-child
th,.table-bordered tbody:first-child tr:first-child th,.table-bordered
tbody:first-child tr:first-child td{border-top:0;}\r\n.table-bordered
thead:first-child tr:first-child>th:first-child,.table-bordered
tbody:first-child tr:first-child>td:first-child,.table-bordered
tbody:first-child
tr:first-child>th:first-child{-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;}\r\n.table-bordered
thead:first-child tr:first-child>th:last-child,.table-bordered
tbody:first-child tr:first-child>td:last-child,.table-bordered
tbody:first-child
tr:first-child>th:last-child{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;}\r\n.table-bordered
thead:last-child tr:last-child>th:first-child,.table-bordered
tbody:last-child tr:last-child>td:first-child,.table-bordered
tbody:last-child tr:last-child>th:first-child,.table-bordered
tfoot:last-child tr:last-child>td:first-child,.table-bordered
tfoot:last-child
tr:last-child>th:first-child{-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px;}\r\n.table-bordered
thead:last-child tr:last-child>th:last-child,.table-bordered
tbody:last-child tr:last-child>td:last-child,.table-bordered
tbody:last-child tr:last-child>th:last-child,.table-bordered
tfoot:last-child tr:last-child>td:last-child,.table-bordered
tfoot:last-child
tr:last-child>th:last-child{-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px;}\r\n.table-bordered
tfoot+tbody:last-child tr:last-child
td:first-child{-webkit-border-bottom-left-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;}\r\n.table-bordered
tfoot+tbody:last-child tr:last-child
td:last-child{-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;}\r\n.table-bordered
caption+thead tr:first-child th:first-child,.table-bordered caption+tbody
tr:first-child td:first-child,.table-bordered colgroup+thead tr:first-child
th:first-child,.table-bordered colgroup+tbody tr:first-child
td:first-child{-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;}\r\n.table-bordered
caption+thead tr:first-child th:last-child,.table-bordered caption+tbody
tr:first-child td:last-child,.table-bordered colgroup+thead tr:first-child
th:last-child,.table-bordered colgroup+tbody tr:first-child
td:last-child{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;}\r\n.table-striped
tbody>tr:nth-child(odd)>td,.table-striped
tbody>tr:nth-child(odd)>th{background-color:#f9f9f9;}\r\n.table-hover
tbody tr:hover>td,.table-hover tbody
tr:hover>th{background-color:#f5f5f5;}\r\ntable
td[class*="span"],table th[class*="span"],.row-fluid
table td[class*="span"],.row-fluid table
th[class*="span"]{display:table-cell;float:none;margin-left:0;}\r\n.table
td.span1,.table th.span1{float:none;width:44px;margin-left:0;}\r\n.table
td.span2,.table th.span2{float:none;width:124px;margin-left:0;}\r\n.table
td.span3,.table th.span3{float:none;width:204px;margin-left:0;}\r\n.table
td.span4,.table th.span4{float:none;width:284px;margin-left:0;}\r\n.table
td.span5,.table th.span5{float:none;width:364px;margin-left:0;}\r\n.table
td.span6,.table th.span6{float:none;width:444px;margin-left:0;}\r\n.table
td.span7,.table th.span7{float:none;width:524px;margin-left:0;}\r\n.table
td.span8,.table th.span8{float:none;width:604px;margin-left:0;}\r\n.table
td.span9,.table th.span9{float:none;width:684px;margin-left:0;}\r\n.table
td.span10,.table th.span10{float:none;width:764px;margin-left:0;}\r\n.table
td.span11,.table th.span11{float:none;width:844px;margin-left:0;}\r\n.table
td.span12,.table th.span12{float:none;width:924px;margin-left:0;}\r\n.table
tbody tr.success>td{background-color:#dff0d8;}\r\n.table tbody
tr.error>td{background-color:#f2dede;}\r\n.table tbody
tr.warning>td{background-color:#fcf8e3;}\r\n.table tbody
tr.info>td{background-color:#d9edf7;}\r\n.table-hover tbody
tr.success:hover>td{background-color:#d0e9c6;}\r\n.table-hover tbody
tr.error:hover>td{background-color:#ebcccc;}\r\n.table-hover tbody
tr.warning:hover>td{background-color:#faf2cc;}\r\n.table-hover tbody
tr.info:hover>td{background-color:#c4e3f3;}\r\n\r\n.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px
solid
#e3e3e3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset
0 1px 1px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0,
0.05);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);}.well
blockquote{border-color:#ddd;border-color:rgba(0, 0, 0,
0.15);}\r\n.well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;}\r\n.well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}\r\n\r\ntable.dl-table
td{line-height:20px;}\r\ntd.invoice_label{text-align:right;font-weight:bold;\r\nwidth:120px;
padding-right:20px;line-height:20px;}', '<div
style="font-family:Helvetica; font-size:12px;"  >\r\n 
<table width="100%">\r\n    <tr>\r\n      <td
width="50%"  valign="top"><img
src="http://www.joomlathat.com/images/joomlathat3.png"
/><br />\r\n        <br />\r\n        <table
class="dl-table">\r\n          <tbody>\r\n             
<tr>\r\n                <td class="invoice_label"
valign="top">[[FROM]]</td>\r\n                <td
valign="top"><strong>{from_name}</strong></td>\r\n
             </tr>\r\n              <tr>\r\n               
<td class="invoice_label"
valign="top">[[ADDRESS]]</td>\r\n                <td
valign="top"><address>\r\n                 
{from_address}\r\n                  </address></td>\r\n        
     </tr>\r\n              <tr>\r\n                <td
class="invoice_label"
valign="top">[[EMAIL]]</td>\r\n                <td
valign="top">{from_email}</td>\r\n             
</tr>\r\n              <tr>\r\n                <td
class="invoice_label"
valign="top">[[FISCAL_NUMBER]]</td>\r\n               
<td valign="top">{from_num}</td>\r\n             
</tr>\r\n            </tbody>\r\n       
</table></td>\r\n      <td width="50%" 
valign="top"><div class="well well-small">\r\n
         <table class="dl-table">\r\n             
<tbody>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[QUOTE_NUM]]</td>\r\n                 
<td valign="top">{invoice_num}</td>\r\n              
 </tr>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[QUOTE_DATE]]</td>\r\n                 
<td valign="top">{invoice_date}</td>\r\n             
  </tr>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[DUE_DATE]]</td>\r\n                 
<td valign="top">{invoice_duedate}</td>\r\n          
     </tr>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[QUOTE_TOTAL]]</td>\r\n                 
<td valign="top">{total}</td>\r\n               
</tr>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[STATUS]]</td>\r\n                  <td
valign="top">{status}</td>\r\n               
</tr>\r\n              </tbody>\r\n           
</table>\r\n        </div>\r\n        <div class="well
well-small">\r\n          <table
class="dl-table">\r\n            <tbody>\r\n            
   <tr>\r\n                  <td class="invoice_label"
valign="top">[[BILL_TO]]</td>\r\n                 
<td
valign="top"><strong>{to_name}</strong></td>\r\n
               </tr>\r\n                <tr>\r\n               
  <td class="invoice_label"
valign="top">[[ADDRESS]]</td>\r\n                 
<td valign="top"><address>\r\n                   
{to_company} <br />\r\n                    {to_address} <br
/>\r\n                    {to_zipcode} {to_city} <br />\r\n       
            {to_state} {to_country}\r\n                   
</address></td>\r\n                </tr>\r\n             
  <tr>\r\n                  <td class="invoice_label"
valign="top">[[EMAIL]]</td>\r\n                  <td
valign="top">{to_email}</td>\r\n               
</tr>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[VATID]]</td>\r\n                  <td
valign="top">{to_vatid}</td>\r\n               
</tr>\r\n                <tr>\r\n                  <td
class="invoice_label"
valign="top">[[PHONE]]</td>\r\n                  <td
valign="top">{to_phone}</td>\r\n               
</tr>\r\n              </tbody>\r\n          </table>\r\n
       </div></td>\r\n    </tr>\r\n  </table>\r\n 
<h2 class="invoice_header">[[ITEMS]]</h2>\r\n 
<table width="100%" class="table
table-striped">\r\n    <thead>\r\n      <tr>\r\n       
<th align="left">[[SKU]]</th>\r\n        <th
align="left">[[DESCRIPTION]]</th>\r\n        <th
style="text-align: right;"
align="right">[[UNIT_COST]]</th>\r\n        <th
style="text-align: right;"
align="right">[[QUANTITY]]</th>\r\n        <th
style="text-align: right;"
align="right">[[DISCOUNT]]</th>\r\n        <th
style="text-align: right;"
align="right">[[TAX]]</th>\r\n        <th
style="text-align: right;"
align="right">[[PRICE]]</th>\r\n      </tr>\r\n   
</thead>\r\n    <tbody>\r\n      <!--ITEMS-->\r\n     
<tr>\r\n        <td>{sku}</td>\r\n       
<td><strong>{name}</strong><br />\r\n         
{desc}</td>\r\n        <td style="text-align: right;"
align="right">{value}</td>\r\n        <td
style="text-align: right;"
align="right">{amount}</td>\r\n        <td
style="text-align: right;"
align="right">{discount}</td>\r\n        <td
style="text-align: right;"
align="right">{tax}</td>\r\n        <td
style="text-align: right;"
align="right">{item_total}</td>\r\n      </tr>\r\n
     <!--/ITEMS-->\r\n    </tbody>\r\n    <tfoot>\r\n    
 <tr>\r\n        <td colspan="4"> </td>\r\n    
   <td style="text-align: right;" colspan="2"
align="right">[[DISCOUNT]]</td>\r\n        <td
style="text-align: right;"
align="right">{discount}</td>\r\n      </tr>\r\n  
   <tr>\r\n        <td colspan="4"> </td>\r\n  
     <td style="text-align: right;" colspan="2"
align="right">[[SUBTOTAL]]</td>\r\n        <td
style="text-align: right;"
align="right">{subtotal}</td>\r\n      </tr>\r\n  
   <!--TAXES-->\r\n      <tr>\r\n        <td
colspan="4"> </td>\r\n        <td
style="text-align: right;" colspan="2"
align="right">{name}</td>\r\n        <td
style="text-align: right;"
align="right">{value}</td>\r\n      </tr>\r\n     
<!--/TAXES-->\r\n      <tr>\r\n        <td
colspan="4"> </td>\r\n        <td
style="text-align: right;" colspan="2"
align="right"><strong>[[TOTAL]]</strong></td>\r\n
       <td style="text-align: right;"
align="right"><strong>{total}</strong></td>\r\n
     </tr>\r\n    </tfoot>\r\n  </table>\r\n  <div
style="padding: 2px;">[[NOTES]]</div>\r\n  <div
style="border-top:1px solid #000; padding:2px; "
class="muted"><small>{notes}</small></div>\r\n</div>');
updates/1.4.2.sql000064400000000116151163543330007376 0ustar00ALTER TABLE 
`#__invoices_templates` ADD `company_logo` varchar(255) NOT
NULL;updates/2.0.0.sql000064400000000140151163543330007366 0ustar00ALTER
TABLE `#__invoices_invoices` ADD `external_ref` VARCHAR(255) NOT NULL AFTER
`external_id`;updates/2.1.0.sql000064400000002070151163543330007373
0ustar00CREATE TABLE IF NOT EXISTS `#__invoices_tax_invoice` (
`id` int(11) NOT NULL AUTO_INCREMENT,
  `reference_id` int(11) NOT NULL,
  `tax_id` int(11) NOT NULL,
  `type` tinyint(1) NOT NULL DEFAULT '1',
  `value` decimal(10,2) NOT NULL,
  `active` tinyint(1) NOT NULL,
  `computed_value` decimal(12,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `reference_id` (`reference_id`),
  KEY `tax_id` (`tax_id`)
) ENGINE=MyISAM ;

ALTER TABLE `#__invoices_items` ADD `tax_id` INT(11) NOT NULL AFTER `tax`;

ALTER TABLE `#__invoices_items` ADD INDEX(`tax_id`);

ALTER TABLE `#__invoices_taxes` ADD `calculate_on` TINYINT(1) NOT NULL ;

ALTER TABLE `#__invoices_invoices` ADD `computed_subtotal` DECIMAL(12,4)
NOT NULL AFTER `computed_total`, ADD `computed` TEXT NOT NULL AFTER
`computed_subtotal`;

ALTER TABLE `#__invoices_payments` ADD INDEX(`invoice_id`);

ALTER TABLE `#__invoices_invoices` ADD INDEX( `created_by`);

ALTER TABLE `#__invoices_invoices` ADD INDEX( `user_id`);

ALTER TABLE `#__invoices_invoices` ADD INDEX( `template_id`);

ALTER TABLE `#__invoices_invoices` ADD INDEX(
`type`);updates/3.0.0.sql000064400000103637151163543330007406 0ustar00ALTER
TABLE `#__invoices_templates` ADD `content_email` TEXT NOT NULL;

ALTER TABLE `#__invoices_invoices` ADD `currency_id` INT(11) NOT NULL;

ALTER TABLE `#__invoices_contacts` ADD `params` TEXT NOT NULL;

ALTER TABLE `#__invoices_tax_invoice` CHANGE `value` `value` DECIMAL(12,4)
NOT NULL;

--
-- Estructura de la taula `jos_invoices_currencies`
--

CREATE TABLE IF NOT EXISTS `#__invoices_currencies` (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `currency_symbol` varchar(255) NOT NULL,
  `currency_code` varchar(255) NOT NULL,
  `currency_format` char(10) NOT NULL DEFAULT '%i',
  `currency_name` varchar(255) NOT NULL,
  `currency_published` tinyint(4) NOT NULL DEFAULT '0',
  `currency_rate` decimal(16,5) NOT NULL DEFAULT '1.00000',
  `currency_locale` text NOT NULL,
  `currency_displayed` tinyint(4) NOT NULL DEFAULT '0',
  `currency_percent_fee` decimal(4,2) NOT NULL DEFAULT '0.00',
  `currency_modified` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `symbol_before` varchar(15) NOT NULL,
  `symbol_after` varchar(15) NOT NULL,
  `decimals` int(1) NOT NULL,
  `decpoint` varchar(7) NOT NULL,
  `thousands` varchar(7) NOT NULL,
  `negative_position` int(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `currency_code` (`currency_code`)
) ENGINE=MyISAM;

--
-- Bolcant dades de la taula `jos_invoices_currencies`
--

INSERT INTO `#__invoices_currencies` (`id`, `currency_symbol`,
`currency_code`, `currency_format`, `currency_name`, `currency_published`,
`currency_rate`, `currency_locale`, `currency_displayed`,
`currency_percent_fee`, `currency_modified`, `symbol_before`,
`symbol_after`, `decimals`, `decpoint`, `thousands`, `negative_position`)
VALUES
(1, '€', 'EUR', '%n', 'Euro', 1,
'1.00000',
'a:13:{s:17:\"mon_decimal_point\";s:1:\",\";s:17:\"mon_thousands_sep\";s:1:\".\";s:12:\"mon_grouping\";s:1:\"3\";s:13:\"positive_sign\";s:0:\"\";s:13:\"negative_sign\";s:1:\"-\";s:15:\"int_frac_digits\";i:2;s:11:\"frac_digits\";i:2;s:13:\"p_cs_precedes\";i:0;s:14:\"p_sep_by_space\";i:1;s:13:\"n_cs_precedes\";i:0;s:14:\"n_sep_by_space\";i:1;s:11:\"p_sign_posn\";i:1;s:11:\"n_sign_posn\";i:1;}',
1, '0.00', 1467971879, '', '€', 2,
',', '.', 0),
(2, '$', 'USD', '%n', 'United States
dollar', 1, '1.00000',
'a:13:{s:17:\"mon_decimal_point\";s:1:\".\";s:17:\"mon_thousands_sep\";s:1:\",\";s:12:\"mon_grouping\";s:1:\"3\";s:13:\"positive_sign\";s:0:\"\";s:13:\"negative_sign\";s:1:\"-\";s:15:\"int_frac_digits\";i:2;s:11:\"frac_digits\";i:2;s:13:\"p_cs_precedes\";i:1;s:14:\"p_sep_by_space\";i:0;s:13:\"n_cs_precedes\";i:1;s:14:\"n_sep_by_space\";i:0;s:11:\"p_sign_posn\";i:4;s:11:\"n_sign_posn\";i:4;}',
1, '0.00', 0, '$', '', 2, '.',
',', 0),
(3, '¥', 'JPY', '%n', 'Japanese
yen', 1, '1.00000',
'a:13:{s:17:\"mon_decimal_point\";s:1:\",\";s:17:\"mon_thousands_sep\";s:1:\"
\";s:12:\"mon_grouping\";s:1:\"3\";s:13:\"positive_sign\";s:0:\"\";s:13:\"negative_sign\";s:1:\"-\";s:15:\"int_frac_digits\";i:0;s:11:\"frac_digits\";i:0;s:13:\"p_cs_precedes\";i:0;s:14:\"p_sep_by_space\";i:1;s:13:\"n_cs_precedes\";i:0;s:14:\"n_sep_by_space\";i:1;s:11:\"p_sign_posn\";i:1;s:11:\"n_sign_posn\";i:1;}',
0, '0.00', 0, '¥', '', 2, '.',
',', 0),
(4, '£', 'GBP', '%n', 'British
pound', 1, '1.00000',
'a:13:{s:17:\"mon_decimal_point\";s:1:\".\";s:17:\"mon_thousands_sep\";s:1:\",\";s:12:\"mon_grouping\";s:1:\"3\";s:13:\"positive_sign\";s:0:\"\";s:13:\"negative_sign\";s:1:\"-\";s:15:\"int_frac_digits\";i:2;s:11:\"frac_digits\";i:2;s:13:\"p_cs_precedes\";i:1;s:14:\"p_sep_by_space\";i:1;s:13:\"n_cs_precedes\";i:1;s:14:\"n_sep_by_space\";i:1;s:11:\"p_sign_posn\";i:1;s:11:\"n_sign_posn\";i:1;}',
0, '0.00', 0, '£', '', 2, ',',
'.', 1),
(5, '$', 'CAD', '%i', 'Canadian
dollar', 0, '1.00000',
'a:13:{s:17:\"mon_decimal_point\";s:1:\".\";s:17:\"mon_thousands_sep\";s:1:\",\";s:12:\"mon_grouping\";s:1:\"3\";s:13:\"positive_sign\";s:0:\"\";s:13:\"negative_sign\";s:1:\"-\";s:15:\"int_frac_digits\";i:2;s:11:\"frac_digits\";i:2;s:13:\"p_cs_precedes\";i:1;s:14:\"p_sep_by_space\";i:0;s:13:\"n_cs_precedes\";i:1;s:14:\"n_sep_by_space\";i:0;s:11:\"p_sign_posn\";i:4;s:11:\"n_sign_posn\";i:4;}',
0, '0.00', 0, '$', 'CAD', 2, '.',
',', 0),
(6, '$', 'AUD', '%i', 'Australian
dollar', 0, '1.00000',
'a:13:{s:17:\"mon_decimal_point\";s:1:\".\";s:17:\"mon_thousands_sep\";s:1:\",\";s:12:\"mon_grouping\";s:1:\"3\";s:13:\"positive_sign\";s:0:\"\";s:13:\"negative_sign\";s:1:\"-\";s:15:\"int_frac_digits\";i:2;s:11:\"frac_digits\";i:2;s:13:\"p_cs_precedes\";i:1;s:14:\"p_sep_by_space\";i:0;s:13:\"n_cs_precedes\";i:1;s:14:\"n_sep_by_space\";i:0;s:11:\"p_sign_posn\";i:4;s:11:\"n_sign_posn\";i:4;}',
0, '0.00', 0, '$', 'AUD', 2, '.',
',', 0),
(7, '$', 'NZD', '%i', 'New Zealand
dollar', 0, '1.00000',
'a:13:{s:17:\"mon_decimal_point\";s:1:\",\";s:17:\"mon_thousands_sep\";s:1:\".\";s:12:\"mon_grouping\";s:1:\"3\";s:13:\"positive_sign\";s:0:\"\";s:13:\"negative_sign\";s:1:\"-\";s:15:\"int_frac_digits\";i:2;s:11:\"frac_digits\";i:2;s:13:\"p_cs_precedes\";i:1;s:14:\"p_sep_by_space\";i:0;s:13:\"n_cs_precedes\";i:1;s:14:\"n_sep_by_space\";i:0;s:11:\"p_sign_posn\";i:4;s:11:\"n_sign_posn\";i:4;}',
0, '0.00', 0, '$', 'NZD', 2, '.',
',', 0),
(8, '؋', 'AFN', '%i', 'Afghan
afghani', 0, '1.00000', '', 0, '0.00',
0, '؋', 'AFN', 2, '.', ',', 0),
(9, 'Lek', 'ALL', '%i', 'Albanian
lek', 0, '1.00000', '', 0, '0.00', 0,
'Lek', 'ALL', 2, '.', ',', 0),
(10, 'د.ج', 'DZD', '%i', 'Algerian
dinar', 0, '1.00000', '', 0, '0.00', 0,
'د.ج', 'DZD', 2, '.', ',', 0),
(11, 'Kz ', 'AOA', '%i', 'Angolan
kwanza', 0, '1.00000', '', 0, '0.00', 0,
'Kz ', 'AOA', 2, '.', ',', 0),
(12, '$', 'ARS', '%i', 'Argentine
peso', 0, '1.00000', '', 0, '0.00', 0,
'$', 'ARS', 2, '.', ',', 0),
(13, 'դր.', 'AMD', '%i', 'Armenian
dram', 0, '1.00000', '', 0, '0.00', 0,
'դր.', 'AMD', 2, '.', ',', 0),
(14, 'ƒ', 'AWG', '%i', 'Aruban
florin', 0, '1.00000', '', 0, '0.00', 0,
'ƒ', 'AWG', 2, '.', ',', 0),
(15, 'ман', 'AZN', '%i', 'Azerbaijani
manat', 0, '1.00000', '', 0, '0.00', 0,
'ман', 'AZN', 2, '.', ',', 0),
(16, '$', 'BSD', '%i', 'Bahamian
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'BSD', 2, '.', ',', 0),
(17, 'ب.د', 'BHD', '%i', 'Bahraini
dinar', 0, '1.00000', '', 0, '0.00', 0,
'ب.د', 'BHD', 2, '.', ',', 0),
(18, '৳', 'BDT', '%i', 'Bangladeshi
taka', 0, '1.00000', '', 0, '0.00', 0,
'৳', 'BDT', 2, '.', ',', 0),
(19, '$', 'BBD', '%i', 'Barbadian
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'BBD', 2, '.', ',', 0),
(20, 'p.', 'BYR', '%i', 'Belarusian
ruble', 0, '1.00000', '', 0, '0.00', 0,
'p.', 'BYR', 2, '.', ',', 0),
(21, 'BZ$', 'BZD', '%i', 'Belize
dollar', 0, '1.00000', '', 0, '0.00', 0,
'BZ$', 'BZD', 2, '.', ',', 0),
(22, '$', 'BMD', '%i', 'Bermudian
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'BMD', 2, '.', ',', 0),
(23, 'BTN', 'BTN', '%i', 'Bhutanese
ngultrum', 0, '1.00000', '', 0, '0.00',
0, 'BTN', 'BTN', 2, '.', ',', 0),
(24, '$b', 'BOB', '%i', 'Bolivian
boliviano', 0, '1.00000', '', 0, '0.00',
0, '$b', 'BOB', 2, '.', ',', 0),
(25, 'XBA', 'XBA', '%i', 'Bond
Markets', 0, '1.00000', '', 0, '0.00',
0, 'XBA', 'XBA', 2, '.', ',', 0),
(26, 'KM', 'BAM', '%i', 'Bosnia and
Herzegovina convert', 0, '1.00000', '', 0,
'0.00', 0, 'KM', 'BAM', 2, '.',
',', 0),
(27, 'P', 'BWP', '%i', 'Botswana
pula', 0, '1.00000', '', 0, '0.00', 0,
'P', 'BWP', 2, '.', ',', 0),
(28, 'R$', 'BRL', '%i', 'Brazilian
real', 0, '1.00000', '', 0, '0.00', 0,
'R$', 'BRL', 2, '.', ',', 0),
(29, '$', 'BND', '%i', 'Brunei
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'BND', 2, '.', ',', 0),
(30, 'лв', 'BGN', '%i', 'Bulgarian
lev', 0, '1.00000', '', 0, '0.00', 0,
'лв', 'BGN', 2, '.', ',', 0),
(31, 'Fr ', 'BIF', '%i', 'Burundian
franc', 0, '1.00000', '', 0, '0.00', 0,
'Fr ', 'BIF', 2, '.', ',', 0),
(32, '៛', 'KHR', '%i', 'Cambodian
riel', 0, '1.00000', '', 0, '0.00', 0,
'៛', 'KHR', 2, '.', ',', 0),
(33, '$', 'CVE', '%i', 'Cape Verdean
escudo', 0, '1.00000', '', 0, '0.00', 0,
'$', 'CVE', 2, '.', ',', 0),
(34, '$', 'KYD', '%i', 'Cayman Islands
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'KYD', 2, '.', ',', 0),
(35, 'Fr ', 'XAF', '%i', 'Central
African CFA franc', 0, '1.00000', '', 0,
'0.00', 0, 'Fr ', 'XAF', 2, '.',
',', 0),
(36, 'Fr ', 'XPF', '%i', 'CFP
franc', 0, '1.00000', '', 0, '0.00', 0,
'Fr ', 'XPF', 2, '.', ',', 0),
(37, '$', 'CLP', '%i', 'Chilean
peso', 0, '1.00000', '', 0, '0.00', 0,
'$', 'CLP', 2, '.', ',', 0),
(38, '元', 'CNY', '%i', 'Chinese
renminbi yuan', 0, '1.00000', '', 0,
'0.00', 0, '元', 'CNY', 2, '.',
',', 0),
(39, 'XTS', 'XTS', '%i', 'Codes
specif', 0, '1.00000', '', 0, '0.00', 0,
'XTS', 'XTS', 2, '.', ',', 0),
(40, '$', 'COP', '%i', 'Colombian
peso', 0, '1.00000', '', 0, '0.00', 0,
'$', 'COP', 2, '.', ',', 0),
(41, 'Fr ', 'KMF', '%i', 'Comorian
franc', 0, '1.00000', '', 0, '0.00', 0,
'Fr ', 'KMF', 2, '.', ',', 0),
(42, 'Fr ', 'CDF', '%i', 'Congolese
franc', 0, '1.00000', '', 0, '0.00', 0,
'Fr ', 'CDF', 2, '.', ',', 0),
(43, '₡', 'CRC', '%i', 'Costa Rican
colón', 0, '1.00000', '', 0, '0.00', 0,
'₡', 'CRC', 2, '.', ',', 0),
(44, 'kn', 'HRK', '%i', 'Croatian
kuna', 0, '1.00000', '', 0, '0.00', 0,
'kn', 'HRK', 2, '.', ',', 0),
(45, '₱', 'CUP', '%i', 'Cuban
peso', 0, '1.00000', '', 0, '0.00', 0,
'₱', 'CUP', 2, '.', ',', 0),
(46, 'Kč', 'CZK', '%i', 'Czech
koruna', 0, '1.00000', '', 0, '0.00', 0,
'Kč', 'CZK', 2, '.', ',', 0),
(47, 'kr', 'DKK', '%i', 'Danish
krone', 0, '1.00000', '', 0, '0.00', 0,
'kr', 'DKK', 2, '.', ',', 0),
(48, 'Fr ', 'DJF', '%i', 'Djiboutian
franc', 0, '1.00000', '', 0, '0.00', 0,
'Fr ', 'DJF', 2, '.', ',', 0),
(49, 'RD$', 'DOP', '%i', 'Dominican
peso', 0, '1.00000', '', 0, '0.00', 0,
'RD$', 'DOP', 2, '.', ',', 0),
(50, '$', 'XCD', '%i', 'East Caribbean
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'XCD', 2, '.', ',', 0),
(51, '£', 'EGP', '%i', 'Egyptian
pound', 0, '1.00000', '', 0, '0.00', 0,
'£', 'EGP', 2, '.', ',', 0),
(52, 'Nfk ', 'ERN', '%i', 'Eritrean
nakfa', 0, '1.00000', '', 0, '0.00', 0,
'Nfk ', 'ERN', 2, '.', ',', 0),
(53, 'kr', 'EEK', '%i', 'Estonian
kroon', 0, '1.00000', '', 0, '0.00', 0,
'kr', 'EEK', 2, '.', ',', 0),
(54, 'ETB', 'ETB', '%i', 'Ethiopian
birr', 0, '1.00000', '', 0, '0.00', 0,
'ETB', 'ETB', 2, '.', ',', 0),
(55, 'XBB', 'XBB', '%i', 'European
Mon', 0, '1.00000', '', 0, '0.00', 0,
'XBB', 'XBB', 2, '.', ',', 0),
(56, 'XBD', 'XBD', '%i', 'European
Uni', 0, '1.00000', '', 0, '0.00', 0,
'XBD', 'XBD', 2, '.', ',', 0),
(57, 'XBC', 'XBC', '%i', 'European
Uni', 0, '1.00000', '', 0, '0.00', 0,
'XBC', 'XBC', 2, '.', ',', 0),
(58, '£', 'FKP', '%i', 'Falkland
pound', 0, '1.00000', '', 0, '0.00', 0,
'£', 'FKP', 2, '.', ',', 0),
(59, '$', 'FJD', '%i', 'Fijian
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'FJD', 2, '.', ',', 0),
(60, 'D ', 'GMD', '%i', 'Gambian
dalasi', 0, '1.00000', '', 0, '0.00', 0,
'D ', 'GMD', 2, '.', ',', 0),
(61, 'ლ', 'GEL', '%i', 'Georgian
lari', 0, '1.00000', '', 0, '0.00', 0,
'ლ', 'GEL', 2, '.', ',', 0),
(62, '₵', 'GHS', '%i', 'Ghanaian
cedi', 0, '1.00000', '', 0, '0.00', 0,
'₵', 'GHS', 2, '.', ',', 0),
(63, '£', 'GIP', '%i', 'Gibraltar
pound', 0, '1.00000', '', 0, '0.00', 0,
'£', 'GIP', 2, '.', ',', 0),
(64, 'Gold', 'XAU', '%i', 'Gold',
0, '1.00000', '', 0, '0.00', 0,
'Gold', 'XAU', 2, '.', ',', 0),
(65, 'Q', 'GTQ', '%i', 'Guatemalan
quetzal', 0, '1.00000', '', 0, '0.00',
0, 'Q', 'GTQ', 2, '.', ',', 0),
(66, 'GWP', 'GWP', '%i',
'Guinea-Bissa', 0, '1.00000', '', 0,
'0.00', 0, 'GWP', 'GWP', 2, '.',
',', 0),
(67, 'Fr ', 'GNF', '%i', 'Guinean
franc', 0, '1.00000', '', 0, '0.00', 0,
'Fr ', 'GNF', 2, '.', ',', 0),
(68, '$', 'GYD', '%i', 'Guyanese
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'GYD', 2, '.', ',', 0),
(69, 'G ', 'HTG', '%i', 'Haitian
gourde', 0, '1.00000', '', 0, '0.00', 0,
'G ', 'HTG', 2, '.', ',', 0),
(70, 'L', 'HNL', '%i', 'Honduran
lempira', 0, '1.00000', '', 0, '0.00',
0, 'L', 'HNL', 2, '.', ',', 0),
(71, '元', 'HKD', '%i', 'Hong Kong
dollar', 0, '1.00000', '', 0, '0.00', 0,
'元', 'HKD', 2, '.', ',', 0),
(72, 'Ft', 'HUF', '%i', 'Hungarian
forint', 0, '1.00000', '', 0, '0.00', 0,
'Ft', 'HUF', 2, '.', ',', 0),
(73, 'kr', 'ISK', '%i', 'Icelandic
króna', 0, '1.00000', '', 0, '0.00', 0,
'kr', 'ISK', 2, '.', ',', 0),
(74, '₨', 'INR', '%i', 'Indian
rupee', 0, '1.00000', '', 0, '0.00', 0,
'₨', 'INR', 2, '.', ',', 0),
(75, 'Rp', 'IDR', '%i', 'Indonesian
rupiah', 0, '1.00000', '', 0, '0.00', 0,
'Rp', 'IDR', 2, '.', ',', 0),
(76, '﷼', 'IRR', '%i', 'Iranian
rial', 0, '1.00000', '', 0, '0.00', 0,
'﷼', 'IRR', 2, '.', ',', 0),
(77, 'ع.د', 'IQD', '%i', 'Iraqi
dinar', 0, '1.00000', '', 0, '0.00', 0,
'ع.د', 'IQD', 2, '.', ',', 0),
(78, '₪', 'ILS', '%n', 'Israeli new
sheqel', 0, '1.00000',
'a:13:{s:17:\"mon_decimal_point\";s:1:\",\";s:17:\"mon_thousands_sep\";s:0:\"\";s:12:\"mon_grouping\";s:1:\"3\";s:13:\"positive_sign\";s:0:\"\";s:13:\"negative_sign\";s:1:\"-\";s:15:\"int_frac_digits\";i:0;s:11:\"frac_digits\";i:0;s:13:\"p_cs_precedes\";i:0;s:14:\"p_sep_by_space\";i:1;s:13:\"n_cs_precedes\";i:0;s:14:\"n_sep_by_space\";i:1;s:11:\"p_sign_posn\";i:1;s:11:\"n_sign_posn\";i:1;}',
0, '0.00', 0, '₪', 'ILS', 2, '.',
',', 0),
(79, 'J$', 'JMD', '%i', 'Jamaican
dollar', 0, '1.00000', '', 0, '0.00', 0,
'J$', 'JMD', 2, '.', ',', 0),
(80, 'د.ا', 'JOD', '%i', 'Jordanian
dinar', 0, '1.00000', '', 0, '0.00', 0,
'د.ا', 'JOD', 2, '.', ',', 0),
(81, 'лв', 'KZT', '%i', 'Kazakhstani
tenge', 0, '1.00000', '', 0, '0.00', 0,
'лв', 'KZT', 2, '.', ',', 0),
(82, 'Sh ', 'KES', '%i', 'Kenyan
shilling', 0, '1.00000', '', 0, '0.00',
0, 'Sh ', 'KES', 2, '.', ',', 0),
(83, 'د.ك', 'KWD', '%i', 'Kuwaiti
dinar', 0, '1.00000', '', 0, '0.00', 0,
'د.ك', 'KWD', 2, '.', ',', 0),
(84, 'лв', 'KGS', '%i', 'Kyrgyzstani
som', 0, '1.00000', '', 0, '0.00', 0,
'лв', 'KGS', 2, '.', ',', 0),
(85, '₭', 'LAK', '%i', 'Lao kip',
0, '1.00000', '', 0, '0.00', 0,
'₭', 'LAK', 2, '.', ',', 0),
(86, 'Ls', 'LVL', '%i', 'Latvian
lats', 0, '1.00000', '', 0, '0.00', 0,
'Ls', 'LVL', 2, '.', ',', 0),
(87, '£', 'LBP', '%i', 'Lebanese
pound', 0, '1.00000', '', 0, '0.00', 0,
'£', 'LBP', 2, '.', ',', 0),
(88, 'L ', 'LSL', '%i', 'Lesotho
loti', 0, '1.00000', '', 0, '0.00', 0,
'L ', 'LSL', 2, '.', ',', 0),
(89, '$', 'LRD', '%i', 'Liberian
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'LRD', 2, '.', ',', 0),
(90, 'ل.د', 'LYD', '%i', 'Libyan
dinar', 0, '1.00000', '', 0, '0.00', 0,
'ل.د', 'LYD', 2, '.', ',', 0),
(91, 'Lt', 'LTL', '%i', 'Lithuanian
litas', 0, '1.00000', '', 0, '0.00', 0,
'Lt', 'LTL', 2, '.', ',', 0),
(92, 'P ', 'MOP', '%i', 'Macanese
pataca', 0, '1.00000', '', 0, '0.00', 0,
'P ', 'MOP', 2, '.', ',', 0),
(93, 'ден', 'MKD', '%i', 'Macedonian
denar', 0, '1.00000', '', 0, '0.00', 0,
'ден', 'MKD', 2, '.', ',', 0),
(94, 'MGA', 'MGA', '%i', 'Malagasy
ariary', 0, '1.00000', '', 0, '0.00', 0,
'MGA', 'MGA', 2, '.', ',', 0),
(95, 'MK ', 'MWK', '%i', 'Malawian
kwacha', 0, '1.00000', '', 0, '0.00', 0,
'MK ', 'MWK', 2, '.', ',', 0),
(96, 'RM', 'MYR', '%i', 'Malaysian
ringgit', 0, '1.00000', '', 0, '0.00',
0, 'RM', 'MYR', 2, '.', ',', 0),
(97, 'ރ.', 'MVR', '%i', 'Maldivian
rufiyaa', 0, '1.00000', '', 0, '0.00',
0, 'ރ.', 'MVR', 2, '.', ',', 0),
(98, 'UM ', 'MRO', '%i', 'Mauritanian
ouguiya', 0, '1.00000', '', 0, '0.00',
0, 'UM ', 'MRO', 2, '.', ',', 0),
(99, '₨', 'MUR', '%i', 'Mauritian
rupee', 0, '1.00000', '', 0, '0.00', 0,
'₨', 'MUR', 2, '.', ',', 0),
(100, '$', 'MXN', '%i', 'Mexican
peso', 0, '1.00000', '', 0, '0.00', 0,
'$', 'MXN', 2, '.', ',', 0),
(101, 'MXV', 'MXV', '%i', 'Mexican
Unid', 0, '1.00000', '', 0, '0.00', 0,
'MXV', 'MXV', 2, '.', ',', 0),
(102, 'L ', 'MDL', '%i', 'Moldovan
leu', 0, '1.00000', '', 0, '0.00', 0,
'L ', 'MDL', 2, '.', ',', 0),
(103, '₮', 'MNT', '%i', 'Mongolian
tögrög', 0, '1.00000', '', 0, '0.00',
0, '₮', 'MNT', 2, '.', ',', 0),
(104, 'د.م.', 'MAD', '%i', 'Moroccan
dirham', 0, '1.00000', '', 0, '0.00', 0,
'د.م.', 'MAD', 2, '.', ',', 0),
(105, 'MT', 'MZN', '%i', 'Mozambican
metical', 0, '1.00000', '', 0, '0.00',
0, 'MT', 'MZN', 2, '.', ',', 0),
(106, 'BOV', 'BOV', '%i', 'Mvdol',
0, '1.00000', '', 0, '0.00', 0,
'BOV', 'BOV', 2, '.', ',', 0),
(107, 'K ', 'MMK', '%i', 'Myanmar
kyat', 0, '1.00000', '', 0, '0.00', 0,
'K ', 'MMK', 2, '.', ',', 0),
(108, '$', 'NAD', '%i', 'Namibian
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'NAD', 2, '.', ',', 0),
(109, '₨', 'NPR', '%i', 'Nepalese
rupee', 0, '1.00000', '', 0, '0.00', 0,
'₨', 'NPR', 2, '.', ',', 0),
(110, 'ƒ', 'ANG', '%i', 'Netherlands
Antillean gulden', 0, '1.00000', '', 0,
'0.00', 0, 'ƒ', 'ANG', 2, '.',
',', 0),
(111, 'NT$', 'TWD', '%i', 'New Taiwan
dollar', 0, '1.00000', '', 0, '0.00', 0,
'NT$', 'TWD', 2, '.', ',', 0),
(112, 'C$', 'NIO', '%i', 'Nicaraguan
córdoba', 0, '1.00000', '', 0, '0.00',
0, 'C$', 'NIO', 2, '.', ',', 0),
(113, '₦', 'NGN', '%i', 'Nigerian
naira', 0, '1.00000', '', 0, '0.00', 0,
'₦', 'NGN', 2, '.', ',', 0),
(114, '₩', 'KPW', '%i', 'North Korean
won', 0, '1.00000', '', 0, '0.00', 0,
'₩', 'KPW', 2, '.', ',', 0),
(115, 'kr', 'NOK', '%i', 'Norwegian
krone', 0, '1.00000', '', 0, '0.00', 0,
'kr', 'NOK', 2, '.', ',', 0),
(116, '﷼', 'OMR', '%i', 'Omani
rial', 0, '1.00000', '', 0, '0.00', 0,
'﷼', 'OMR', 2, '.', ',', 0),
(117, '₨', 'PKR', '%i', 'Pakistani
rupee', 0, '1.00000', '', 0, '0.00', 0,
'₨', 'PKR', 2, '.', ',', 0),
(118, 'XPD', 'XPD', '%i',
'Palladium', 0, '1.00000', '', 0,
'0.00', 0, 'XPD', 'XPD', 2, '.',
',', 0),
(119, 'B/.', 'PAB', '%i', 'Panamanian
balboa', 0, '1.00000', '', 0, '0.00', 0,
'B/.', 'PAB', 2, '.', ',', 0),
(120, 'K ', 'PGK', '%i', 'Papua New
Guinean kina', 0, '1.00000', '', 0,
'0.00', 0, 'K ', 'PGK', 2, '.',
',', 0),
(121, '₲', 'PYG', '%i', 'Paraguayan
guaraní', 0, '1.00000', '', 0, '0.00',
0, '₲', 'PYG', 2, '.', ',', 0),
(122, 'S/.', 'PEN', '%i', 'Peruvian
nuevo sol', 0, '1.00000', '', 0, '0.00',
0, 'S/.', 'PEN', 2, '.', ',', 0),
(123, '₱', 'PHP', '%i', 'Philippine
peso', 0, '1.00000', '', 0, '0.00', 0,
'₱', 'PHP', 2, '.', ',', 0),
(124, 'XPT', 'XPT', '%i',
'Platinum', 0, '1.00000', '', 0,
'0.00', 0, 'XPT', 'XPT', 2, '.',
',', 0),
(125, 'zł', 'PLN', '%i', 'Polish
Złoty', 0, '1.00000', '', 0, '0.00', 0,
'zł', 'PLN', 2, '.', ',', 0),
(126, '﷼', 'QAR', '%i', 'Qatari
riyal', 0, '1.00000', '', 0, '0.00', 0,
'﷼', 'QAR', 2, '.', ',', 0),
(127, 'lei', 'RON', '%i', 'Romanian
leu', 0, '1.00000', '', 0, '0.00', 0,
'lei', 'RON', 2, '.', ',', 0),
(128, 'руб', 'RUB', '%i', 'Russian
ruble', 0, '1.00000', '', 0, '0.00', 0,
'руб', 'RUB', 2, '.', ',', 0),
(129, 'Fr ', 'RWF', '%i', 'Rwandan
franc', 0, '1.00000', '', 0, '0.00', 0,
'Fr ', 'RWF', 2, '.', ',', 0),
(130, '£', 'SHP', '%i', 'Saint Helenian
pound', 0, '1.00000', '', 0, '0.00', 0,
'£', 'SHP', 2, '.', ',', 0),
(131, '$', 'SVC', '%i', 'Salvadoran
colón', 0, '1.00000', '', 0, '0.00', 0,
'$', 'SVC', 2, '.', ',', 0),
(132, 'T ', 'WST', '%i', 'Samoan
tala', 0, '1.00000', '', 0, '0.00', 0,
'T ', 'WST', 2, '.', ',', 0),
(133, 'Db ', 'STD', '%i', 'São Tomé
and Príncipe dobra', 0, '1.00000', '', 0,
'0.00', 0, 'Db ', 'STD', 2, '.',
',', 0),
(134, '﷼', 'SAR', '%i', 'Saudi
riyal', 0, '1.00000', '', 0, '0.00', 0,
'﷼', 'SAR', 2, '.', ',', 0),
(135, 'XDR', 'XDR', '%i', 'SDR', 0,
'1.00000', '', 0, '0.00', 0, 'XDR',
'XDR', 2, '.', ',', 0),
(136, 'Дин.', 'RSD', '%i', 'Serbian
dinar', 0, '1.00000', '', 0, '0.00', 0,
'Дин.', 'RSD', 2, '.', ',', 0),
(137, '₨', 'SCR', '%i', 'Seychellois
rupee', 0, '1.00000', '', 0, '0.00', 0,
'₨', 'SCR', 2, '.', ',', 0),
(138, 'Le ', 'SLL', '%i', 'Sierra
Leonean leone', 0, '1.00000', '', 0,
'0.00', 0, 'Le ', 'SLL', 2, '.',
',', 0),
(139, 'XAG', 'XAG', '%i', 'Silver',
0, '1.00000', '', 0, '0.00', 0,
'XAG', 'XAG', 2, '.', ',', 0),
(140, '$', 'SGD', '%i', 'Singapore
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'SGD', 2, '.', ',', 0),
(141, 'Sk ', 'SKK', '%i', 'Slovak
koruna', 0, '1.00000', '', 0, '0.00', 0,
'Sk ', 'SKK', 2, '.', ',', 0),
(142, '$', 'SBD', '%i', 'Solomon Islands
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'SBD', 2, '.', ',', 0),
(143, 'S', 'SOS', '%i', 'Somali
shilling', 0, '1.00000', '', 0, '0.00',
0, 'S', 'SOS', 2, '.', ',', 0),
(144, 'R', 'ZAR', '%i', 'South African
rand', 0, '1.00000', '', 0, '0.00', 0,
'R', 'ZAR', 2, '.', ',', 0),
(145, '₩', 'KRW', '%i', 'South Korean
won', 0, '1.00000', '', 0, '0.00', 0,
'₩', 'KRW', 2, '.', ',', 0),
(146, '₨', 'LKR', '%i', 'Sri Lankan
rupee', 0, '1.00000', '', 0, '0.00', 0,
'₨', 'LKR', 2, '.', ',', 0),
(147, '£ ', 'SDG', '%i', 'Sudanese
pound', 0, '1.00000', '', 0, '0.00', 0,
'£ ', 'SDG', 2, '.', ',', 0),
(148, '$', 'SRD', '%i', 'Surinamese
dollar', 0, '1.00000', '', 0, '0.00', 0,
'$', 'SRD', 2, '.', ',', 0),
(149, 'L ', 'SZL', '%i', 'Swazi
lilangeni', 0, '1.00000', '', 0, '0.00',
0, 'L ', 'SZL', 2, '.', ',', 0),
(150, 'kr', 'SEK', '%i', 'Swedish
krona', 0, '1.00000', '', 0, '0.00', 0,
'kr', 'SEK', 2, '.', ',', 0),
(151, 'CHF', 'CHF', '%i', 'Swiss
franc', 0, '1.00000', '', 0, '0.00', 0,
'CHF', 'CHF', 2, '.', ',', 0),
(152, '£', 'SYP', '%i', 'Syrian
pound', 0, '1.00000', '', 0, '0.00', 0,
'£', 'SYP', 2, '.', ',', 0),
(153, 'ЅМ', 'TJS', '%i', 'Tajikistani
somoni', 0, '1.00000', '', 0, '0.00', 0,
'ЅМ', 'TJS', 2, '.', ',', 0),
(154, 'Sh ', 'TZS', '%i', 'Tanzanian
shilling', 0, '1.00000', '', 0, '0.00',
0, 'Sh ', 'TZS', 2, '.', ',', 0),
(155, '฿', 'THB', '%i', 'Thai
baht', 0, '1.00000', '', 0, '0.00', 0,
'฿', 'THB', 2, '.', ',', 0),
(156, 'XXX', 'XXX', '%i', 'The codes
as', 0, '1.00000', '', 0, '0.00', 0,
'XXX', 'XXX', 2, '.', ',', 0),
(157, 'T$ ', 'TOP', '%i', 'Tongan
paʻanga', 0, '1.00000', '', 0, '0.00',
0, 'T$ ', 'TOP', 2, '.', ',', 0),
(158, 'TT$', 'TTD', '%i', 'Trinidad and
Tobago dollar', 0, '1.00000', '', 0,
'0.00', 0, 'TT$', 'TTD', 2, '.',
',', 0),
(159, 'د.ت', 'TND', '%i', 'Tunisian
dinar', 0, '1.00000', '', 0, '0.00', 0,
'د.ت', 'TND', 2, '.', ',', 0),
(160, 'YTL', 'TRY', '%i', 'Turkish new
lira', 0, '1.00000', '', 0, '0.00', 0,
'YTL', 'TRY', 2, '.', ',', 0),
(161, 'm ', 'TMM', '%i', 'Turkmenistani
manat', 0, '1.00000', '', 0, '0.00', 0,
'm ', 'TMM', 2, '.', ',', 0),
(162, 'Sh ', 'UGX', '%i', 'Ugandan
shilling', 0, '1.00000', '', 0, '0.00',
0, 'Sh ', 'UGX', 2, '.', ',', 0),
(163, 'XFU', 'XFU', '%i',
'UIC-Franc', 0, '1.00000', '', 0,
'0.00', 0, 'XFU', 'XFU', 2, '.',
',', 0),
(164, '₴', 'UAH', '%i', 'Ukrainian
hryvnia', 0, '1.00000', '', 0, '0.00',
0, '₴', 'UAH', 2, '.', ',', 0),
(165, 'COU', 'COU', '%i', 'Unidad de
Va', 0, '1.00000', '', 0, '0.00', 0,
'COU', 'COU', 2, '.', ',', 0),
(166, 'CLF', 'CLF', '%i', 'Unidades de
', 0, '1.00000', '', 0, '0.00', 0,
'CLF', 'CLF', 2, '.', ',', 0),
(167, 'د.إ', 'AED', '%i', 'United Arab
Emirates dirham', 0, '1.00000', '', 0,
'0.00', 0, 'د.إ', 'AED', 2, '.',
',', 0),
(168, 'UYI', 'UYI', '%i', 'Uruguay
Peso', 0, '1.00000', '', 0, '0.00', 0,
'UYI', 'UYI', 2, '.', ',', 0),
(169, '$', 'UYU', '%i', 'Uruguayan
peso', 0, '1.00000', '', 0, '0.00', 0,
'$', 'UYU', 2, '.', ',', 0),
(170, '$', 'USN', '%i', 'US Dollar (Next
Day)', 0, '1.00000', '', 0, '0.00', 0,
'$', 'USN', 2, '.', ',', 0),
(171, '$', 'USS', '%i', 'US Dollar
(Second Day)', 0, '1.00000', '', 0,
'0.00', 0, '$', 'USS', 2, '.',
',', 0),
(172, 'лв', 'UZS', '%i', 'Uzbekistani
som', 0, '1.00000', '', 0, '0.00', 0,
'лв', 'UZS', 2, '.', ',', 0),
(173, 'Vt ', 'VUV', '%i', 'Vanuatu
vatu', 0, '1.00000', '', 0, '0.00', 0,
'Vt ', 'VUV', 2, '.', ',', 0),
(174, 'Bs', 'VEF', '%i', 'Venezuelan
bolívar', 0, '1.00000', '', 0, '0.00',
0, 'Bs', 'VEF', 2, '.', ',', 0),
(175, '₫', 'VND', '%i', 'Vietnamese
Dong', 0, '1.00000', '', 0, '0.00', 0,
'₫', 'VND', 2, '.', ',', 0),
(176, 'Fr ', 'XOF', '%i', 'West African
CFA franc', 0, '1.00000', '', 0, '0.00',
0, 'Fr ', 'XOF', 2, '.', ',', 0),
(177, '€', 'CHE', '%i', 'WIR
Euro', 0, '1.00000', '', 0, '0.00', 0,
'€', 'CHE', 2, '.', ',', 0),
(178, 'CHW', 'CHW', '%i', 'WIR
Franc', 0, '1.00000', '', 0, '0.00', 0,
'CHW', 'CHW', 2, '.', ',', 0),
(179, '﷼', 'YER', '%i', 'Yemeni
rial', 0, '1.00000', '', 0, '0.00', 0,
'﷼', 'YER', 2, '.', ',', 0),
(180, 'ZK ', 'ZMK', '%i', 'Zambian
kwacha', 0, '1.00000', '', 0, '0.00', 0,
'ZK ', 'ZMK', 2, '.', ',', 0),
(181, 'Z$', 'ZWD', '%i', 'Zimbabwean
dollar', 0, '1.00000', '', 0, '0.00', 0,
'Z$', 'ZWD', 2, '.', ',', 0);

UPDATE `#__invoices_templates` SET `content_email` = '<!doctype
html>\r\n<html >\r\n  <head>\r\n    <meta
name=\"viewport\" content=\"width=device-width\"
/>\r\n    <meta http-equiv=\"Content-Type\"
content=\"text/html; charset=UTF-8\" />\r\n   
<title>[[INVOICE]] {invoice_num}</title>\r\n   
<style>\r\n      /* -------------------------------------\r\n        
 GLOBAL RESETS\r\n      ------------------------------------- */\r\n     
img {\r\n        border: none;\r\n        -ms-interpolation-mode:
bicubic;\r\n        max-width: 100%; }\r\n\r\n      body {\r\n       
background-color: #f6f6f6;\r\n        font-family: sans-serif;\r\n       
-webkit-font-smoothing: antialiased;\r\n        font-size: 14px;\r\n       
line-height: 1.4;\r\n        margin: 0;\r\n        padding: 0;\r\n       
-ms-text-size-adjust: 100%;\r\n        -webkit-text-size-adjust: 100%;
}\r\n\r\n      table {\r\n        border-collapse: separate;\r\n       
mso-table-lspace: 0pt;\r\n        mso-table-rspace: 0pt;\r\n        width:
100%; }\r\n        table td {\r\n          font-family: sans-serif;\r\n    
     font-size: 14px;\r\n          vertical-align: top; }\r\n\r\n      /*
-------------------------------------\r\n          BODY & CONTAINER\r\n
     ------------------------------------- */\r\n\r\n      .body {\r\n     
  background-color: #f6f6f6;\r\n        width: 100%; }\r\n\r\n      /* Set
a max-width, and make it display as block so it will automatically stretch
to that width, but will also shrink down on a phone or something */\r\n    
 .container {\r\n        display: block;\r\n        Margin: 0 auto
!important;\r\n        /* makes it centered */\r\n        max-width:
580px;\r\n        padding: 10px;\r\n        width: 580px; }\r\n\r\n      /*
This should also be a block element, so that it will fill 100% of the
.container */\r\n      .content {\r\n        box-sizing: border-box;\r\n   
    display: block;\r\n        Margin: 0 auto;\r\n        max-width:
580px;\r\n        padding: 10px; }\r\n\r\n      /*
-------------------------------------\r\n          HEADER, FOOTER, MAIN\r\n
     ------------------------------------- */\r\n      .main {\r\n       
background: #fff;\r\n        border-radius: 3px;\r\n        width: 100%;
}\r\n\r\n      .wrapper {\r\n        box-sizing: border-box;\r\n       
padding: 20px; }\r\n\r\n      .footer {\r\n        clear: both;\r\n       
padding-top: 10px;\r\n        text-align: center;\r\n        width: 100%;
}\r\n        .footer td,\r\n        .footer p,\r\n        .footer span,\r\n
       .footer a {\r\n          color: #999999;\r\n          font-size:
12px;\r\n          text-align: center; }\r\n\r\n      /*
-------------------------------------\r\n          TYPOGRAPHY\r\n     
------------------------------------- */\r\n      h1,\r\n      h2,\r\n     
h3,\r\n      h4 {\r\n        color: #000000;\r\n        font-family:
sans-serif;\r\n        font-weight: 400;\r\n        line-height: 1.4;\r\n  
     margin: 0;\r\n        Margin-bottom: 30px; }\r\n\r\n      h1 {\r\n    
   font-size: 35px;\r\n        font-weight: 300;\r\n        text-align:
center;\r\n        text-transform: capitalize; }\r\n\r\n      p,\r\n     
ul,\r\n      ol {\r\n        font-family: sans-serif;\r\n        font-size:
14px;\r\n        font-weight: normal;\r\n        margin: 0;\r\n       
Margin-bottom: 15px; }\r\n        p li,\r\n        ul li,\r\n        ol li
{\r\n          list-style-position: inside;\r\n          margin-left: 5px;
}\r\n\r\n      a {\r\n        color: #3498db;\r\n        text-decoration:
underline; }\r\n\r\n      /* -------------------------------------\r\n     
    BUTTONS\r\n      ------------------------------------- */\r\n      .btn
{\r\n        box-sizing: border-box;\r\n        width: 100%; }\r\n       
.btn > tbody > tr > td {\r\n          padding-bottom: 15px; }\r\n 
      .btn table {\r\n          width: auto; }\r\n        .btn table td
{\r\n          background-color: #ffffff;\r\n          border-radius:
5px;\r\n          text-align: center; }\r\n        .btn a {\r\n         
background-color: #ffffff;\r\n          border: solid 1px #3498db;\r\n     
    border-radius: 5px;\r\n          box-sizing: border-box;\r\n         
color: #3498db;\r\n          cursor: pointer;\r\n          display:
inline-block;\r\n          font-size: 14px;\r\n          font-weight:
bold;\r\n          margin: 0;\r\n          padding: 12px 25px;\r\n         
text-decoration: none;\r\n          text-transform: capitalize; }\r\n\r\n  
   .btn-primary table td {\r\n        background-color: #3498db; }\r\n\r\n 
    .btn-primary a {\r\n        background-color: #3498db;\r\n       
border-color: #3498db;\r\n        color: #ffffff; }\r\n\r\n      /*
-------------------------------------\r\n          OTHER STYLES THAT MIGHT
BE USEFUL\r\n      ------------------------------------- */\r\n      .last
{\r\n        margin-bottom: 0; }\r\n\r\n      .first {\r\n       
margin-top: 0; }\r\n\r\n      .align-center {\r\n        text-align:
center; }\r\n\r\n      .align-right {\r\n        text-align: right;
}\r\n\r\n      .align-left {\r\n        text-align: left; }\r\n\r\n     
.clear {\r\n        clear: both; }\r\n\r\n      .mt0 {\r\n       
margin-top: 0; }\r\n\r\n      .mb0 {\r\n        margin-bottom: 0; }\r\n\r\n
     .preheader {\r\n        color: transparent;\r\n        display:
none;\r\n        height: 0;\r\n        max-height: 0;\r\n        max-width:
0;\r\n        opacity: 0;\r\n        overflow: hidden;\r\n        mso-hide:
all;\r\n        visibility: hidden;\r\n        width: 0; }\r\n\r\n     
.powered-by a {\r\n        text-decoration: none; }\r\n\r\n      hr {\r\n  
     border: 0;\r\n        border-bottom: 1px solid #f6f6f6;\r\n       
Margin: 20px 0; }\r\n\r\n      /* -------------------------------------\r\n
         RESPONSIVE AND MOBILE FRIENDLY STYLES\r\n     
------------------------------------- */\r\n      @media only screen and
(max-width: 620px) {\r\n        table[class=body] h1 {\r\n         
font-size: 28px !important;\r\n          margin-bottom: 10px !important;
}\r\n        table[class=body] p,\r\n        table[class=body] ul,\r\n     
  table[class=body] ol,\r\n        table[class=body] td,\r\n       
table[class=body] span,\r\n        table[class=body] a {\r\n         
font-size: 16px !important; }\r\n        table[class=body] .wrapper,\r\n   
    table[class=body] .article {\r\n          padding: 10px !important;
}\r\n        table[class=body] .content {\r\n          padding: 0
!important; }\r\n        table[class=body] .container {\r\n         
padding: 0 !important;\r\n          width: 100% !important; }\r\n       
table[class=body] .main {\r\n          border-left-width: 0 !important;\r\n
         border-radius: 0 !important;\r\n          border-right-width: 0
!important; }\r\n        table[class=body] .btn table {\r\n          width:
100% !important; }\r\n        table[class=body] .btn a {\r\n         
width: 100% !important; }\r\n        table[class=body] .img-responsive
{\r\n          height: auto !important;\r\n          max-width: 100%
!important;\r\n          width: auto !important; }}\r\n\r\n      /*
-------------------------------------\r\n          PRESERVE THESE STYLES IN
THE HEAD\r\n      ------------------------------------- */\r\n      @media
all {\r\n        .ExternalClass {\r\n          width: 100%; }\r\n       
.ExternalClass,\r\n        .ExternalClass p,\r\n        .ExternalClass
span,\r\n        .ExternalClass font,\r\n        .ExternalClass td,\r\n    
   .ExternalClass div {\r\n          line-height: 100%; }\r\n       
.apple-link a {\r\n          color: inherit !important;\r\n         
font-family: inherit !important;\r\n          font-size: inherit
!important;\r\n          font-weight: inherit !important;\r\n         
line-height: inherit !important;\r\n          text-decoration: none
!important; }\r\n        .btn-primary table td:hover {\r\n         
background-color: #34495e !important; }\r\n        .btn-primary a:hover
{\r\n          background-color: #34495e !important;\r\n         
border-color: #34495e !important; } }\r\n\r\n    </style>\r\n 
</head>\r\n  <body class=\"\">\r\n    <table
border=\"0\" cellpadding=\"0\"
cellspacing=\"0\" class=\"body\">\r\n     
<tr>\r\n        <td> </td>\r\n        <td
class=\"container\">\r\n          <div
class=\"content\">\r\n\r\n            <!-- START CENTERED
WHITE CONTAINER -->\r\n            <span
class=\"preheader\">[[INVOICE_TOTAL]]:
{total}</span>\r\n            <table
class=\"main\">\r\n\r\n              <!-- START MAIN
CONTENT AREA -->\r\n              <tr>\r\n                <td
class=\"wrapper\">\r\n                  <table
border=\"0\" cellpadding=\"0\"
cellspacing=\"0\">\r\n                    <tr>\r\n      
               <td>\r\n                        <p>[[DEAR]]
{to_name},</p>\r\n                        <p>[[FIND_ATTACHED]]
<strong>{invoice_num}</strong></p>\r\n                   
    <p>[[INVOICE_TOTAL]]:
<strong>{total}</strong></p>\r\n\r\n                     
  <table border=\"0\" cellpadding=\"0\"
cellspacing=\"0\" class=\"btn btn-primary\">\r\n    
                     <tbody>\r\n                           
<tr>\r\n                              <td
align=\"left\">\r\n                                <table
border=\"0\" cellpadding=\"0\"
cellspacing=\"0\">\r\n                                 
<tbody>\r\n                                    <tr>\r\n        
                             <td> {paynow_button} </td>\r\n    
                               </tr>\r\n                             
    </tbody>\r\n                                </table>\r\n   
                          </td>\r\n                           
</tr>\r\n                          </tbody>\r\n                
       </table>\r\n                       
<p>[[THANKS]]</p>\r\n                      </td>\r\n     
              </tr>\r\n                  </table>\r\n          
     </td>\r\n              </tr>\r\n\r\n              <!--
END MAIN CONTENT AREA -->\r\n              </table>\r\n\r\n       
    <!-- START FOOTER -->\r\n            <div
class=\"footer\">\r\n              <table
border=\"0\" cellpadding=\"0\"
cellspacing=\"0\">\r\n                <tr>\r\n          
       <td class=\"content-block\">\r\n                   
<span class=\"apple-link\">JoomlaThat.com</span>\r\n 
                </td>\r\n                </tr>\r\n\r\n         
    </table>\r\n            </div>\r\n\r\n            <!--
END FOOTER -->\r\n\r\n<!-- END CENTERED WHITE CONTAINER
--></div>\r\n        </td>\r\n       
<td> </td>\r\n      </tr>\r\n    </table>\r\n 
</body>\r\n</html>' WHERE `content_email` = '';
params/sql.xml000064400000001223151163741460007356 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<form>
	<fields name="fieldparams">
		<fieldset name="fieldparams">
			<field
				name="query"
				type="textarea"
				label="PLG_FIELDS_SQL_PARAMS_QUERY_LABEL"
				description="PLG_FIELDS_SQL_PARAMS_QUERY_DESC"
				filter="raw"
				rows="10"
				required="true"
			/>

			<field
				name="multiple"
				type="list"
				label="PLG_FIELDS_SQL_PARAMS_MULTIPLE_LABEL"
				description="PLG_FIELDS_SQL_PARAMS_MULTIPLE_DESC"
				filter="integer"
				>
				<option
value="">COM_FIELDS_FIELD_USE_GLOBAL</option>
				<option value="1">JYES</option>
				<option value="0">JNO</option>
			</field>
		</fieldset>
	</fields>
</form>
sql.php000064400000003533151163741460006070 0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.Sql
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

JLoader::import('components.com_fields.libraries.fieldslistplugin',
JPATH_ADMINISTRATOR);

/**
 * Fields Sql Plugin
 *
 * @since  3.7.0
 */
class PlgFieldsSql extends FieldsListPlugin
{
	/**
	 * Transforms the field into a DOM XML element and appends it as a child
on the given parent.
	 *
	 * @param   stdClass    $field   The field.
	 * @param   DOMElement  $parent  The field node parent.
	 * @param   JForm       $form    The form.
	 *
	 * @return  DOMElement
	 *
	 * @since   3.7.0
	 */
	public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm
$form)
	{
		$fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form);

		if (!$fieldNode)
		{
			return $fieldNode;
		}

		$fieldNode->setAttribute('value_field', 'text');
		$fieldNode->setAttribute('key_field', 'value');

		return $fieldNode;
	}

	/**
	 * The save event.
	 *
	 * @param   string   $context  The context
	 * @param   JTable   $item     The table
	 * @param   boolean  $isNew    Is new item
	 * @param   array    $data     The validated data
	 *
	 * @return  boolean
	 *
	 * @since   3.7.0
	 */
	public function onContentBeforeSave($context, $item, $isNew, $data =
array())
	{
		// Only work on new SQL fields
		if ($context != 'com_fields.field' || !isset($item->type) ||
$item->type != 'sql')
		{
			return true;
		}

		// If we are not a super admin, don't let the user create or update
a SQL field
		if (!JAccess::getAssetRules(1)->allow('core.admin',
JFactory::getUser()->getAuthorisedGroups()))
		{
			$item->setError(JText::_('PLG_FIELDS_SQL_CREATE_NOT_POSSIBLE'));

			return false;
		}

		return true;
	}
}
sql.xml000064400000002704151163741460006100 0ustar00<?xml
version="1.0" encoding="utf-8" ?>
<extension type="plugin" version="3.7.0"
group="fields" method="upgrade">
	<name>plg_fields_sql</name>
	<author>Joomla! Project</author>
	<creationDate>March 2016</creationDate>
	<copyright>Copyright (C) 2005 - 2020 Open Source Matters. All rights
reserved.</copyright>
	<license>GNU General Public License version 2 or later; see
LICENSE.txt</license>
	<authorEmail>admin@joomla.org</authorEmail>
	<authorUrl>www.joomla.org</authorUrl>
	<version>3.7.0</version>
	<description>PLG_FIELDS_SQL_XML_DESCRIPTION</description>
	<files>
		<filename plugin="sql">sql.php</filename>
		<folder>params</folder>
		<folder>tmpl</folder>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_fields_sql.ini</language>
		<language
tag="en-GB">en-GB.plg_fields_sql.sys.ini</language>
	</languages>
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field
					name="query"
					type="textarea"
					label="PLG_FIELDS_SQL_PARAMS_QUERY_LABEL"
					description="PLG_FIELDS_SQL_PARAMS_QUERY_DESC"
					rows="10"
					filter="raw"
					required="true"
				/>

				<field
					name="multiple"
					type="radio"
					label="PLG_FIELDS_SQL_PARAMS_MULTIPLE_LABEL"
					description="PLG_FIELDS_SQL_PARAMS_MULTIPLE_DESC"
					class="btn-group btn-group-yesno"
					default="0"
					filter="integer"
					>
					<option value="1">JYES</option>
					<option value="0">JNO</option>
				</field>
			</fieldset>
		</fields>
	</config>
</extension>
tmpl/sql.php000064400000001771151163741460007046 0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.Sql
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */
defined('_JEXEC') or die;

$value = $field->value;

if ($value == '')
{
	return;
}

$db        = JFactory::getDbo();
$value     = (array) $value;
$condition = '';

foreach ($value as $v)
{
	if (!$v)
	{
		continue;
	}

	$condition .= ', ' . $db->q($v);
}

$query = $fieldParams->get('query', '');

// Run the query with a having condition because it supports aliases
$db->setQuery($query . ' having value in (' . trim($condition,
',') . ')');

try
{
	$items = $db->loadObjectlist();
}
catch (Exception $e)
{
	// If the query failed, we fetch all elements
	$db->setQuery($query);
	$items = $db->loadObjectlist();
}

$texts = array();

foreach ($items as $item)
{
	if (in_array($item->value, $value))
	{
		$texts[] = $item->text;
	}
}

echo htmlentities(implode(', ', $texts));