Spade
Mini Shell
admin.php000064400000000736151166706130006361 0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
JHtml::_('behavior.tabstate');
// No access check.
$controller = JControllerLegacy::getInstance('Admin');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();
admin.xml000064400000001674151166706130006374 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<extension type="component" version="3.1"
method="upgrade">
<name>com_admin</name>
<author>Joomla! Project</author>
<creationDate>April 2006</creationDate>
<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.0.0</version>
<description>COM_ADMIN_XML_DESCRIPTION</description>
<media />
<administration>
<files folder="admin">
<filename>admin.php</filename>
<filename>controller.php</filename>
<folder>helpers</folder>
<folder>models</folder>
<folder>views</folder>
</files>
<languages folder="admin">
<language
tag="en-GB">language/en-GB.com_admin.ini</language>
<language
tag="en-GB">language/en-GB.com_admin.sys.ini</language>
</languages>
</administration>
</extension>
controller.php000064400000000566151166706130007455 0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
/**
* Admin Controller
*
* @since 1.6
*/
class AdminController extends JControllerLegacy
{
}
controllers/profile.php000064400000003661151166706130011277
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
/**
* User profile controller class.
*
* @since 1.6
*/
class AdminControllerProfile extends JControllerForm
{
/**
* Method to check if you can edit a record.
*
* Extended classes can override this if necessary.
*
* @param array $data An array of input data.
* @param string $key The name of the key for the primary key.
*
* @return boolean
*
* @since 1.6
*/
protected function allowEdit($data = array(), $key = 'id')
{
return isset($data['id']) && $data['id'] ==
JFactory::getUser()->id;
}
/**
* Overrides parent save method to check the submitted passwords match.
*
* @param string $key The name of the primary key of the URL
variable.
* @param string $urlVar The name of the URL variable if different
from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 3.2
*/
public function save($key = null, $urlVar = null)
{
$this->setRedirect(JRoute::_('index.php?option=com_admin&view=profile&layout=edit&id='
. JFactory::getUser()->id, false));
$return = parent::save();
if ($this->getTask() != 'apply')
{
// Redirect to the main page.
$this->setRedirect(JRoute::_('index.php', false));
}
return $return;
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 1.6
*/
public function cancel($key = null)
{
$return = parent::cancel($key);
// Redirect to the main page.
$this->setRedirect(JRoute::_('index.php', false));
return $return;
}
}
helpers/html/directory.php000064400000002372151166706140011702
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
/**
* Utility class working with directory
*
* @since 1.6
*/
abstract class JHtmlDirectory
{
/**
* Method to generate a (un)writable message for directory
*
* @param boolean $writable is the directory writable?
*
* @return string html code
*/
public static function writable($writable)
{
if ($writable)
{
return '<span class="badge badge-success">' .
JText::_('COM_ADMIN_WRITABLE') . '</span>';
}
return '<span class="badge badge-important">' .
JText::_('COM_ADMIN_UNWRITABLE') . '</span>';
}
/**
* Method to generate a message for a directory
*
* @param string $dir the directory
* @param boolean $message the message
* @param boolean $visible is the $dir visible?
*
* @return string html code
*/
public static function message($dir, $message, $visible = true)
{
$output = $visible ? $dir : '';
if (empty($message))
{
return $output;
}
return $output . ' <strong>' . JText::_($message) .
'</strong>';
}
}
helpers/html/phpsetting.php000064400000003017151166706140012060
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
/**
* Utility class working with phpsetting
*
* @since 1.6
*/
abstract class JHtmlPhpSetting
{
/**
* Method to generate a boolean message for a value
*
* @param boolean $val is the value set?
*
* @return string html code
*/
public static function boolean($val)
{
return JText::_($val ? 'JON' : 'JOFF');
}
/**
* Method to generate a boolean message for a value
*
* @param boolean $val is the value set?
*
* @return string html code
*/
public static function set($val)
{
return JText::_($val ? 'JYES' : 'JNO');
}
/**
* Method to generate a string message for a value
*
* @param string $val a php ini value
*
* @return string html code
*/
public static function string($val)
{
return !empty($val) ? $val : JText::_('JNONE');
}
/**
* Method to generate an integer from a value
*
* @param string $val a php ini value
*
* @return string html code
*
* @deprecated 4.0 Use intval() or casting instead.
*/
public static function integer($val)
{
try
{
JLog::add(sprintf('%s() is deprecated. Use intval() or casting
instead.', __METHOD__), JLog::WARNING, 'deprecated');
}
catch (RuntimeException $exception)
{
// Informational log only
}
return (int) $val;
}
}
helpers/html/system.php000064400000001145151166706140011217
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
/**
* Utility class working with system
*
* @since 1.6
*/
abstract class JHtmlSystem
{
/**
* Method to generate a string message for a value
*
* @param string $val a php ini value
*
* @return string html code
*/
public static function server($val)
{
return !empty($val) ? $val : JText::_('COM_ADMIN_NA');
}
}
models/forms/profile.xml000064400000006756151166706140011364
0ustar00<?xml version="1.0" encoding="utf-8"?>
<form>
<fieldset name="user_details">
<field
name="name"
type="text"
label="COM_ADMIN_USER_HEADING_NAME"
description="COM_ADMIN_USER_FIELD_NAME_DESC"
required="true"
size="30"
/>
<field
name="username"
type="text"
label="COM_ADMIN_USER_FIELD_USERNAME_LABEL"
description="COM_ADMIN_USER_FIELD_USERNAME_DESC"
required="true"
size="30"
/>
<field
name="password2"
type="password"
label="JGLOBAL_PASSWORD"
description="COM_ADMIN_USER_FIELD_PASSWORD_DESC"
autocomplete="off"
class="validate-password"
field="password"
filter="raw"
message="COM_ADMIN_USER_FIELD_PASSWORD1_MESSAGE"
size="30"
validate="equals"
/>
<field
name="password"
type="password"
label="COM_ADMIN_USER_FIELD_PASSWORD2_LABEL"
description="COM_ADMIN_USER_FIELD_PASSWORD2_DESC"
autocomplete="off"
class="validate-password"
filter="raw"
size="30"
validate="password"
/>
<field
name="email"
type="email"
label="JGLOBAL_EMAIL"
description="COM_ADMIN_USER_FIELD_EMAIL_DESC"
class="validate-email"
required="true"
size="30"
validate="email"
validDomains="com_users.domains"
/>
<field
name="registerDate"
type="calendar"
label="COM_ADMIN_USER_FIELD_REGISTERDATE_LABEL"
description="COM_ADMIN_USER_FIELD_REGISTERDATE_DESC"
class="readonly"
readonly="true"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>
<field
name="lastvisitDate"
type="calendar"
label="COM_ADMIN_USER_FIELD_LASTVISIT_LABEL"
description="COM_ADMIN_USER_FIELD_LASTVISIT_DESC"
class="readonly"
readonly="true"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>
<field
name="id"
type="number"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
class="readonly"
default="0"
readonly="true"
filter="unset"
/>
<!-- Used to get the two factor authentication configuration -->
<field
name="twofactor"
type="hidden"
/>
</fieldset>
<fields name="params">
<!-- Basic user account settings. -->
<fieldset name="settings"
label="COM_ADMIN_USER_SETTINGS_FIELDSET_LABEL">
<field
name="admin_style"
type="templatestyle"
label="COM_ADMIN_USER_FIELD_BACKEND_TEMPLATE_LABEL"
description="COM_ADMIN_USER_FIELD_BACKEND_TEMPLATE_DESC"
client="administrator"
filter="uint"
>
<option value="">JOPTION_USE_DEFAULT</option>
</field>
<field
name="admin_language"
type="language"
label="COM_ADMIN_USER_FIELD_BACKEND_LANGUAGE_LABEL"
description="COM_ADMIN_USER_FIELD_BACKEND_LANGUAGE_DESC"
client="administrator"
>
<option value="">JOPTION_USE_DEFAULT</option>
</field>
<field
name="language"
type="language"
label="COM_ADMIN_USER_FIELD_FRONTEND_LANGUAGE_LABEL"
description="COM_ADMIN_USER_FIELD_FRONTEND_LANGUAGE_DESC"
client="site"
>
<option value="">JOPTION_USE_DEFAULT</option>
</field>
<field
name="editor"
type="plugins"
label="COM_ADMIN_USER_FIELD_EDITOR_LABEL"
description="COM_ADMIN_USER_FIELD_EDITOR_DESC"
folder="editors"
useaccess="true"
>
<option value="">JOPTION_USE_DEFAULT</option>
</field>
<field
name="timezone"
type="timezone"
label="COM_ADMIN_USER_FIELD_TIMEZONE_LABEL"
description="COM_ADMIN_USER_FIELD_TIMEZONE_DESC"
>
<option value="">JOPTION_USE_DEFAULT</option>
</field>
</fieldset>
</fields>
</form>
models/help.php000064400000007673151166706140007514 0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
use Joomla\String\StringHelper;
/**
* Admin Component Help Model
*
* @since 1.6
*/
class AdminModelHelp extends JModelLegacy
{
/**
* The search string
*
* @var string
* @since 1.6
*/
protected $help_search = null;
/**
* The page to be viewed
*
* @var string
* @since 1.6
*/
protected $page = null;
/**
* The ISO language tag
*
* @var string
* @since 1.6
*/
protected $lang_tag = null;
/**
* Table of contents
*
* @var array
* @since 1.6
*/
protected $toc = null;
/**
* URL for the latest version check
*
* @var string
* @since 1.6
*/
protected $latest_version_check = null;
/**
* Method to get the help search string
*
* @return string Help search string
*
* @since 1.6
*/
public function &getHelpSearch()
{
if (is_null($this->help_search))
{
$this->help_search =
JFactory::getApplication()->input->getString('helpsearch');
}
return $this->help_search;
}
/**
* Method to get the page
*
* @return string The page
*
* @since 1.6
*/
public function &getPage()
{
if (is_null($this->page))
{
$this->page =
JHelp::createUrl(JFactory::getApplication()->input->get('page',
'JHELP_START_HERE'));
}
return $this->page;
}
/**
* Method to get the lang tag
*
* @return string lang iso tag
*
* @since 1.6
*/
public function getLangTag()
{
if (is_null($this->lang_tag))
{
$this->lang_tag = JFactory::getLanguage()->getTag();
if (!is_dir(JPATH_BASE . '/help/' . $this->lang_tag))
{
// Use English as fallback
$this->lang_tag = 'en-GB';
}
}
return $this->lang_tag;
}
/**
* Method to get the table of contents
*
* @return array Table of contents
*/
public function &getToc()
{
if (!is_null($this->toc))
{
return $this->toc;
}
// Get vars
$lang_tag = $this->getLangTag();
$help_search = $this->getHelpSearch();
// New style - Check for a TOC JSON file
if (file_exists(JPATH_BASE . '/help/' . $lang_tag .
'/toc.json'))
{
$data = json_decode(file_get_contents(JPATH_BASE . '/help/' .
$lang_tag . '/toc.json'));
// Loop through the data array
foreach ($data as $key => $value)
{
$this->toc[$key] = JText::_('COM_ADMIN_HELP_' . $value);
}
// Sort the Table of Contents
asort($this->toc);
return $this->toc;
}
// Get Help files
jimport('joomla.filesystem.folder');
$files = JFolder::files(JPATH_BASE . '/help/' . $lang_tag,
'\.xml$|\.html$');
$this->toc = array();
foreach ($files as $file)
{
$buffer = file_get_contents(JPATH_BASE . '/help/' . $lang_tag
. '/' . $file);
if (!preg_match('#<title>(.*?)</title>#', $buffer,
$m))
{
continue;
}
$title = trim($m[1]);
if (!$title)
{
continue;
}
// Translate the page title
$title = JText::_($title);
// Strip the extension
$file = preg_replace('#\.xml$|\.html$#', '', $file);
if ($help_search &&
StringHelper::strpos(StringHelper::strtolower(strip_tags($buffer)),
StringHelper::strtolower($help_search)) === false)
{
continue;
}
// Add an item in the Table of Contents
$this->toc[$file] = $title;
}
// Sort the Table of Contents
asort($this->toc);
return $this->toc;
}
/**
* Method to get the latest version check
*
* @return string Latest Version Check URL
*/
public function &getLatestVersionCheck()
{
if (!$this->latest_version_check)
{
$override =
'https://help.joomla.org/proxy/index.php?keyref=Help{major}{minor}:'
.
'Joomla_Version_{major}_{minor}_{maintenance}/{langcode}&lang={langcode}';
$this->latest_version_check = JHelp::createUrl('JVERSION',
false, $override);
}
return $this->latest_version_check;
}
}
models/profile.php000064400000016613151166706140010216 0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
// Load the helper and model used for two factor authentication
JLoader::register('UsersModelUser', JPATH_ADMINISTRATOR .
'/components/com_users/models/user.php');
JLoader::register('UsersHelper', JPATH_ADMINISTRATOR .
'/components/com_users/helpers/users.php');
/**
* User model.
*
* @since 1.6
*/
class AdminModelProfile extends UsersModelUser
{
/**
* Method to get the record form.
*
* @param array $data An optional array of data for the form to
interrogate.
* @param boolean $loadData True if the form is to load its own data
(default case), false if not.
*
* @return JForm A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
{
// Get the form.
$form = $this->loadForm('com_admin.profile',
'profile', array('control' => 'jform',
'load_data' => $loadData));
if (empty($form))
{
return false;
}
// Check for username compliance and parameter set
$isUsernameCompliant = true;
if ($this->loadFormData()->username)
{
$username = $this->loadFormData()->username;
$isUsernameCompliant =
!(preg_match('#[<>"\'%;()&\\\\]|\\.\\./#',
$username) || strlen(utf8_decode($username)) < 2
|| trim($username) != $username);
}
$this->setState('user.username.compliant',
$isUsernameCompliant);
if
(!JComponentHelper::getParams('com_users')->get('change_login_name')
&& $isUsernameCompliant)
{
$form->setFieldAttribute('username', 'required',
'false');
$form->setFieldAttribute('username', 'readonly',
'true');
$form->setFieldAttribute('username',
'description',
'COM_ADMIN_USER_FIELD_NOCHANGE_USERNAME_DESC');
}
// When multilanguage is set, a user's default site language should
also be a Content Language
if (JLanguageMultilang::isEnabled())
{
$form->setFieldAttribute('language', 'type',
'frontend_language', 'params');
}
// If the user needs to change their password, mark the password fields
as required
if (JFactory::getUser()->requireReset)
{
$form->setFieldAttribute('password', 'required',
'true');
$form->setFieldAttribute('password2', 'required',
'true');
}
return $form;
}
/**
* Method to get the data that should be injected in the form.
*
* @return mixed The data for the form.
*
* @since 1.6
*/
protected function loadFormData()
{
// Check the session for previously entered form data.
$data =
JFactory::getApplication()->getUserState('com_users.edit.user.data',
array());
if (empty($data))
{
$data = $this->getItem();
}
// Load the users plugins.
JPluginHelper::importPlugin('user');
$this->preprocessData('com_admin.profile', $data);
return $data;
}
/**
* Method to get a single record.
*
* @param integer $pk The id of the primary key.
*
* @return mixed Object on success, false on failure.
*
* @since 1.6
*/
public function getItem($pk = null)
{
return parent::getItem(JFactory::getUser()->id);
}
/**
* Method to save the form data.
*
* @param array $data The form data.
*
* @return boolean True on success.
*
* @since 1.6
*/
public function save($data)
{
$user = JFactory::getUser();
unset($data['id']);
unset($data['groups']);
unset($data['sendEmail']);
unset($data['block']);
$isUsernameCompliant =
$this->getState('user.username.compliant');
if
(!JComponentHelper::getParams('com_users')->get('change_login_name')
&& $isUsernameCompliant)
{
unset($data['username']);
}
// Handle the two factor authentication setup
if (isset($data['twofactor']['method']))
{
$twoFactorMethod = $data['twofactor']['method'];
// Get the current One Time Password (two factor auth) configuration
$otpConfig = $this->getOtpConfig($user->id);
if ($twoFactorMethod !== 'none')
{
// Run the plugins
FOFPlatform::getInstance()->importPlugin('twofactorauth');
$otpConfigReplies =
FOFPlatform::getInstance()->runPlugins('onUserTwofactorApplyConfiguration',
array($twoFactorMethod));
// Look for a valid reply
foreach ($otpConfigReplies as $reply)
{
if (!is_object($reply) || empty($reply->method) ||
($reply->method != $twoFactorMethod))
{
continue;
}
$otpConfig->method = $reply->method;
$otpConfig->config = $reply->config;
break;
}
// Save OTP configuration.
$this->setOtpConfig($user->id, $otpConfig);
// Generate one time emergency passwords if required (depleted or not
set)
if (empty($otpConfig->otep))
{
$this->generateOteps($user->id);
}
}
else
{
$otpConfig->method = 'none';
$otpConfig->config = array();
$this->setOtpConfig($user->id, $otpConfig);
}
// Unset the raw data
unset($data['twofactor']);
// Reload the user record with the updated OTP configuration
$user->load($user->id);
}
// Bind the data.
if (!$user->bind($data))
{
$this->setError($user->getError());
return false;
}
$user->groups = null;
// Store the data.
if (!$user->save())
{
$this->setError($user->getError());
return false;
}
$this->setState('user.id', $user->id);
return true;
}
/**
* Gets the configuration forms for all two-factor authentication methods
* in an array.
*
* @param integer $userId The user ID to load the forms for (optional)
*
* @return array
*
* @since __DEPOLOY_VERSION__
*/
public function getTwofactorform($userId = null)
{
$userId = (!empty($userId)) ? $userId : (int) JFactory::getUser()->id;
$model = new UsersModelUser;
return $model->getTwofactorform($userId);
}
/**
* Returns the one time password (OTP) – a.k.a. two factor
authentication –
* configuration for a particular user.
*
* @param integer $userId The numeric ID of the user
*
* @return stdClass An object holding the OTP configuration for this
user
*
* @since __DEPOLOY_VERSION__
*/
public function getOtpConfig($userId = null)
{
$userId = (!empty($userId)) ? $userId : (int) JFactory::getUser()->id;
$model = new UsersModelUser;
return $model->getOtpConfig($userId);
}
/**
* Sets the one time password (OTP) – a.k.a. two factor authentication
–
* configuration for a particular user. The $otpConfig object is the same
as
* the one returned by the getOtpConfig method.
*
* @param integer $userId The numeric ID of the user
* @param stdClass $otpConfig The OTP configuration object
*
* @return boolean True on success
*
* @since __DEPOLOY_VERSION__
*/
public function setOtpConfig($userId, $otpConfig)
{
$userId = (!empty($userId)) ? $userId : (int) JFactory::getUser()->id;
$model = new UsersModelUser;
return $model->setOtpConfig($userId, $otpConfig);
}
/**
* Generates a new set of One Time Emergency Passwords (OTEPs) for a given
user.
*
* @param integer $userId The user ID
* @param integer $count How many OTEPs to generate? Default: 10
*
* @return array The generated OTEPs
*
* @since __DEPOLOY_VERSION__
*/
public function generateOteps($userId, $count = 10)
{
$userId = (!empty($userId)) ? $userId : (int) JFactory::getUser()->id;
$model = new UsersModelUser;
return $model->generateOteps($userId, $count);
}
}
models/sysinfo.php000064400000041672151166706140010253 0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
use Joomla\Registry\Registry;
/**
* Model for the display of system information.
*
* @since 1.6
*/
class AdminModelSysInfo extends JModelLegacy
{
/**
* Some PHP settings
*
* @var array
* @since 1.6
*/
protected $php_settings = array();
/**
* Config values
*
* @var array
* @since 1.6
*/
protected $config = array();
/**
* Some system values
*
* @var array
* @since 1.6
*/
protected $info = array();
/**
* PHP info
*
* @var string
* @since 1.6
*/
protected $php_info = null;
/**
* Array containing the phpinfo() data.
*
* @var array
*
* @since 3.5
*/
protected $phpInfoArray;
/**
* Private/critical data that we don't want to share
*
* @var array
*
* @since 3.5
*/
protected $privateSettings = array(
'phpInfoArray' => array(
'CONTEXT_DOCUMENT_ROOT',
'Cookie',
'DOCUMENT_ROOT',
'extension_dir',
'error_log',
'Host',
'HTTP_COOKIE',
'HTTP_HOST',
'HTTP_ORIGIN',
'HTTP_REFERER',
'HTTP Request',
'include_path',
'mysql.default_socket',
'MYSQL_SOCKET',
'MYSQL_INCLUDE',
'MYSQL_LIBS',
'mysqli.default_socket',
'MYSQLI_SOCKET',
'PATH',
'Path to sendmail',
'pdo_mysql.default_socket',
'Referer',
'REMOTE_ADDR',
'SCRIPT_FILENAME',
'sendmail_path',
'SERVER_ADDR',
'SERVER_ADMIN',
'Server Administrator',
'SERVER_NAME',
'Server Root',
'session.name',
'session.save_path',
'upload_tmp_dir',
'User/Group',
'open_basedir',
),
'other' => array(
'db',
'dbprefix',
'fromname',
'live_site',
'log_path',
'mailfrom',
'memcache_server_host',
'memcached_server_host',
'open_basedir',
'Origin',
'proxy_host',
'proxy_user',
'proxy_pass',
'redis_server_host',
'redis_server_auth',
'secret',
'sendmail',
'session.save_path',
'session_memcache_server_host',
'session_memcached_server_host',
'session_redis_server_host',
'session_redis_server_auth',
'sitename',
'smtphost',
'tmp_path',
'open_basedir',
)
);
/**
* System values that can be "safely" shared
*
* @var array
*
* @since 3.5
*/
protected $safeData;
/**
* Information about writable state of directories
*
* @var array
* @since 1.6
*/
protected $directories = array();
/**
* The current editor.
*
* @var string
* @since 1.6
*/
protected $editor = null;
/**
* Remove sections of data marked as private in the privateSettings
*
* @param array $dataArray Array with data that may contain private
information
* @param string $dataType Type of data to search for a specific
section in the privateSettings array
*
* @return array
*
* @since 3.5
*/
protected function cleanPrivateData($dataArray, $dataType =
'other')
{
$dataType = isset($this->privateSettings[$dataType]) ? $dataType :
'other';
$privateSettings = $this->privateSettings[$dataType];
if (!$privateSettings)
{
return $dataArray;
}
foreach ($dataArray as $section => $values)
{
if (is_array($values))
{
$dataArray[$section] = $this->cleanPrivateData($values, $dataType);
}
if (in_array($section, $privateSettings, true))
{
$dataArray[$section] = $this->cleanSectionPrivateData($values);
}
}
return $dataArray;
}
/**
* Obfuscate section values
*
* @param mixed $sectionValues Section data
*
* @return mixed
*
* @since 3.5
*/
protected function cleanSectionPrivateData($sectionValues)
{
if (!is_array($sectionValues))
{
if (strstr($sectionValues, JPATH_ROOT))
{
$sectionValues = 'xxxxxx';
}
return strlen($sectionValues) ? 'xxxxxx' : '';
}
foreach ($sectionValues as $setting => $value)
{
$sectionValues[$setting] = strlen($value) ? 'xxxxxx' :
'';
}
return $sectionValues;
}
/**
* Method to get the PHP settings
*
* @return array Some PHP settings
*
* @since 1.6
*/
public function &getPhpSettings()
{
if (!empty($this->php_settings))
{
return $this->php_settings;
}
$this->php_settings = array(
'safe_mode' => ini_get('safe_mode') ==
'1',
'display_errors' => ini_get('display_errors')
== '1',
'short_open_tag' => ini_get('short_open_tag')
== '1',
'file_uploads' => ini_get('file_uploads')
== '1',
'magic_quotes_gpc' =>
ini_get('magic_quotes_gpc') == '1',
'register_globals' =>
ini_get('register_globals') == '1',
'output_buffering' => (int)
ini_get('output_buffering') !== 0,
'open_basedir' => ini_get('open_basedir'),
'session.save_path' =>
ini_get('session.save_path'),
'session.auto_start' =>
ini_get('session.auto_start'),
'disable_functions' =>
ini_get('disable_functions'),
'xml' => extension_loaded('xml'),
'zlib' => extension_loaded('zlib'),
'zip' =>
function_exists('zip_open') &&
function_exists('zip_read'),
'mbstring' =>
extension_loaded('mbstring'),
'iconv' => function_exists('iconv'),
'max_input_vars' =>
ini_get('max_input_vars'),
);
return $this->php_settings;
}
/**
* Method to get the config
*
* @return array config values
*
* @since 1.6
*/
public function &getConfig()
{
if (!empty($this->config))
{
return $this->config;
}
$registry = new Registry(new JConfig);
$this->config = $registry->toArray();
$hidden = array(
'host', 'user', 'password',
'ftp_user', 'ftp_pass',
'smtpuser', 'smtppass',
'redis_server_auth', 'session_redis_server_auth',
'proxy_user', 'proxy_pass', 'secret'
);
foreach ($hidden as $key)
{
$this->config[$key] = 'xxxxxx';
}
return $this->config;
}
/**
* Method to get the system information
*
* @return array System information values
*
* @since 1.6
*/
public function &getInfo()
{
if (!empty($this->info))
{
return $this->info;
}
$version = new JVersion;
$platform = new JPlatform;
$db = $this->getDbo();
$this->info = array(
'php' => php_uname(),
'dbserver' => $db->getServerType(),
'dbversion' => $db->getVersion(),
'dbcollation' => $db->getCollation(),
'dbconnectioncollation' =>
$db->getConnectionCollation(),
'phpversion' => phpversion(),
'server' =>
isset($_SERVER['SERVER_SOFTWARE']) ?
$_SERVER['SERVER_SOFTWARE'] :
getenv('SERVER_SOFTWARE'),
'sapi_name' => php_sapi_name(),
'version' => $version->getLongVersion(),
'platform' => $platform->getLongVersion(),
'useragent' =>
isset($_SERVER['HTTP_USER_AGENT']) ?
$_SERVER['HTTP_USER_AGENT'] : '',
);
return $this->info;
}
/**
* Check if the phpinfo function is enabled
*
* @return boolean True if enabled
*
* @since 3.4.1
*/
public function phpinfoEnabled()
{
return !in_array('phpinfo', explode(',',
ini_get('disable_functions')));
}
/**
* Method to get filter data from the model
*
* @param string $dataType Type of data to get safely
* @param bool $public If true no sensitive information will be
removed
*
* @return array
*
* @since 3.5
*/
public function getSafeData($dataType, $public = true)
{
if (isset($this->safeData[$dataType]))
{
return $this->safeData[$dataType];
}
$methodName = 'get' . ucfirst($dataType);
if (!method_exists($this, $methodName))
{
return array();
}
$data = $this->$methodName($public);
$this->safeData[$dataType] = $this->cleanPrivateData($data,
$dataType);
return $this->safeData[$dataType];
}
/**
* Method to get the PHP info
*
* @return string PHP info
*
* @since 1.6
*/
public function &getPHPInfo()
{
if (!$this->phpinfoEnabled())
{
$this->php_info = JText::_('COM_ADMIN_PHPINFO_DISABLED');
return $this->php_info;
}
if (!is_null($this->php_info))
{
return $this->php_info;
}
ob_start();
date_default_timezone_set('UTC');
phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
$phpInfo = ob_get_contents();
ob_end_clean();
preg_match_all('#<body[^>]*>(.*)</body>#siU',
$phpInfo, $output);
$output = preg_replace('#<table[^>]*>#',
'<table class="table table-striped adminlist">',
$output[1][0]);
$output = preg_replace('#(\w),(\w)#', '\1, \2',
$output);
$output = preg_replace('#<hr />#', '',
$output);
$output = str_replace('<div class="center">',
'', $output);
$output = preg_replace('#<tr
class="h">(.*)<\/tr>#', '<thead><tr
class="h">$1</tr></thead><tbody>',
$output);
$output = str_replace('</table>',
'</tbody></table>', $output);
$output = str_replace('</div>', '', $output);
$this->php_info = $output;
return $this->php_info;
}
/**
* Get phpinfo() output as array
*
* @return array
*
* @since 3.5
*/
public function getPhpInfoArray()
{
// Already cached
if (null !== $this->phpInfoArray)
{
return $this->phpInfoArray;
}
$phpInfo = $this->getPhpInfo();
$this->phpInfoArray = $this->parsePhpInfo($phpInfo);
return $this->phpInfoArray;
}
/**
* Method to get a list of installed extensions
*
* @return array installed extensions
*
* @since 3.5
*/
public function getExtensions()
{
$installed = array();
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select('*')
->from($db->qn('#__extensions'));
$db->setQuery($query);
try
{
$extensions = $db->loadObjectList();
}
catch (Exception $e)
{
try
{
JLog::add(JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED',
$e->getCode(), $e->getMessage()), JLog::WARNING, 'jerror');
}
catch (RuntimeException $exception)
{
JFactory::getApplication()->enqueueMessage(
JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED',
$e->getCode(), $e->getMessage()),
'warning'
);
}
return $installed;
}
if (empty($extensions))
{
return $installed;
}
foreach ($extensions as $extension)
{
if (strlen($extension->name) == 0)
{
continue;
}
$installed[$extension->name] = array(
'name' => $extension->name,
'type' => $extension->type,
'state' => $extension->enabled ?
JText::_('JENABLED') : JText::_('JDISABLED'),
'author' => 'unknown',
'version' => 'unknown',
'creationDate' => 'unknown',
'authorUrl' => 'unknown',
);
$manifest = new Registry($extension->manifest_cache);
$extraData = array(
'author' => $manifest->get('author',
''),
'version' => $manifest->get('version',
''),
'creationDate' =>
$manifest->get('creationDate', ''),
'authorUrl' => $manifest->get('authorUrl',
'')
);
$installed[$extension->name] =
array_merge($installed[$extension->name], $extraData);
}
return $installed;
}
/**
* Method to get the directory states
*
* @param bool $public If true no information is going to be removed
*
* @return array States of directories
*
* @since 1.6
*/
public function getDirectory($public = false)
{
if (!empty($this->directories))
{
return $this->directories;
}
$this->directories = array();
$registry = JFactory::getConfig();
$cparams = JComponentHelper::getParams('com_media');
$this->addDirectory('administrator/components',
JPATH_ADMINISTRATOR . '/components');
$this->addDirectory('administrator/language',
JPATH_ADMINISTRATOR . '/language');
// List all admin languages
$admin_langs = new DirectoryIterator(JPATH_ADMINISTRATOR .
'/language');
foreach ($admin_langs as $folder)
{
if ($folder->isDot() || !$folder->isDir())
{
continue;
}
$this->addDirectory(
'administrator/language/' . $folder->getFilename(),
JPATH_ADMINISTRATOR . '/language/' .
$folder->getFilename()
);
}
// List all manifests folders
$manifests = new DirectoryIterator(JPATH_ADMINISTRATOR .
'/manifests');
foreach ($manifests as $folder)
{
if ($folder->isDot() || !$folder->isDir())
{
continue;
}
$this->addDirectory(
'administrator/manifests/' . $folder->getFilename(),
JPATH_ADMINISTRATOR . '/manifests/' .
$folder->getFilename()
);
}
$this->addDirectory('administrator/modules',
JPATH_ADMINISTRATOR . '/modules');
$this->addDirectory('administrator/templates',
JPATH_THEMES);
$this->addDirectory('components', JPATH_SITE .
'/components');
$this->addDirectory($cparams->get('image_path'),
JPATH_SITE . '/' . $cparams->get('image_path'));
// List all images folders
$image_folders = new DirectoryIterator(JPATH_SITE . '/' .
$cparams->get('image_path'));
foreach ($image_folders as $folder)
{
if ($folder->isDot() || !$folder->isDir())
{
continue;
}
$this->addDirectory(
'images/' . $folder->getFilename(),
JPATH_SITE . '/' . $cparams->get('image_path') .
'/' . $folder->getFilename()
);
}
$this->addDirectory('language', JPATH_SITE .
'/language');
// List all site languages
$site_langs = new DirectoryIterator(JPATH_SITE . '/language');
foreach ($site_langs as $folder)
{
if ($folder->isDot() || !$folder->isDir())
{
continue;
}
$this->addDirectory('language/' .
$folder->getFilename(), JPATH_SITE . '/language/' .
$folder->getFilename());
}
$this->addDirectory('libraries', JPATH_LIBRARIES);
$this->addDirectory('media', JPATH_SITE .
'/media');
$this->addDirectory('modules', JPATH_SITE .
'/modules');
$this->addDirectory('plugins', JPATH_PLUGINS);
$plugin_groups = new DirectoryIterator(JPATH_SITE .
'/plugins');
foreach ($plugin_groups as $folder)
{
if ($folder->isDot() || !$folder->isDir())
{
continue;
}
$this->addDirectory('plugins/' . $folder->getFilename(),
JPATH_PLUGINS . '/' . $folder->getFilename());
}
$this->addDirectory('templates', JPATH_SITE .
'/templates');
$this->addDirectory('configuration.php', JPATH_CONFIGURATION
. '/configuration.php');
// Is there a cache path in configuration.php?
if ($cache_path = trim($registry->get('cache_path',
'')))
{
// Frontend and backend use same directory for caching.
$this->addDirectory($cache_path, $cache_path,
'COM_ADMIN_CACHE_DIRECTORY');
}
else
{
$this->addDirectory('cache', JPATH_SITE .
'/cache', 'COM_ADMIN_CACHE_DIRECTORY');
$this->addDirectory('administrator/cache', JPATH_CACHE,
'COM_ADMIN_CACHE_DIRECTORY');
}
if ($public)
{
$this->addDirectory(
'log',
$registry->get('log_path', JPATH_ADMINISTRATOR .
'/logs'),
'COM_ADMIN_LOG_DIRECTORY'
);
$this->addDirectory(
'tmp',
$registry->get('tmp_path', JPATH_ROOT . '/tmp'),
'COM_ADMIN_TEMP_DIRECTORY'
);
}
else
{
$this->addDirectory(
$registry->get('log_path', JPATH_ADMINISTRATOR .
'/logs'),
$registry->get('log_path', JPATH_ADMINISTRATOR .
'/logs'),
'COM_ADMIN_LOG_DIRECTORY'
);
$this->addDirectory(
$registry->get('tmp_path', JPATH_ROOT . '/tmp'),
$registry->get('tmp_path', JPATH_ROOT . '/tmp'),
'COM_ADMIN_TEMP_DIRECTORY'
);
}
return $this->directories;
}
/**
* Method to add a directory
*
* @param string $name Directory Name
* @param string $path Directory path
* @param string $message Message
*
* @return void
*
* @since 1.6
*/
private function addDirectory($name, $path, $message = '')
{
$this->directories[$name] = array('writable' =>
is_writable($path), 'message' => $message,);
}
/**
* Method to get the editor
*
* @return string The default editor
*
* @note Has to be removed (it is present in the config...)
* @since 1.6
*/
public function &getEditor()
{
if (!is_null($this->editor))
{
return $this->editor;
}
$this->editor = JFactory::getConfig()->get('editor');
return $this->editor;
}
/**
* Parse phpinfo output into an array
* Source https://gist.github.com/sbmzhcn/6255314
*
* @param string $html Output of phpinfo()
*
* @return array
*
* @since 3.5
*/
protected function parsePhpInfo($html)
{
$html = strip_tags($html, '<h2><th><td>');
$html =
preg_replace('/<th[^>]*>([^<]+)<\/th>/',
'<info>\1</info>', $html);
$html =
preg_replace('/<td[^>]*>([^<]+)<\/td>/',
'<info>\1</info>', $html);
$t = preg_split('/(<h2[^>]*>[^<]+<\/h2>)/',
$html, -1, PREG_SPLIT_DELIM_CAPTURE);
$r = array();
$count = count($t);
$p1 = '<info>([^<]+)<\/info>';
$p2 = '/' . $p1 . '\s*' . $p1 . '\s*' . $p1
. '/';
$p3 = '/' . $p1 . '\s*' . $p1 . '/';
for ($i = 1; $i < $count; $i++)
{
if (preg_match('/<h2[^>]*>([^<]+)<\/h2>/',
$t[$i], $matchs))
{
$name = trim($matchs[1]);
$vals = explode("\n", $t[$i + 1]);
foreach ($vals AS $val)
{
// 3cols
if (preg_match($p2, $val, $matchs))
{
$r[$name][trim($matchs[1])] = array(trim($matchs[2]),
trim($matchs[3]),);
}
// 2cols
elseif (preg_match($p3, $val, $matchs))
{
$r[$name][trim($matchs[1])] = trim($matchs[2]);
}
}
}
}
return $r;
}
}
postinstall/addnosniff.php000064400000001306151166706140011753
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*
* This file contains post-installation message handling for notifying
users of a change
* in the default .htaccess and web.config files.
*/
defined('_JEXEC') or die;
/**
* Notifies users of the add the nosniff headers by applying the changes
from the default .htaccess or web.config file
*
* This check returns true regardless of condition.
*
* @return boolean
*
* @since 3.4
*/
function admin_postinstall_addnosniff_condition()
{
return true;
}
postinstall/eaccelerator.php000064400000004676151166706140012306
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*
* This file contains post-installation message handling for eAccelerator
compatibility.
*/
defined('_JEXEC') or die;
use Joomla\Registry\Registry;
use Joomla\Utilities\ArrayHelper;
/**
* Checks if the eAccelerator caching method is enabled.
*
* This check should be done through the 3.x series as the issue impacts
migrated sites which will
* most often come from the previous LTS release (2.5). Remove for version
4 or when eAccelerator support is added.
*
* This check returns true when the eAccelerator caching method is user,
meaning that the message concerning it should be displayed.
*
* @return integer
*
* @since 3.2
*/
function admin_postinstall_eaccelerator_condition()
{
$app = JFactory::getApplication();
$cacheHandler = $app->get('cacheHandler', '');
return (ucfirst($cacheHandler) == 'Eaccelerator');
}
/**
* Disables the unsupported eAccelerator caching method, replacing it with
the "file" caching method.
*
* @return void
*
* @since 3.2
*/
function admin_postinstall_eaccelerator_action()
{
$prev = ArrayHelper::fromObject(new JConfig);
$data = array_merge($prev, array('cacheHandler' =>
'file'));
$config = new Registry($data);
jimport('joomla.filesystem.path');
jimport('joomla.filesystem.file');
// Set the configuration file path.
$file = JPATH_CONFIGURATION . '/configuration.php';
// Get the new FTP credentials.
$ftp = JClientHelper::getCredentials('ftp', true);
// Attempt to make the file writeable if using FTP.
if (!$ftp['enabled'] && JPath::isOwner($file) &&
!JPath::setPermissions($file, '0644'))
{
JError::raiseNotice(500,
JText::_('COM_CONFIG_ERROR_CONFIGURATION_PHP_NOTWRITABLE'));
}
// Attempt to write the configuration file as a PHP class named JConfig.
$configuration = $config->toString('PHP',
array('class' => 'JConfig', 'closingtag'
=> false));
if (!JFile::write($file, $configuration))
{
JFactory::getApplication()->enqueueMessage(JText::_('COM_CONFIG_ERROR_WRITE_FAILED'),
'error');
return;
}
// Attempt to make the file unwriteable if NOT using FTP.
if (!$ftp['enabled'] && JPath::isOwner($file) &&
!JPath::setPermissions($file, '0444'))
{
JError::raiseNotice(500,
JText::_('COM_CONFIG_ERROR_CONFIGURATION_PHP_NOTUNWRITABLE'));
}
}
postinstall/htaccess.php000064400000001227151166706140011437
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*
* This file contains post-installation message handling for notifying
users of a change
* in the default .htaccess and web.config files.
*/
defined('_JEXEC') or die;
/**
* Notifies users of a change in the default .htaccess or web.config file
*
* This check returns true regardless of condition.
*
* @return boolean
*
* @since 3.4
*/
function admin_postinstall_htaccess_condition()
{
return true;
}
postinstall/htaccesssvg.php000064400000001320151166706140012151
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*
* This file contains post-installation message handling for notifying
users of a change
* in the default .htaccess file regarding hardening against XSS in
SVG's
*/
defined('_JEXEC') or die;
/**
* Notifies users of a change in the default .htaccess file regarding
hardening against XSS in SVG's
*
* This check returns true regardless of condition.
*
* @return boolean
*
* @since 3.9.21
*/
function admin_postinstall_htaccesssvg_condition()
{
return true;
}
postinstall/joomla40checks.php000064400000003571151166706140012454
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*
* This file contains post-installation message handling for Joomla 4.0 pre
checks
*/
defined('_JEXEC') or die;
/**
* Checks if the installation meets the current requirements for Joomla 4
*
* @return boolean True if any check fails.
*
* @since 3.7
*
* @link https://developer.joomla.org/news/658-joomla4-manifesto.html
* @link
https://developer.joomla.org/news/704-looking-forward-with-joomla-4.html
* @link https://developer.joomla.org/news/788-joomla-4-on-the-move.html
*/
function admin_postinstall_joomla40checks_condition()
{
$db = JFactory::getDbo();
$serverType = $db->getServerType();
$serverVersion = $db->getVersion();
if ($serverType == 'mssql')
{
// MS SQL support will be dropped
return true;
}
if ($serverType == 'postgresql' &&
version_compare($serverVersion, '11.0', 'lt'))
{
// PostgreSQL minimum version is 11.0
return true;
}
// Check whether we have a MariaDB version string and extract the proper
version from it
if ($serverType == 'mysql' && stripos($serverVersion,
'mariadb') !== false)
{
$serverVersion = preg_replace('/^5\.5\.5-/', '',
$serverVersion);
// MariaDB minimum version is 10.1
if (version_compare($serverVersion, '10.1', 'lt'))
{
return true;
}
}
if ($serverType == 'mysql' &&
version_compare($serverVersion, '5.6', 'lt'))
{
// MySQL minimum version is 5.6.0
return true;
}
if ($db->name === 'mysql')
{
// Using deprecated MySQL driver
return true;
}
if ($db->name === 'postgresql')
{
// Using deprecated PostgreSQL driver
return true;
}
// PHP minimum version is 7.2.5
return version_compare(PHP_VERSION, '7.2.5', 'lt');
}
postinstall/languageaccess340.php000064400000002315151166706140013035
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*
* This file contains post-installation message handling for the checks if
the installation is
* affected by the issue with content languages access in 3.4.0
*/
defined('_JEXEC') or die;
/**
* Checks if the installation is affected by the issue with content
languages access in 3.4.0
*
* @link https://github.com/joomla/joomla-cms/pull/6172
* @link https://github.com/joomla/joomla-cms/pull/6194
*
* @return boolean
*
* @since 3.4.1
*/
function admin_postinstall_languageaccess340_condition()
{
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select($db->quoteName('access'))
->from($db->quoteName('#__languages'))
->where($db->quoteName('access') . ' = ' .
$db->quote('0'));
$db->setQuery($query);
$db->execute();
$numRows = $db->getNumRows();
if (isset($numRows) && $numRows != 0)
{
// We have rows here so we have at minumum one row with access set to 0
return true;
}
// All good the query return nothing.
return false;
}
postinstall/statscollection.php000064400000001100151166706140013042
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*
* This file contains post-installation message handling for the checking
minimum PHP version support
*/
defined('_JEXEC') or die;
/**
* Alerts the user we are collecting anonymous data as of Joomla 3.5.0.
*
* @return boolean
*
* @since 3.5
*/
function admin_postinstall_statscollection_condition()
{
return true;
}
postinstall/textfilter3919.php000064400000001205151166706140012356
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*
* This file contains post-installation message handling for notifying
users of a change
* in the default textfilter settings
*/
defined('_JEXEC') or die;
/**
* Notifies users the changes from the default textfilter.
*
* This check returns true regardless of condition.
*
* @return boolean
*
* @since 3.9.19
*/
function admin_postinstall_textfilter3919_condition()
{
return true;
}
postinstall/updatedefaultsettings.php000064400000001204151166706140014245
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*
* This file contains post-installation message handling for notifying
users of a change
* in various default settings.
*/
defined('_JEXEC') or die;
/**
* Notifies users of a change in various default settings
*
* This check returns true regardless of condition.
*
* @return boolean
*
* @since 3.8.8
*/
function admin_postinstall_updatedefaultsettings_condition()
{
return true;
}
script.php000064400000354612151166706140006603 0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
/**
* Script file of Joomla CMS
*
* @since 1.6.4
*/
class JoomlaInstallerScript
{
/**
* The Joomla Version we are updating from
*
* @var string
* @since 3.7
*/
protected $fromVersion = null;
/**
* Function to act prior to installation process begins
*
* @param string $action Which action is happening
(install|uninstall|discover_install|update)
* @param JInstaller $installer The class calling this method
*
* @return boolean True on success
*
* @since 3.7.0
*/
public function preflight($action, $installer)
{
if ($action === 'update')
{
// Get the version we are updating from
if (!empty($installer->extension->manifest_cache))
{
$manifestValues =
json_decode($installer->extension->manifest_cache, true);
if ((array_key_exists('version', $manifestValues)))
{
$this->fromVersion = $manifestValues['version'];
return true;
}
}
return false;
}
return true;
}
/**
* Method to update Joomla!
*
* @param JInstaller $installer The class calling this method
*
* @return void
*/
public function update($installer)
{
$options['format'] =
'{DATE}\t{TIME}\t{LEVEL}\t{CODE}\t{MESSAGE}';
$options['text_file'] = 'joomla_update.php';
JLog::addLogger($options, JLog::INFO, array('Update',
'databasequery', 'jerror'));
try
{
JLog::add(JText::_('COM_JOOMLAUPDATE_UPDATE_LOG_DELETE_FILES'),
JLog::INFO, 'Update');
}
catch (RuntimeException $exception)
{
// Informational log only
}
// This needs to stay for 2.5 update compatibility
$this->deleteUnexistingFiles();
$this->updateManifestCaches();
$this->updateDatabase();
$this->clearRadCache();
$this->updateAssets($installer);
$this->clearStatsCache();
$this->convertTablesToUtf8mb4(true);
$this->cleanJoomlaCache();
// VERY IMPORTANT! THIS METHOD SHOULD BE CALLED LAST, SINCE IT COULD
// LOGOUT ALL THE USERS
$this->flushSessions();
}
/**
* Called after any type of action
*
* @param string $action Which action is happening
(install|uninstall|discover_install|update)
* @param JInstaller $installer The class calling this method
*
* @return boolean True on success
*
* @since 3.7.0
*/
public function postflight($action, $installer)
{
if ($action === 'update')
{
if (!empty($this->fromVersion) &&
version_compare($this->fromVersion, '3.7.0', 'lt'))
{
/*
* Do a check if the menu item exists, skip if it does. Only needed
when we are in pre stable state.
*/
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select('id')
->from($db->quoteName('#__menu'))
->where($db->quoteName('menutype') . ' = ' .
$db->quote('main'))
->where($db->quoteName('title') . ' = ' .
$db->quote('com_associations'))
->where($db->quoteName('client_id') . ' =
1')
->where($db->quoteName('component_id') . ' =
34');
$result = $db->setQuery($query)->loadResult();
if (!empty($result))
{
return true;
}
/*
* Add a menu item for com_associations, we need to do that here
because with a plain sql statement we
* damage the nested set structure for the menu table
*/
$newMenuItem = JTable::getInstance('Menu');
$data = array();
$data['menutype'] = 'main';
$data['title'] = 'com_associations';
$data['alias'] = 'Multilingual Associations';
$data['path'] = 'Multilingual Associations';
$data['link'] =
'index.php?option=com_associations';
$data['type'] = 'component';
$data['published'] = 1;
$data['parent_id'] = 1;
// We have used a SQL Statement to add the extension so using 34 is
safe (fingers crossed)
$data['component_id'] = 34;
$data['img'] = 'class:associations';
$data['language'] = '*';
$data['client_id'] = 1;
$newMenuItem->setLocation($data['parent_id'],
'last-child');
if (!$newMenuItem->save($data))
{
// Install failed, roll back changes
$installer->abort(JText::sprintf('JLIB_INSTALLER_ABORT_COMP_INSTALL_ROLLBACK',
$newMenuItem->getError()));
return false;
}
}
}
return true;
}
/**
* Method to clear our stats plugin cache to ensure we get fresh data on
Joomla Update
*
* @return void
*
* @since 3.5
*/
protected function clearStatsCache()
{
$db = JFactory::getDbo();
try
{
// Get the params for the stats plugin
$params = $db->setQuery(
$db->getQuery(true)
->select($db->quoteName('params'))
->from($db->quoteName('#__extensions'))
->where($db->quoteName('type') . ' = ' .
$db->quote('plugin'))
->where($db->quoteName('folder') . ' = ' .
$db->quote('system'))
->where($db->quoteName('element') . ' = ' .
$db->quote('stats'))
)->loadResult();
}
catch (Exception $e)
{
echo JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED',
$e->getCode(), $e->getMessage()) . '<br />';
return;
}
$params = json_decode($params, true);
// Reset the last run parameter
if (isset($params['lastrun']))
{
$params['lastrun'] = '';
}
$params = json_encode($params);
$query = $db->getQuery(true)
->update($db->quoteName('#__extensions'))
->set($db->quoteName('params') . ' = ' .
$db->quote($params))
->where($db->quoteName('type') . ' = ' .
$db->quote('plugin'))
->where($db->quoteName('folder') . ' = ' .
$db->quote('system'))
->where($db->quoteName('element') . ' = ' .
$db->quote('stats'));
try
{
$db->setQuery($query)->execute();
}
catch (Exception $e)
{
echo JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED',
$e->getCode(), $e->getMessage()) . '<br />';
return;
}
}
/**
* Method to update Database
*
* @return void
*/
protected function updateDatabase()
{
if (JFactory::getDbo()->getServerType() === 'mysql')
{
$this->updateDatabaseMysql();
}
$this->uninstallEosPlugin();
$this->removeJedUpdateserver();
}
/**
* Method to update MySQL Database
*
* @return void
*/
protected function updateDatabaseMysql()
{
$db = JFactory::getDbo();
$db->setQuery('SHOW ENGINES');
try
{
$results = $db->loadObjectList();
}
catch (Exception $e)
{
echo JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED',
$e->getCode(), $e->getMessage()) . '<br />';
return;
}
foreach ($results as $result)
{
if ($result->Support != 'DEFAULT')
{
continue;
}
$db->setQuery('ALTER TABLE #__update_sites_extensions ENGINE =
' . $result->Engine);
try
{
$db->execute();
}
catch (Exception $e)
{
echo JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED',
$e->getCode(), $e->getMessage()) . '<br />';
return;
}
break;
}
}
/**
* Uninstall the 2.5 EOS plugin
*
* @return void
*/
protected function uninstallEosPlugin()
{
$db = JFactory::getDbo();
// Check if the 2.5 EOS plugin is present and uninstall it if so
$id = $db->setQuery(
$db->getQuery(true)
->select('extension_id')
->from('#__extensions')
->where('name = ' .
$db->quote('PLG_EOSNOTIFY'))
)->loadResult();
// Skip update when id doesn’t exists
if (!$id)
{
return;
}
// We need to unprotect the plugin so we can uninstall it
$db->setQuery(
$db->getQuery(true)
->update('#__extensions')
->set('protected = 0')
->where($db->quoteName('extension_id') . ' =
' . $id)
)->execute();
$installer = new JInstaller;
$installer->uninstall('plugin', $id);
}
/**
* Remove the never used JED Updateserver
*
* @return void
*
* @since 3.7.0
*/
protected function removeJedUpdateserver()
{
$db = JFactory::getDbo();
try
{
// Get the update site ID of the JED Update server
$id = $db->setQuery(
$db->getQuery(true)
->select('update_site_id')
->from($db->quoteName('#__update_sites'))
->where($db->quoteName('location') . ' = ' .
$db->quote('https://update.joomla.org/jed/list.xml'))
)->loadResult();
// Skip delete when id doesn’t exists
if (!$id)
{
return;
}
// Delete from update sites
$db->setQuery(
$db->getQuery(true)
->delete($db->quoteName('#__update_sites'))
->where($db->quoteName('update_site_id') . ' =
' . $id)
)->execute();
// Delete from update sites extensions
$db->setQuery(
$db->getQuery(true)
->delete($db->quoteName('#__update_sites_extensions'))
->where($db->quoteName('update_site_id') . ' =
' . $id)
)->execute();
}
catch (Exception $e)
{
echo JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED',
$e->getCode(), $e->getMessage()) . '<br />';
return;
}
}
/**
* Update the manifest caches
*
* @return void
*/
protected function updateManifestCaches()
{
$extensions = JExtensionHelper::getCoreExtensions();
// Attempt to refresh manifest caches
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select('*')
->from('#__extensions');
foreach ($extensions as $extension)
{
$query->where(
'type=' . $db->quote($extension[0])
. ' AND element=' . $db->quote($extension[1])
. ' AND folder=' . $db->quote($extension[2])
. ' AND client_id=' . $extension[3], 'OR'
);
}
$db->setQuery($query);
try
{
$extensions = $db->loadObjectList();
}
catch (Exception $e)
{
echo JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED',
$e->getCode(), $e->getMessage()) . '<br />';
return;
}
$installer = new JInstaller;
foreach ($extensions as $extension)
{
if (!$installer->refreshManifestCache($extension->extension_id))
{
echo JText::sprintf('FILES_JOOMLA_ERROR_MANIFEST',
$extension->type, $extension->element, $extension->name,
$extension->client_id) . '<br />';
}
}
}
/**
* Delete files that should not exist
*
* @return void
*/
public function deleteUnexistingFiles()
{
$files = array(
/*
* Joomla 1.5
*
* Because of the way some sites were upgraded forward from 1.5, they
may still have some files from the
* core libraries that need to be explicitly checked for and removed
because of the migration of the
* core libraries to using PHP namespaces. For example, the JVersion
file is in an autoloaded path in 2.5+
* and due to the autoloader priorities the JVersion class will be used
before the namespaced
* Joomla\CMS\Version. This is a failsafe to ensure those files which
MAY conflict with the current API
* are removed.
*/
'/libraries/joomla/version.php',
/*
* Joomla 1.6 - 1.7 - 2.5
*/
'/administrator/components/com_content/models/fields/filters.php',
'/administrator/components/com_users/helpers/levels.php',
'/administrator/modules/mod_quickicon/tmpl/default_button.php',
'/administrator/templates/bluestork/params.ini',
'/administrator/templates/hathor/params.ini',
'/includes/version.php',
'/libraries/joomla/application/applicationexception.php',
'/libraries/joomla/client/http.php',
'/libraries/joomla/database/databaseexception.php',
'/libraries/joomla/database/databasequery.php',
'/libraries/joomla/filter/filterinput.php',
'/libraries/joomla/filter/filteroutput.php',
'/libraries/joomla/form/formfield.php',
'/libraries/joomla/form/formrule.php',
'/libraries/joomla/log/logentry.php',
'/libraries/joomla/utilities/garbagecron.txt',
'/libraries/joomlacms/index.html',
'/libraries/phpmailer/language/phpmailer.lang-en.php',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/img/flash.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/img/flv_player.swf',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/img/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/img/quicktime.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/img/realmedia.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/img/shockwave.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/img/trans.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/img/windowsmedia.gif',
'/media/system/css/modal_msie.css',
'/media/system/images/modal/closebox.gif',
/*
* Joomla 2.5.0 thru 3.0.0
*/
'/administrator/components/com_admin/sql/updates/mysql/1.7.0-2011-06-06-2.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.0-2011-06-06.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.0.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-15-2.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-15-3.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-15-4.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-15.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-17.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-20.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.3-2011-10-15.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.3-2011-10-19.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.3-2011-11-10.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.4-2011-11-19.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.4-2011-11-23.sql',
'/administrator/components/com_admin/sql/updates/mysql/1.7.4-2011-12-12.sql',
'/administrator/components/com_admin/sql/updates/sqlsrv/2.5.2-2012-03-05.sql',
'/administrator/components/com_admin/sql/updates/sqlsrv/2.5.3-2012-03-13.sql',
'/administrator/components/com_admin/sql/updates/sqlsrv/index.html',
'/administrator/components/com_admin/views/sysinfo/tmpl/default_navigation.php',
'/administrator/components/com_categories/config.xml',
'/administrator/components/com_categories/helpers/categoriesadministrator.php',
'/administrator/components/com_contact/elements/contact.php',
'/administrator/components/com_contact/elements/index.html',
'/administrator/components/com_content/elements/article.php',
'/administrator/components/com_content/elements/author.php',
'/administrator/components/com_content/elements/index.html',
'/administrator/components/com_installer/models/fields/client.php',
'/administrator/components/com_installer/models/fields/group.php',
'/administrator/components/com_installer/models/fields/index.html',
'/administrator/components/com_installer/models/fields/search.php',
'/administrator/components/com_installer/models/forms/index.html',
'/administrator/components/com_installer/models/forms/manage.xml',
'/administrator/components/com_installer/views/install/tmpl/default_form.php',
'/administrator/components/com_installer/views/manage/tmpl/default_filter.php',
'/administrator/components/com_languages/views/installed/tmpl/default_ftp.php',
'/administrator/components/com_languages/views/installed/tmpl/default_navigation.php',
'/administrator/components/com_modules/models/fields/index.html',
'/administrator/components/com_modules/models/fields/moduleorder.php',
'/administrator/components/com_modules/models/fields/moduleposition.php',
'/administrator/components/com_newsfeeds/elements/index.html',
'/administrator/components/com_newsfeeds/elements/newsfeed.php',
'/administrator/components/com_templates/views/prevuuw/index.html',
'/administrator/components/com_templates/views/prevuuw/tmpl/default.php',
'/administrator/components/com_templates/views/prevuuw/tmpl/index.html',
'/administrator/components/com_templates/views/prevuuw/view.html.php',
'/administrator/components/com_users/controllers/config.php',
'/administrator/includes/menu.php',
'/administrator/includes/router.php',
'/administrator/language/en-GB/en-GB.plg_system_finder.ini',
'/administrator/language/en-GB/en-GB.plg_system_finder.sys.ini',
'/administrator/manifests/packages/pkg_joomla.xml',
'/administrator/modules/mod_submenu/helper.php',
'/administrator/templates/hathor/css/ie6.css',
'/administrator/templates/hathor/html/mod_submenu/index.html',
'/administrator/templates/hathor/html/mod_submenu/default.php',
'/components/com_media/controller.php',
'/components/com_media/helpers/index.html',
'/components/com_media/helpers/media.php',
'/includes/menu.php',
'/includes/pathway.php',
'/includes/router.php',
'/language/en-GB/en-GB.pkg_joomla.sys.ini',
'/libraries/cms/cmsloader.php',
'/libraries/cms/controller/index.html',
'/libraries/cms/controller/legacy.php',
'/libraries/cms/model/index.html',
'/libraries/cms/model/legacy.php',
'/libraries/cms/schema/changeitemmysql.php',
'/libraries/cms/schema/changeitemsqlazure.php',
'/libraries/cms/schema/changeitemsqlsrv.php',
'/libraries/cms/view/index.html',
'/libraries/cms/view/legacy.php',
'/libraries/joomla/application/application.php',
'/libraries/joomla/application/categories.php',
'/libraries/joomla/application/cli/daemon.php',
'/libraries/joomla/application/cli/index.html',
'/libraries/joomla/application/component/controller.php',
'/libraries/joomla/application/component/controlleradmin.php',
'/libraries/joomla/application/component/controllerform.php',
'/libraries/joomla/application/component/helper.php',
'/libraries/joomla/application/component/index.html',
'/libraries/joomla/application/component/model.php',
'/libraries/joomla/application/component/modeladmin.php',
'/libraries/joomla/application/component/modelform.php',
'/libraries/joomla/application/component/modelitem.php',
'/libraries/joomla/application/component/modellist.php',
'/libraries/joomla/application/component/view.php',
'/libraries/joomla/application/helper.php',
'/libraries/joomla/application/input.php',
'/libraries/joomla/application/input/cli.php',
'/libraries/joomla/application/input/cookie.php',
'/libraries/joomla/application/input/files.php',
'/libraries/joomla/application/input/index.html',
'/libraries/joomla/application/menu.php',
'/libraries/joomla/application/module/helper.php',
'/libraries/joomla/application/module/index.html',
'/libraries/joomla/application/pathway.php',
'/libraries/joomla/application/web/webclient.php',
'/libraries/joomla/base/node.php',
'/libraries/joomla/base/object.php',
'/libraries/joomla/base/observable.php',
'/libraries/joomla/base/observer.php',
'/libraries/joomla/base/tree.php',
'/libraries/joomla/cache/storage/eaccelerator.php',
'/libraries/joomla/cache/storage/helpers/helper.php',
'/libraries/joomla/cache/storage/helpers/index.html',
'/libraries/joomla/database/database/index.html',
'/libraries/joomla/database/database/mysql.php',
'/libraries/joomla/database/database/mysqlexporter.php',
'/libraries/joomla/database/database/mysqli.php',
'/libraries/joomla/database/database/mysqliexporter.php',
'/libraries/joomla/database/database/mysqliimporter.php',
'/libraries/joomla/database/database/mysqlimporter.php',
'/libraries/joomla/database/database/mysqliquery.php',
'/libraries/joomla/database/database/mysqlquery.php',
'/libraries/joomla/database/database/sqlazure.php',
'/libraries/joomla/database/database/sqlazurequery.php',
'/libraries/joomla/database/database/sqlsrv.php',
'/libraries/joomla/database/database/sqlsrvquery.php',
'/libraries/joomla/database/exception.php',
'/libraries/joomla/database/table.php',
'/libraries/joomla/database/table/asset.php',
'/libraries/joomla/database/table/category.php',
'/libraries/joomla/database/table/content.php',
'/libraries/joomla/database/table/extension.php',
'/libraries/joomla/database/table/index.html',
'/libraries/joomla/database/table/language.php',
'/libraries/joomla/database/table/menu.php',
'/libraries/joomla/database/table/menutype.php',
'/libraries/joomla/database/table/module.php',
'/libraries/joomla/database/table/session.php',
'/libraries/joomla/database/table/update.php',
'/libraries/joomla/database/table/user.php',
'/libraries/joomla/database/table/usergroup.php',
'/libraries/joomla/database/table/viewlevel.php',
'/libraries/joomla/database/tablenested.php',
'/libraries/joomla/environment/request.php',
'/libraries/joomla/environment/uri.php',
'/libraries/joomla/error/error.php',
'/libraries/joomla/error/exception.php',
'/libraries/joomla/error/index.html',
'/libraries/joomla/error/log.php',
'/libraries/joomla/error/profiler.php',
'/libraries/joomla/filesystem/archive.php',
'/libraries/joomla/filesystem/archive/bzip2.php',
'/libraries/joomla/filesystem/archive/gzip.php',
'/libraries/joomla/filesystem/archive/index.html',
'/libraries/joomla/filesystem/archive/tar.php',
'/libraries/joomla/filesystem/archive/zip.php',
'/libraries/joomla/form/fields/category.php',
'/libraries/joomla/form/fields/componentlayout.php',
'/libraries/joomla/form/fields/contentlanguage.php',
'/libraries/joomla/form/fields/editor.php',
'/libraries/joomla/form/fields/editors.php',
'/libraries/joomla/form/fields/helpsite.php',
'/libraries/joomla/form/fields/media.php',
'/libraries/joomla/form/fields/menu.php',
'/libraries/joomla/form/fields/menuitem.php',
'/libraries/joomla/form/fields/modulelayout.php',
'/libraries/joomla/form/fields/templatestyle.php',
'/libraries/joomla/form/fields/user.php',
'/libraries/joomla/html/editor.php',
'/libraries/joomla/html/html/access.php',
'/libraries/joomla/html/html/batch.php',
'/libraries/joomla/html/html/behavior.php',
'/libraries/joomla/html/html/category.php',
'/libraries/joomla/html/html/content.php',
'/libraries/joomla/html/html/contentlanguage.php',
'/libraries/joomla/html/html/date.php',
'/libraries/joomla/html/html/email.php',
'/libraries/joomla/html/html/form.php',
'/libraries/joomla/html/html/grid.php',
'/libraries/joomla/html/html/image.php',
'/libraries/joomla/html/html/index.html',
'/libraries/joomla/html/html/jgrid.php',
'/libraries/joomla/html/html/list.php',
'/libraries/joomla/html/html/menu.php',
'/libraries/joomla/html/html/number.php',
'/libraries/joomla/html/html/rules.php',
'/libraries/joomla/html/html/select.php',
'/libraries/joomla/html/html/sliders.php',
'/libraries/joomla/html/html/string.php',
'/libraries/joomla/html/html/tabs.php',
'/libraries/joomla/html/html/tel.php',
'/libraries/joomla/html/html/user.php',
'/libraries/joomla/html/pagination.php',
'/libraries/joomla/html/pane.php',
'/libraries/joomla/html/parameter.php',
'/libraries/joomla/html/parameter/element.php',
'/libraries/joomla/html/parameter/element/calendar.php',
'/libraries/joomla/html/parameter/element/category.php',
'/libraries/joomla/html/parameter/element/componentlayouts.php',
'/libraries/joomla/html/parameter/element/contentlanguages.php',
'/libraries/joomla/html/parameter/element/editors.php',
'/libraries/joomla/html/parameter/element/filelist.php',
'/libraries/joomla/html/parameter/element/folderlist.php',
'/libraries/joomla/html/parameter/element/helpsites.php',
'/libraries/joomla/html/parameter/element/hidden.php',
'/libraries/joomla/html/parameter/element/imagelist.php',
'/libraries/joomla/html/parameter/element/index.html',
'/libraries/joomla/html/parameter/element/languages.php',
'/libraries/joomla/html/parameter/element/list.php',
'/libraries/joomla/html/parameter/element/menu.php',
'/libraries/joomla/html/parameter/element/menuitem.php',
'/libraries/joomla/html/parameter/element/modulelayouts.php',
'/libraries/joomla/html/parameter/element/password.php',
'/libraries/joomla/html/parameter/element/radio.php',
'/libraries/joomla/html/parameter/element/spacer.php',
'/libraries/joomla/html/parameter/element/sql.php',
'/libraries/joomla/html/parameter/element/templatestyle.php',
'/libraries/joomla/html/parameter/element/text.php',
'/libraries/joomla/html/parameter/element/textarea.php',
'/libraries/joomla/html/parameter/element/timezones.php',
'/libraries/joomla/html/parameter/element/usergroup.php',
'/libraries/joomla/html/parameter/index.html',
'/libraries/joomla/html/toolbar.php',
'/libraries/joomla/html/toolbar/button.php',
'/libraries/joomla/html/toolbar/button/confirm.php',
'/libraries/joomla/html/toolbar/button/custom.php',
'/libraries/joomla/html/toolbar/button/help.php',
'/libraries/joomla/html/toolbar/button/index.html',
'/libraries/joomla/html/toolbar/button/link.php',
'/libraries/joomla/html/toolbar/button/popup.php',
'/libraries/joomla/html/toolbar/button/separator.php',
'/libraries/joomla/html/toolbar/button/standard.php',
'/libraries/joomla/html/toolbar/index.html',
'/libraries/joomla/image/filters/brightness.php',
'/libraries/joomla/image/filters/contrast.php',
'/libraries/joomla/image/filters/edgedetect.php',
'/libraries/joomla/image/filters/emboss.php',
'/libraries/joomla/image/filters/grayscale.php',
'/libraries/joomla/image/filters/index.html',
'/libraries/joomla/image/filters/negate.php',
'/libraries/joomla/image/filters/sketchy.php',
'/libraries/joomla/image/filters/smooth.php',
'/libraries/joomla/language/help.php',
'/libraries/joomla/language/latin_transliterate.php',
'/libraries/joomla/log/logexception.php',
'/libraries/joomla/log/loggers/database.php',
'/libraries/joomla/log/loggers/echo.php',
'/libraries/joomla/log/loggers/formattedtext.php',
'/libraries/joomla/log/loggers/index.html',
'/libraries/joomla/log/loggers/messagequeue.php',
'/libraries/joomla/log/loggers/syslog.php',
'/libraries/joomla/log/loggers/w3c.php',
'/libraries/joomla/methods.php',
'/libraries/joomla/session/storage/eaccelerator.php',
'/libraries/joomla/string/stringnormalize.php',
'/libraries/joomla/utilities/date.php',
'/libraries/joomla/utilities/simplecrypt.php',
'/libraries/joomla/utilities/simplexml.php',
'/libraries/joomla/utilities/string.php',
'/libraries/joomla/utilities/xmlelement.php',
'/media/com_finder/images/calendar.png',
'/media/com_finder/images/index.html',
'/media/com_finder/images/mime/index.html',
'/media/com_finder/images/mime/pdf.png',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/editor_template_src.js',
'/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js',
'/media/plg_quickicon_extensionupdate/extensionupdatecheck.js',
'/media/plg_quickicon_joomlaupdate/jupdatecheck.js',
/*
* Joomla! 3.0.0 thru 3.1.0
*/
'/administrator/components/com_languages/views/installed/tmpl/default_ftp.php',
'/administrator/language/en-GB/en-GB.plg_content_geshi.ini',
'/administrator/language/en-GB/en-GB.plg_content_geshi.sys.ini',
'/administrator/templates/hathor/html/com_contact/contact/edit_metadata.php',
'/administrator/templates/hathor/html/com_newsfeeds/newsfeed/edit_metadata.php',
'/administrator/templates/hathor/html/com_weblinks/weblink/edit_metadata.php',
'/administrator/templates/hathor/html/mod_submenu/default.php',
'/administrator/templates/hathor/html/mod_submenu/index.html',
'/libraries/cms/feed/entry.php',
'/libraries/cms/feed/factory.php',
'/libraries/cms/feed/feed.php',
'/libraries/cms/feed/index.html',
'/libraries/cms/feed/link.php',
'/libraries/cms/feed/parser.php',
'/libraries/cms/feed/parser/atom.php',
'/libraries/cms/feed/parser/index.html',
'/libraries/cms/feed/parser/namespace.php',
'/libraries/cms/feed/parser/rss.php',
'/libraries/cms/feed/person.php',
'/libraries/joomla/form/rules/boolean.php',
'/libraries/joomla/form/rules/color.php',
'/libraries/joomla/form/rules/email.php',
'/libraries/joomla/form/rules/equals.php',
'/libraries/joomla/form/rules/index.html',
'/libraries/joomla/form/rules/options.php',
'/libraries/joomla/form/rules/rules.php',
'/libraries/joomla/form/rules/tel.php',
'/libraries/joomla/form/rules/url.php',
'/libraries/joomla/form/rules/username.php',
'/libraries/joomla/installer/adapters/component.php',
'/libraries/joomla/installer/adapters/file.php',
'/libraries/joomla/installer/adapters/index.html',
'/libraries/joomla/installer/adapters/language.php',
'/libraries/joomla/installer/adapters/library.php',
'/libraries/joomla/installer/adapters/module.php',
'/libraries/joomla/installer/adapters/package.php',
'/libraries/joomla/installer/adapters/plugin.php',
'/libraries/joomla/installer/adapters/template.php',
'/libraries/joomla/installer/extension.php',
'/libraries/joomla/installer/helper.php',
'/libraries/joomla/installer/index.html',
'/libraries/joomla/installer/installer.php',
'/libraries/joomla/installer/librarymanifest.php',
'/libraries/joomla/installer/packagemanifest.php',
'/media/system/css/mooRainbow.css',
'/media/system/js/mooRainbow-uncompressed.js',
'/media/system/js/mooRainbow.js',
'/media/system/js/swf-uncompressed.js',
'/media/system/js/swf.js',
'/media/system/js/uploader-uncompressed.js',
'/media/system/js/uploader.js',
'/media/system/swf/index.html',
'/media/system/swf/uploader.swf',
/*
* Joomla! 3.1.0 thru 3.2.0
*/
'/administrator/components/com_banners/models/fields/ordering.php',
'/administrator/components/com_config/helper/component.php',
'/administrator/components/com_config/models/fields/filters.php',
'/administrator/components/com_config/models/fields/index.html',
'/administrator/components/com_config/models/forms/application.xml',
'/administrator/components/com_config/models/forms/index.html',
'/administrator/components/com_config/views/application/index.html',
'/administrator/components/com_config/views/application/tmpl/default.php',
'/administrator/components/com_config/views/application/tmpl/default_cache.php',
'/administrator/components/com_config/views/application/tmpl/default_cookie.php',
'/administrator/components/com_config/views/application/tmpl/default_database.php',
'/administrator/components/com_config/views/application/tmpl/default_debug.php',
'/administrator/components/com_config/views/application/tmpl/default_filters.php',
'/administrator/components/com_config/views/application/tmpl/default_ftp.php',
'/administrator/components/com_config/views/application/tmpl/default_ftplogin.php',
'/administrator/components/com_config/views/application/tmpl/default_locale.php',
'/administrator/components/com_config/views/application/tmpl/default_mail.php',
'/administrator/components/com_config/views/application/tmpl/default_metadata.php',
'/administrator/components/com_config/views/application/tmpl/default_navigation.php',
'/administrator/components/com_config/views/application/tmpl/default_permissions.php',
'/administrator/components/com_config/views/application/tmpl/default_seo.php',
'/administrator/components/com_config/views/application/tmpl/default_server.php',
'/administrator/components/com_config/views/application/tmpl/default_session.php',
'/administrator/components/com_config/views/application/tmpl/default_site.php',
'/administrator/components/com_config/views/application/tmpl/default_system.php',
'/administrator/components/com_config/views/application/tmpl/index.html',
'/administrator/components/com_config/views/application/view.html.php',
'/administrator/components/com_config/views/close/index.html',
'/administrator/components/com_config/views/close/view.html.php',
'/administrator/components/com_config/views/component/index.html',
'/administrator/components/com_config/views/component/tmpl/default.php',
'/administrator/components/com_config/views/component/tmpl/default_navigation.php',
'/administrator/components/com_config/views/component/tmpl/index.html',
'/administrator/components/com_config/views/component/view.html.php',
'/administrator/components/com_config/views/index.html',
'/administrator/components/com_contact/models/fields/modal/contacts.php',
'/administrator/components/com_contact/models/fields/ordering.php',
'/administrator/components/com_newsfeeds/models/fields/modal/newsfeeds.php',
'/administrator/components/com_newsfeeds/models/fields/ordering.php',
'/administrator/components/com_plugins/models/fields/ordering.php',
'/administrator/components/com_templates/controllers/source.php',
'/administrator/components/com_templates/models/source.php',
'/administrator/components/com_templates/views/source/index.html',
'/administrator/components/com_templates/views/source/tmpl/edit.php',
'/administrator/components/com_templates/views/source/tmpl/edit_ftp.php',
'/administrator/components/com_templates/views/source/tmpl/index.html',
'/administrator/components/com_templates/views/source/view.html.php',
'/administrator/components/com_weblinks/models/fields/index.html',
'/administrator/components/com_weblinks/models/fields/ordering.php',
'/administrator/help/en-GB/Components_Banners_Banners.html',
'/administrator/help/en-GB/Components_Banners_Banners_Edit.html',
'/administrator/help/en-GB/Components_Banners_Categories.html',
'/administrator/help/en-GB/Components_Banners_Category_Edit.html',
'/administrator/help/en-GB/Components_Banners_Clients.html',
'/administrator/help/en-GB/Components_Banners_Clients_Edit.html',
'/administrator/help/en-GB/Components_Banners_Tracks.html',
'/administrator/help/en-GB/Components_Contact_Categories.html',
'/administrator/help/en-GB/Components_Contact_Category_Edit.html',
'/administrator/help/en-GB/Components_Contacts_Contacts.html',
'/administrator/help/en-GB/Components_Contacts_Contacts_Edit.html',
'/administrator/help/en-GB/Components_Content_Categories.html',
'/administrator/help/en-GB/Components_Content_Category_Edit.html',
'/administrator/help/en-GB/Components_Messaging_Inbox.html',
'/administrator/help/en-GB/Components_Messaging_Read.html',
'/administrator/help/en-GB/Components_Messaging_Write.html',
'/administrator/help/en-GB/Components_Newsfeeds_Categories.html',
'/administrator/help/en-GB/Components_Newsfeeds_Category_Edit.html',
'/administrator/help/en-GB/Components_Newsfeeds_Feeds.html',
'/administrator/help/en-GB/Components_Newsfeeds_Feeds_Edit.html',
'/administrator/help/en-GB/Components_Redirect_Manager.html',
'/administrator/help/en-GB/Components_Redirect_Manager_Edit.html',
'/administrator/help/en-GB/Components_Search.html',
'/administrator/help/en-GB/Components_Weblinks_Categories.html',
'/administrator/help/en-GB/Components_Weblinks_Category_Edit.html',
'/administrator/help/en-GB/Components_Weblinks_Links.html',
'/administrator/help/en-GB/Components_Weblinks_Links_Edit.html',
'/administrator/help/en-GB/Content_Article_Manager.html',
'/administrator/help/en-GB/Content_Article_Manager_Edit.html',
'/administrator/help/en-GB/Content_Featured_Articles.html',
'/administrator/help/en-GB/Content_Media_Manager.html',
'/administrator/help/en-GB/Extensions_Extension_Manager_Discover.html',
'/administrator/help/en-GB/Extensions_Extension_Manager_Install.html',
'/administrator/help/en-GB/Extensions_Extension_Manager_Manage.html',
'/administrator/help/en-GB/Extensions_Extension_Manager_Update.html',
'/administrator/help/en-GB/Extensions_Extension_Manager_Warnings.html',
'/administrator/help/en-GB/Extensions_Language_Manager_Content.html',
'/administrator/help/en-GB/Extensions_Language_Manager_Edit.html',
'/administrator/help/en-GB/Extensions_Language_Manager_Installed.html',
'/administrator/help/en-GB/Extensions_Module_Manager.html',
'/administrator/help/en-GB/Extensions_Module_Manager_Edit.html',
'/administrator/help/en-GB/Extensions_Plugin_Manager.html',
'/administrator/help/en-GB/Extensions_Plugin_Manager_Edit.html',
'/administrator/help/en-GB/Extensions_Template_Manager_Styles.html',
'/administrator/help/en-GB/Extensions_Template_Manager_Styles_Edit.html',
'/administrator/help/en-GB/Extensions_Template_Manager_Templates.html',
'/administrator/help/en-GB/Extensions_Template_Manager_Templates_Edit.html',
'/administrator/help/en-GB/Extensions_Template_Manager_Templates_Edit_Source.html',
'/administrator/help/en-GB/Glossary.html',
'/administrator/help/en-GB/Menus_Menu_Item_Manager.html',
'/administrator/help/en-GB/Menus_Menu_Item_Manager_Edit.html',
'/administrator/help/en-GB/Menus_Menu_Manager.html',
'/administrator/help/en-GB/Menus_Menu_Manager_Edit.html',
'/administrator/help/en-GB/Site_Global_Configuration.html',
'/administrator/help/en-GB/Site_Maintenance_Clear_Cache.html',
'/administrator/help/en-GB/Site_Maintenance_Global_Check-in.html',
'/administrator/help/en-GB/Site_Maintenance_Purge_Expired_Cache.html',
'/administrator/help/en-GB/Site_System_Information.html',
'/administrator/help/en-GB/Start_Here.html',
'/administrator/help/en-GB/Users_Access_Levels.html',
'/administrator/help/en-GB/Users_Access_Levels_Edit.html',
'/administrator/help/en-GB/Users_Debug_Users.html',
'/administrator/help/en-GB/Users_Groups.html',
'/administrator/help/en-GB/Users_Groups_Edit.html',
'/administrator/help/en-GB/Users_Mass_Mail_Users.html',
'/administrator/help/en-GB/Users_User_Manager.html',
'/administrator/help/en-GB/Users_User_Manager_Edit.html',
'/administrator/help/en-GB/css/docbook.css',
'/administrator/help/en-GB/css/help.css',
'/administrator/includes/application.php',
'/includes/application.php',
'/libraries/joomla/application/router.php',
'/libraries/joomla/environment/response.php',
'/libraries/joomla/html/access.php',
'/libraries/joomla/html/behavior.php',
'/libraries/joomla/html/content.php',
'/libraries/joomla/html/date.php',
'/libraries/joomla/html/email.php',
'/libraries/joomla/html/form.php',
'/libraries/joomla/html/grid.php',
'/libraries/joomla/html/html.php',
'/libraries/joomla/html/index.html',
'/libraries/joomla/html/jgrid.php',
'/libraries/joomla/html/language/en-GB/en-GB.jhtmldate.ini',
'/libraries/joomla/html/language/en-GB/index.html',
'/libraries/joomla/html/language/index.html',
'/libraries/joomla/html/list.php',
'/libraries/joomla/html/number.php',
'/libraries/joomla/html/rules.php',
'/libraries/joomla/html/select.php',
'/libraries/joomla/html/sliders.php',
'/libraries/joomla/html/string.php',
'/libraries/joomla/html/tabs.php',
'/libraries/joomla/html/tel.php',
'/libraries/joomla/html/user.php',
'/libraries/joomla/pagination/index.html',
'/libraries/joomla/pagination/object.php',
'/libraries/joomla/pagination/pagination.php',
'/libraries/joomla/plugin/helper.php',
'/libraries/joomla/plugin/index.html',
'/libraries/joomla/plugin/plugin.php',
'/libraries/legacy/application/helper.php',
'/libraries/legacy/component/helper.php',
'/libraries/legacy/component/index.html',
'/libraries/legacy/html/contentlanguage.php',
'/libraries/legacy/html/index.html',
'/libraries/legacy/html/menu.php',
'/libraries/legacy/menu/index.html',
'/libraries/legacy/menu/menu.php',
'/libraries/legacy/module/helper.php',
'/libraries/legacy/module/index.html',
'/libraries/legacy/pathway/index.html',
'/libraries/legacy/pathway/pathway.php',
'/media/editors/codemirror/css/csscolors.css',
'/media/editors/codemirror/css/jscolors.css',
'/media/editors/codemirror/css/phpcolors.css',
'/media/editors/codemirror/css/sparqlcolors.css',
'/media/editors/codemirror/css/xmlcolors.css',
'/media/editors/codemirror/js/basefiles-uncompressed.js',
'/media/editors/codemirror/js/basefiles.js',
'/media/editors/codemirror/js/codemirror-uncompressed.js',
'/media/editors/codemirror/js/editor.js',
'/media/editors/codemirror/js/highlight.js',
'/media/editors/codemirror/js/mirrorframe.js',
'/media/editors/codemirror/js/parsecss.js',
'/media/editors/codemirror/js/parsedummy.js',
'/media/editors/codemirror/js/parsehtmlmixed.js',
'/media/editors/codemirror/js/parsejavascript.js',
'/media/editors/codemirror/js/parsephp.js',
'/media/editors/codemirror/js/parsephphtmlmixed.js',
'/media/editors/codemirror/js/parsesparql.js',
'/media/editors/codemirror/js/parsexml.js',
'/media/editors/codemirror/js/select.js',
'/media/editors/codemirror/js/stringstream.js',
'/media/editors/codemirror/js/tokenize.js',
'/media/editors/codemirror/js/tokenizejavascript.js',
'/media/editors/codemirror/js/tokenizephp.js',
'/media/editors/codemirror/js/undo.js',
'/media/editors/codemirror/js/util.js',
'/media/editors/tinymce/jscripts/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/langs/en.js',
'/media/editors/tinymce/jscripts/tiny_mce/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/license.txt',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advhr/css/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advhr/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advhr/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advhr/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/css/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/img/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlink/css/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlink/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlink/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlink/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlist/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autolink/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autoresize/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autosave/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autosave/langs/en.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autosave/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/bbcode/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/contextmenu/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/directionality/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-frown.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/js/emotions.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullpage/css/fullpage.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullpage/css/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullpage/fullpage.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullpage/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullpage/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullscreen/fullscreen.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullscreen/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/iespell/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/template.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/insertdatetime/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/layer/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/lists/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/css/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/css/media.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/js/embed.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/js/media.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/media.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/moxieplayer.swf',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/nonbreaking/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/noneditable/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/paste/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/paste/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/paste/js/pastetext.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/paste/js/pasteword.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/paste/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/paste/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/paste/pastetext.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/paste/pasteword.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/preview/example.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/preview/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/embed.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/preview/preview.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/print/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/save/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/searchreplace.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/searchreplace.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/content.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/wline.gif',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/spellchecker/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/style/css/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/style/css/props.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/style/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/style/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/style/js/props.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/style/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/style/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/style/props.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/style/readme.txt',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/tabfocus/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/tabfocus/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/cell.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/css/cell.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/css/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/css/row.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/css/table.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/js/cell.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/js/merge_cells.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/js/row.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/js/table.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/merge_cells.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/row.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/table.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/template/blank.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/template/css/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/template/css/template.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/template/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/template/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/template/js/template.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/template/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/template/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/template/template.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/visualblocks/css/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/visualblocks/css/visualblocks.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/visualblocks/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/visualblocks/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/wordcount/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/about.htm',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/anchor.htm',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/image.htm',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/img/colorpicker.jpg',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/img/flash.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/img/icons.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/img/iframe.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/img/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/img/pagebreak.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/img/quicktime.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/img/realmedia.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/img/shockwave.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/img/trans.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/img/video.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/img/windowsmedia.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/js/about.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/js/anchor.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/js/charmap.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/js/color_picker.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/js/image.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/js/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/js/link.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/js/source_editor.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/langs/en.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/langs/en_dlg.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/link.htm',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/shortcuts.htm',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/content.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/buttons.png',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/items.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/progress.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/ui.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/content.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/dialog.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/ui.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/content.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/source_editor.htm',
'/media/editors/tinymce/jscripts/tiny_mce/themes/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/editor_template.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/img/icons.gif',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/img/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/langs/en.js',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/langs/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/skins/default/content.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/skins/default/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/skins/default/ui.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/skins/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/content.css',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/img/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/ui.css',
'/media/editors/tinymce/jscripts/tiny_mce/tiny_mce.js',
'/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_popup.js',
'/media/editors/tinymce/jscripts/tiny_mce/utils/editable_selects.js',
'/media/editors/tinymce/jscripts/tiny_mce/utils/form_utils.js',
'/media/editors/tinymce/jscripts/tiny_mce/utils/index.html',
'/media/editors/tinymce/jscripts/tiny_mce/utils/mctabs.js',
'/media/editors/tinymce/jscripts/tiny_mce/utils/validate.js',
'/media/editors/tinymce/templates/template_list.js',
'/media/system/swf/uploader.swf',
'/templates/protostar/html/editor_content.css',
/*
* Joomla! 3.2.0 thru 3.3.0
*/
'/libraries/fof/platform/joomla.php',
'/libraries/fof/readme.txt',
'/libraries/joomla/github/gists.php',
'/libraries/joomla/github/issues.php',
'/libraries/joomla/github/pulls.php',
'/libraries/joomla/github/users.php',
'/libraries/joomla/registry/format.php',
'/libraries/joomla/registry/format/index.html',
'/libraries/joomla/registry/format/ini.php',
'/libraries/joomla/registry/format/json.php',
'/libraries/joomla/registry/format/php.php',
'/libraries/joomla/registry/format/xml.php',
'/libraries/joomla/registry/index.html',
'/libraries/joomla/registry/registry.php',
'/media/com_finder/js/finder.js',
'/media/com_finder/js/highlighter.js',
'/plugins/user/joomla/postinstall/actions.php',
'/plugins/user/joomla/postinstall/index.html',
/*
* Joomla! 3.3.0 thru 3.4.0
*/
'/administrator/components/com_tags/helpers/html/index.html',
'/administrator/components/com_tags/models/fields/index.html',
'/administrator/manifests/libraries/phpmailer.xml',
'/administrator/templates/hathor/html/com_finder/filter/index.html',
'/administrator/templates/hathor/html/com_finder/statistics/index.html',
'/administrator/templates/isis/html/message.php',
'/components/com_contact/helpers/icon.php',
'/language/en-GB/en-GB.lib_phpmailer.sys.ini',
'/libraries/compat/jsonserializable.php',
'/libraries/compat/password/LICENSE.md',
'/libraries/compat/password/lib/password.php',
'/libraries/compat/password/lib/version_test.php',
'/libraries/framework/Joomla/Application/Cli/CliOutput.php',
'/libraries/framework/Joomla/Application/Cli/ColorProcessor.php',
'/libraries/framework/Joomla/Application/Cli/ColorStyle.php',
'/libraries/framework/Joomla/Application/Cli/Output/Processor/ColorProcessor.php',
'/libraries/framework/Joomla/Application/Cli/Output/Processor/ProcessorInterface.php',
'/libraries/framework/Joomla/Application/Cli/Output/Stdout.php',
'/libraries/framework/Joomla/Application/Cli/Output/Xml.php',
'/libraries/framework/Joomla/DI/Container.php',
'/libraries/framework/Joomla/DI/ContainerAwareInterface.php',
'/libraries/framework/Joomla/DI/Exception/DependencyResolutionException.php',
'/libraries/framework/Joomla/DI/ServiceProviderInterface.php',
'/libraries/framework/Joomla/Registry/AbstractRegistryFormat.php',
'/libraries/framework/Joomla/Registry/Format/Ini.php',
'/libraries/framework/Joomla/Registry/Format/Json.php',
'/libraries/framework/Joomla/Registry/Format/Php.php',
'/libraries/framework/Joomla/Registry/Format/Xml.php',
'/libraries/framework/Joomla/Registry/Format/Yaml.php',
'/libraries/framework/Joomla/Registry/Registry.php',
'/libraries/framework/Symfony/Component/Yaml/Dumper.php',
'/libraries/framework/Symfony/Component/Yaml/Escaper.php',
'/libraries/framework/Symfony/Component/Yaml/Exception/DumpException.php',
'/libraries/framework/Symfony/Component/Yaml/Exception/ExceptionInterface.php',
'/libraries/framework/Symfony/Component/Yaml/Exception/ParseException.php',
'/libraries/framework/Symfony/Component/Yaml/Exception/RuntimeException.php',
'/libraries/framework/Symfony/Component/Yaml/Inline.php',
'/libraries/framework/Symfony/Component/Yaml/LICENSE',
'/libraries/framework/Symfony/Component/Yaml/Parser.php',
'/libraries/framework/Symfony/Component/Yaml/Unescaper.php',
'/libraries/framework/Symfony/Component/Yaml/Yaml.php',
'/libraries/joomla/string/inflector.php',
'/libraries/joomla/string/normalise.php',
'/libraries/phpmailer/LICENSE',
'/libraries/phpmailer/language/phpmailer.lang-joomla.php',
'/libraries/phpmailer/phpmailer.php',
'/libraries/phpmailer/pop3.php',
'/libraries/phpmailer/smtp.php',
'/media/editors/codemirror/css/ambiance.css',
'/media/editors/codemirror/css/codemirror.css',
'/media/editors/codemirror/css/configuration.css',
'/media/editors/codemirror/js/brace-fold.js',
'/media/editors/codemirror/js/clike.js',
'/media/editors/codemirror/js/closebrackets.js',
'/media/editors/codemirror/js/closetag.js',
'/media/editors/codemirror/js/codemirror.js',
'/media/editors/codemirror/js/css.js',
'/media/editors/codemirror/js/foldcode.js',
'/media/editors/codemirror/js/foldgutter.js',
'/media/editors/codemirror/js/fullscreen.js',
'/media/editors/codemirror/js/htmlmixed.js',
'/media/editors/codemirror/js/indent-fold.js',
'/media/editors/codemirror/js/javascript.js',
'/media/editors/codemirror/js/less.js',
'/media/editors/codemirror/js/matchbrackets.js',
'/media/editors/codemirror/js/matchtags.js',
'/media/editors/codemirror/js/php.js',
'/media/editors/codemirror/js/xml-fold.js',
'/media/editors/codemirror/js/xml.js',
'/media/system/js/validate-jquery-uncompressed.js',
'/templates/beez3/html/message.php',
/*
* Joomla! 3.4.0 thru 3.5.0
*/
'/administrator/components/com_config/controller/application/refreshhelp.php',
'/administrator/components/com_media/models/forms/index.html',
'/administrator/templates/hathor/html/com_categories/categories/default_batch.php',
'/administrator/templates/hathor/html/com_tags/tags/default_batch.php',
'/components/com_wrapper/views/wrapper/metadata.xml',
'/libraries/classloader.php',
'/libraries/ClassLoader.php',
'/libraries/composer_autoload.php',
'/libraries/joomla/document/error/error.php',
'/libraries/joomla/document/feed/feed.php',
'/libraries/joomla/document/html/html.php',
'/libraries/joomla/document/image/image.php',
'/libraries/joomla/document/json/json.php',
'/libraries/joomla/document/opensearch/opensearch.php',
'/libraries/joomla/document/raw/raw.php',
'/libraries/joomla/document/xml/xml.php',
'/libraries/vendor/phpmailer/phpmailer/extras/class.html2text.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Dumper.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Escaper.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/DumpException.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/ExceptionInterface.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/ParseException.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/RuntimeException.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Inline.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/LICENSE',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Unescaper.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Yaml.php',
'/media/com_banners/banner.js',
'/media/com_finder/css/finder-rtl.css',
'/media/com_finder/css/selectfilter.css',
'/media/com_finder/css/sliderfilter.css',
'/media/com_finder/js/sliderfilter.js',
'/media/com_joomlaupdate/default.js',
'/media/com_joomlaupdate/encryption.js',
'/media/com_joomlaupdate/json2.js',
'/media/com_joomlaupdate/update.js',
'/media/editors/codemirror/lib/addons-uncompressed.js',
'/media/editors/codemirror/lib/codemirror-uncompressed.css',
'/media/editors/codemirror/lib/codemirror-uncompressed.js',
'/media/editors/codemirror/mode/clike/scala.html',
'/media/editors/codemirror/mode/css/less.html',
'/media/editors/codemirror/mode/css/less_test.js',
'/media/editors/codemirror/mode/css/scss.html',
'/media/editors/codemirror/mode/css/scss_test.js',
'/media/editors/codemirror/mode/css/test.js',
'/media/editors/codemirror/mode/gfm/test.js',
'/media/editors/codemirror/mode/haml/test.js',
'/media/editors/codemirror/mode/javascript/json-ld.html',
'/media/editors/codemirror/mode/javascript/test.js',
'/media/editors/codemirror/mode/javascript/typescript.html',
'/media/editors/codemirror/mode/kotlin/kotlin.js',
'/media/editors/codemirror/mode/kotlin/kotlin.min.js',
'/media/editors/codemirror/mode/markdown/test.js',
'/media/editors/codemirror/mode/php/test.js',
'/media/editors/codemirror/mode/ruby/test.js',
'/media/editors/codemirror/mode/shell/test.js',
'/media/editors/codemirror/mode/slim/test.js',
'/media/editors/codemirror/mode/smartymixed/smartymixed.js',
'/media/editors/codemirror/mode/stex/test.js',
'/media/editors/codemirror/mode/textile/test.js',
'/media/editors/codemirror/mode/verilog/test.js',
'/media/editors/codemirror/mode/xml/test.js',
'/media/editors/codemirror/mode/xquery/test.js',
'/media/editors/tinymce/plugins/compat3x/editable_selects.js',
'/media/editors/tinymce/plugins/compat3x/form_utils.js',
'/media/editors/tinymce/plugins/compat3x/mctabs.js',
'/media/editors/tinymce/plugins/compat3x/tiny_mce_popup.js',
'/media/editors/tinymce/plugins/compat3x/validate.js',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon-small.eot',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon-small.svg',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon-small.ttf',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon-small.woff',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon.eot',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon.svg',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon.ttf',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon.woff',
'/media/editors/tinymce/skins/lightgray/fonts/readme.md',
'/media/editors/tinymce/skins/lightgray/fonts/tinymce-small.dev.svg',
'/media/editors/tinymce/skins/lightgray/fonts/tinymce.dev.svg',
'/media/editors/tinymce/skins/lightgray/img/wline.gif',
'/media/mod_languages/images/km_kr.gif',
'/media/mod_languages/images/si_LK.gif',
'/plugins/editors/codemirror/styles.css',
'/plugins/editors/codemirror/styles.min.css',
/*
* Joomla! 3.5.0 thru 3.6.0
*/
'/administrator/components/com_installer/views/languages/tmpl/default_filter.php',
'/administrator/components/com_joomlaupdate/helpers/download.php',
'/administrator/manifests/libraries/simplepie.xml',
'/administrator/templates/isis/js/bootstrap.min.js',
'/administrator/templates/isis/js/jquery.js',
'/libraries/joomla/application/web/client.php',
'/libraries/simplepie/LICENSE.txt',
'/libraries/simplepie/README.txt',
'/libraries/simplepie/idn/LICENCE',
'/libraries/simplepie/idn/ReadMe.txt',
'/libraries/simplepie/idn/idna_convert.class.php',
'/libraries/simplepie/idn/npdata.ser',
'/libraries/simplepie/simplepie.php',
'/media/mod_languages/images/si_lk.gif',
'/media/system/js/permissions.min.js',
'/plugins/editors/tinymce/fields/skins.php',
'/plugins/user/profile/fields/dob.php',
'/plugins/user/profile/fields/tos.php',
/*
* Joomla! 3.6.0 thru 3.7.0
*/
'/administrator/components/com_banners/views/banners/tmpl/default_batch.php',
'/administrator/components/com_cache/layouts/joomla/searchtools/default.php',
'/administrator/components/com_cache/layouts/joomla/searchtools/default/bar.php',
'/administrator/components/com_categories/views/categories/tmpl/default_batch.php',
'/administrator/components/com_categories/views/category/tmpl/edit_extrafields.php',
'/administrator/components/com_categories/views/category/tmpl/edit_options.php',
'/administrator/components/com_content/views/articles/tmpl/default_batch.php',
'/administrator/components/com_installer/controllers/languages.php',
'/administrator/components/com_languages/layouts/joomla/searchtools/default.php',
'/administrator/components/com_media/views/medialist/tmpl/thumbs_doc.php',
'/administrator/components/com_media/views/medialist/tmpl/thumbs_folder.php',
'/administrator/components/com_media/views/medialist/tmpl/thumbs_img.php',
'/administrator/components/com_media/views/medialist/tmpl/thumbs_video.php',
'/administrator/components/com_menus/views/items/tmpl/default_batch.php',
'/administrator/components/com_messages/layouts/toolbar/mysettings.php',
'/administrator/components/com_modules/layouts/joomla/searchtools/default.php',
'/administrator/components/com_modules/layouts/joomla/searchtools/default/bar.php',
'/administrator/components/com_modules/views/modules/tmpl/default_batch.php',
'/administrator/components/com_newsfeeds/views/newsfeeds/tmpl/default_batch.php',
'/administrator/components/com_redirect/views/links/tmpl/default_batch.php',
'/administrator/components/com_tags/views/tags/tmpl/default_batch.php',
'/administrator/components/com_templates/layouts/joomla/searchtools/default.php',
'/administrator/components/com_templates/layouts/joomla/searchtools/default/bar.php',
'/administrator/components/com_users/models/fields/components.php',
'/administrator/components/com_users/views/users/tmpl/default_batch.php',
'/administrator/modules/mod_menu/tmpl/default_disabled.php',
'/administrator/modules/mod_menu/tmpl/default_enabled.php',
'/administrator/templates/hathor/html/mod_menu/default_enabled.php',
'/components/com_contact/metadata.xml',
'/components/com_contact/views/category/metadata.xml',
'/components/com_contact/views/contact/metadata.xml',
'/components/com_contact/views/featured/metadata.xml',
'/components/com_content/metadata.xml',
'/components/com_content/views/archive/metadata.xml',
'/components/com_content/views/article/metadata.xml',
'/components/com_content/views/categories/metadata.xml',
'/components/com_content/views/category/metadata.xml',
'/components/com_content/views/featured/metadata.xml',
'/components/com_content/views/form/metadata.xml',
'/components/com_finder/views/search/metadata.xml',
'/components/com_mailto/views/mailto/metadata.xml',
'/components/com_mailto/views/sent/metadata.xml',
'/components/com_newsfeeds/metadata.xml',
'/components/com_newsfeeds/views/category/metadata.xml',
'/components/com_newsfeeds/views/newsfeed/metadata.xml',
'/components/com_search/views/search/metadata.xml',
'/components/com_tags/metadata.xml',
'/components/com_tags/views/tag/metadata.xml',
'/components/com_users/metadata.xml',
'/components/com_users/views/login/metadata.xml',
'/components/com_users/views/profile/metadata.xml',
'/components/com_users/views/registration/metadata.xml',
'/components/com_users/views/remind/metadata.xml',
'/components/com_users/views/reset/metadata.xml',
'/components/com_wrapper/metadata.xml',
'/libraries/joomla/data/data.php',
'/libraries/joomla/data/dumpable.php',
'/libraries/joomla/data/set.php',
'/libraries/joomla/database/iterator/azure.php',
'/libraries/joomla/user/authentication.php',
'/libraries/platform.php',
'/media/editors/codemirror/mode/jade/jade.js',
'/media/editors/codemirror/mode/jade/jade.min.js',
'/media/editors/none/none.js',
'/media/editors/none/none.min.js',
'/media/editors/tinymce/plugins/jdragdrop/plugin.js',
'/media/editors/tinymce/plugins/jdragdrop/plugin.min.js',
'/media/editors/tinymce/plugins/media/moxieplayer.swf',
'/media/system/js/tiny-close.js',
'/media/system/js/tiny-close.min.js',
/*
* Joomla! 3.7.0 thru 3.8.0
*/
'/administrator/components/com_admin/postinstall/phpversion.php',
'/administrator/components/com_content/models/fields/votelist.php',
'/administrator/modules/mod_menu/preset/disabled.php',
'/administrator/modules/mod_menu/preset/enabled.php',
'/components/com_content/layouts/field/prepare/modal_article.php',
'/components/com_fields/controllers/field.php',
'/libraries/cms/application/administrator.php',
'/libraries/cms/application/cms.php',
'/libraries/cms/application/helper.php',
'/libraries/cms/application/site.php',
'/libraries/cms/authentication/helper.php',
'/libraries/cms/captcha/captcha.php',
'/libraries/cms/component/exception/missing.php',
'/libraries/cms/component/helper.php',
'/libraries/cms/component/record.php',
'/libraries/cms/component/router/base.php',
'/libraries/cms/component/router/interface.php',
'/libraries/cms/component/router/legacy.php',
'/libraries/cms/component/router/rules/interface.php',
'/libraries/cms/component/router/rules/menu.php',
'/libraries/cms/component/router/rules/nomenu.php',
'/libraries/cms/component/router/rules/standard.php',
'/libraries/cms/component/router/view.php',
'/libraries/cms/component/router/viewconfiguration.php',
'/libraries/cms/editor/editor.php',
'/libraries/cms/error/page.php',
'/libraries/cms/form/field/author.php',
'/libraries/cms/form/field/captcha.php',
'/libraries/cms/form/field/chromestyle.php',
'/libraries/cms/form/field/contenthistory.php',
'/libraries/cms/form/field/contentlanguage.php',
'/libraries/cms/form/field/contenttype.php',
'/libraries/cms/form/field/editor.php',
'/libraries/cms/form/field/frontend_language.php',
'/libraries/cms/form/field/headertag.php',
'/libraries/cms/form/field/helpsite.php',
'/libraries/cms/form/field/lastvisitdaterange.php',
'/libraries/cms/form/field/limitbox.php',
'/libraries/cms/form/field/media.php',
'/libraries/cms/form/field/menu.php',
'/libraries/cms/form/field/menuitem.php',
'/libraries/cms/form/field/moduleorder.php',
'/libraries/cms/form/field/moduleposition.php',
'/libraries/cms/form/field/moduletag.php',
'/libraries/cms/form/field/ordering.php',
'/libraries/cms/form/field/plugin_status.php',
'/libraries/cms/form/field/registrationdaterange.php',
'/libraries/cms/form/field/status.php',
'/libraries/cms/form/field/tag.php',
'/libraries/cms/form/field/templatestyle.php',
'/libraries/cms/form/field/user.php',
'/libraries/cms/form/field/useractive.php',
'/libraries/cms/form/field/usergrouplist.php',
'/libraries/cms/form/field/userstate.php',
'/libraries/cms/form/rule/captcha.php',
'/libraries/cms/form/rule/notequals.php',
'/libraries/cms/form/rule/password.php',
'/libraries/cms/help/help.php',
'/libraries/cms/helper/content.php',
'/libraries/cms/helper/contenthistory.php',
'/libraries/cms/helper/helper.php',
'/libraries/cms/helper/media.php',
'/libraries/cms/helper/route.php',
'/libraries/cms/helper/tags.php',
'/libraries/cms/helper/usergroups.php',
'/libraries/cms/html/html.php',
'/libraries/cms/installer/adapter.php',
'/libraries/cms/installer/adapter/component.php',
'/libraries/cms/installer/adapter/file.php',
'/libraries/cms/installer/adapter/language.php',
'/libraries/cms/installer/adapter/library.php',
'/libraries/cms/installer/adapter/module.php',
'/libraries/cms/installer/adapter/package.php',
'/libraries/cms/installer/adapter/plugin.php',
'/libraries/cms/installer/adapter/template.php',
'/libraries/cms/installer/extension.php',
'/libraries/cms/installer/helper.php',
'/libraries/cms/installer/installer.php',
'/libraries/cms/installer/manifest.php',
'/libraries/cms/installer/manifest/library.php',
'/libraries/cms/installer/manifest/package.php',
'/libraries/cms/installer/script.php',
'/libraries/cms/language/associations.php',
'/libraries/cms/language/multilang.php',
'/libraries/cms/layout/base.php',
'/libraries/cms/layout/file.php',
'/libraries/cms/layout/helper.php',
'/libraries/cms/layout/layout.php',
'/libraries/cms/library/helper.php',
'/libraries/cms/menu/administrator.php',
'/libraries/cms/menu/item.php',
'/libraries/cms/menu/menu.php',
'/libraries/cms/menu/site.php',
'/libraries/cms/module/helper.php',
'/libraries/cms/pagination/object.php',
'/libraries/cms/pagination/pagination.php',
'/libraries/cms/pathway/pathway.php',
'/libraries/cms/pathway/site.php',
'/libraries/cms/plugin/helper.php',
'/libraries/cms/plugin/plugin.php',
'/libraries/cms/response/json.php',
'/libraries/cms/router/administrator.php',
'/libraries/cms/router/router.php',
'/libraries/cms/router/site.php',
'/libraries/cms/schema/changeitem.php',
'/libraries/cms/schema/changeitem/mysql.php',
'/libraries/cms/schema/changeitem/postgresql.php',
'/libraries/cms/schema/changeitem/sqlsrv.php',
'/libraries/cms/schema/changeset.php',
'/libraries/cms/search/helper.php',
'/libraries/cms/table/contenthistory.php',
'/libraries/cms/table/contenttype.php',
'/libraries/cms/table/corecontent.php',
'/libraries/cms/table/ucm.php',
'/libraries/cms/toolbar/button.php',
'/libraries/cms/toolbar/button/confirm.php',
'/libraries/cms/toolbar/button/custom.php',
'/libraries/cms/toolbar/button/help.php',
'/libraries/cms/toolbar/button/link.php',
'/libraries/cms/toolbar/button/popup.php',
'/libraries/cms/toolbar/button/separator.php',
'/libraries/cms/toolbar/button/slider.php',
'/libraries/cms/toolbar/button/standard.php',
'/libraries/cms/toolbar/toolbar.php',
'/libraries/cms/ucm/base.php',
'/libraries/cms/ucm/content.php',
'/libraries/cms/ucm/type.php',
'/libraries/cms/ucm/ucm.php',
'/libraries/cms/version/version.php',
'/libraries/joomla/access/access.php',
'/libraries/joomla/access/exception/notallowed.php',
'/libraries/joomla/access/rule.php',
'/libraries/joomla/access/rules.php',
'/libraries/joomla/access/wrapper/access.php',
'/libraries/joomla/application/base.php',
'/libraries/joomla/application/cli.php',
'/libraries/joomla/application/daemon.php',
'/libraries/joomla/application/route.php',
'/libraries/joomla/application/web.php',
'/libraries/joomla/association/extension/helper.php',
'/libraries/joomla/association/extension/interface.php',
'/libraries/joomla/authentication/authentication.php',
'/libraries/joomla/authentication/response.php',
'/libraries/joomla/cache/cache.php',
'/libraries/joomla/cache/controller.php',
'/libraries/joomla/cache/controller/callback.php',
'/libraries/joomla/cache/controller/output.php',
'/libraries/joomla/cache/controller/page.php',
'/libraries/joomla/cache/controller/view.php',
'/libraries/joomla/cache/exception.php',
'/libraries/joomla/cache/exception/connecting.php',
'/libraries/joomla/cache/exception/unsupported.php',
'/libraries/joomla/cache/storage.php',
'/libraries/joomla/cache/storage/apc.php',
'/libraries/joomla/cache/storage/apcu.php',
'/libraries/joomla/cache/storage/cachelite.php',
'/libraries/joomla/cache/storage/file.php',
'/libraries/joomla/cache/storage/helper.php',
'/libraries/joomla/cache/storage/memcache.php',
'/libraries/joomla/cache/storage/memcached.php',
'/libraries/joomla/cache/storage/redis.php',
'/libraries/joomla/cache/storage/wincache.php',
'/libraries/joomla/cache/storage/xcache.php',
'/libraries/joomla/client/ftp.php',
'/libraries/joomla/client/helper.php',
'/libraries/joomla/client/ldap.php',
'/libraries/joomla/client/wrapper/helper.php',
'/libraries/joomla/crypt/README.md',
'/libraries/joomla/crypt/cipher.php',
'/libraries/joomla/crypt/cipher/3des.php',
'/libraries/joomla/crypt/cipher/blowfish.php',
'/libraries/joomla/crypt/cipher/crypto.php',
'/libraries/joomla/crypt/cipher/mcrypt.php',
'/libraries/joomla/crypt/cipher/rijndael256.php',
'/libraries/joomla/crypt/cipher/simple.php',
'/libraries/joomla/crypt/crypt.php',
'/libraries/joomla/crypt/key.php',
'/libraries/joomla/crypt/password.php',
'/libraries/joomla/crypt/password/simple.php',
'/libraries/joomla/date/date.php',
'/libraries/joomla/document/document.php',
'/libraries/joomla/document/error.php',
'/libraries/joomla/document/feed.php',
'/libraries/joomla/document/feed/renderer/atom.php',
'/libraries/joomla/document/feed/renderer/rss.php',
'/libraries/joomla/document/html.php',
'/libraries/joomla/document/html/renderer/component.php',
'/libraries/joomla/document/html/renderer/head.php',
'/libraries/joomla/document/html/renderer/message.php',
'/libraries/joomla/document/html/renderer/module.php',
'/libraries/joomla/document/html/renderer/modules.php',
'/libraries/joomla/document/image.php',
'/libraries/joomla/document/json.php',
'/libraries/joomla/document/opensearch.php',
'/libraries/joomla/document/raw.php',
'/libraries/joomla/document/renderer.php',
'/libraries/joomla/document/renderer/feed/atom.php',
'/libraries/joomla/document/renderer/feed/rss.php',
'/libraries/joomla/document/renderer/html/component.php',
'/libraries/joomla/document/renderer/html/head.php',
'/libraries/joomla/document/renderer/html/message.php',
'/libraries/joomla/document/renderer/html/module.php',
'/libraries/joomla/document/renderer/html/modules.php',
'/libraries/joomla/document/xml.php',
'/libraries/joomla/environment/browser.php',
'/libraries/joomla/factory.php',
'/libraries/joomla/feed/entry.php',
'/libraries/joomla/feed/factory.php',
'/libraries/joomla/feed/feed.php',
'/libraries/joomla/feed/link.php',
'/libraries/joomla/feed/parser.php',
'/libraries/joomla/feed/parser/atom.php',
'/libraries/joomla/feed/parser/namespace.php',
'/libraries/joomla/feed/parser/rss.php',
'/libraries/joomla/feed/parser/rss/itunes.php',
'/libraries/joomla/feed/parser/rss/media.php',
'/libraries/joomla/feed/person.php',
'/libraries/joomla/filter/input.php',
'/libraries/joomla/filter/output.php',
'/libraries/joomla/filter/wrapper/output.php',
'/libraries/joomla/form/field.php',
'/libraries/joomla/form/form.php',
'/libraries/joomla/form/helper.php',
'/libraries/joomla/form/rule.php',
'/libraries/joomla/form/rule/boolean.php',
'/libraries/joomla/form/rule/calendar.php',
'/libraries/joomla/form/rule/color.php',
'/libraries/joomla/form/rule/email.php',
'/libraries/joomla/form/rule/equals.php',
'/libraries/joomla/form/rule/number.php',
'/libraries/joomla/form/rule/options.php',
'/libraries/joomla/form/rule/rules.php',
'/libraries/joomla/form/rule/tel.php',
'/libraries/joomla/form/rule/url.php',
'/libraries/joomla/form/rule/username.php',
'/libraries/joomla/form/wrapper/helper.php',
'/libraries/joomla/http/factory.php',
'/libraries/joomla/http/http.php',
'/libraries/joomla/http/response.php',
'/libraries/joomla/http/transport.php',
'/libraries/joomla/http/transport/cacert.pem',
'/libraries/joomla/http/transport/curl.php',
'/libraries/joomla/http/transport/socket.php',
'/libraries/joomla/http/transport/stream.php',
'/libraries/joomla/http/wrapper/factory.php',
'/libraries/joomla/image/filter.php',
'/libraries/joomla/image/filter/backgroundfill.php',
'/libraries/joomla/image/filter/brightness.php',
'/libraries/joomla/image/filter/contrast.php',
'/libraries/joomla/image/filter/edgedetect.php',
'/libraries/joomla/image/filter/emboss.php',
'/libraries/joomla/image/filter/grayscale.php',
'/libraries/joomla/image/filter/negate.php',
'/libraries/joomla/image/filter/sketchy.php',
'/libraries/joomla/image/filter/smooth.php',
'/libraries/joomla/image/image.php',
'/libraries/joomla/input/cli.php',
'/libraries/joomla/input/cookie.php',
'/libraries/joomla/input/files.php',
'/libraries/joomla/input/input.php',
'/libraries/joomla/input/json.php',
'/libraries/joomla/language/helper.php',
'/libraries/joomla/language/language.php',
'/libraries/joomla/language/stemmer.php',
'/libraries/joomla/language/stemmer/porteren.php',
'/libraries/joomla/language/text.php',
'/libraries/joomla/language/transliterate.php',
'/libraries/joomla/language/wrapper/helper.php',
'/libraries/joomla/language/wrapper/text.php',
'/libraries/joomla/language/wrapper/transliterate.php',
'/libraries/joomla/log/entry.php',
'/libraries/joomla/log/log.php',
'/libraries/joomla/log/logger.php',
'/libraries/joomla/log/logger/callback.php',
'/libraries/joomla/log/logger/database.php',
'/libraries/joomla/log/logger/echo.php',
'/libraries/joomla/log/logger/formattedtext.php',
'/libraries/joomla/log/logger/messagequeue.php',
'/libraries/joomla/log/logger/syslog.php',
'/libraries/joomla/log/logger/w3c.php',
'/libraries/joomla/mail/helper.php',
'/libraries/joomla/mail/language/phpmailer.lang-joomla.php',
'/libraries/joomla/mail/mail.php',
'/libraries/joomla/mail/wrapper/helper.php',
'/libraries/joomla/microdata/microdata.php',
'/libraries/joomla/microdata/types.json',
'/libraries/joomla/object/object.php',
'/libraries/joomla/profiler/profiler.php',
'/libraries/joomla/session/exception/unsupported.php',
'/libraries/joomla/session/session.php',
'/libraries/joomla/string/punycode.php',
'/libraries/joomla/table/asset.php',
'/libraries/joomla/table/extension.php',
'/libraries/joomla/table/interface.php',
'/libraries/joomla/table/language.php',
'/libraries/joomla/table/nested.php',
'/libraries/joomla/table/observer.php',
'/libraries/joomla/table/observer/contenthistory.php',
'/libraries/joomla/table/observer/tags.php',
'/libraries/joomla/table/table.php',
'/libraries/joomla/table/update.php',
'/libraries/joomla/table/updatesite.php',
'/libraries/joomla/table/user.php',
'/libraries/joomla/table/usergroup.php',
'/libraries/joomla/table/viewlevel.php',
'/libraries/joomla/updater/adapters/collection.php',
'/libraries/joomla/updater/adapters/extension.php',
'/libraries/joomla/updater/update.php',
'/libraries/joomla/updater/updateadapter.php',
'/libraries/joomla/updater/updater.php',
'/libraries/joomla/uri/uri.php',
'/libraries/joomla/user/helper.php',
'/libraries/joomla/user/user.php',
'/libraries/joomla/user/wrapper/helper.php',
'/libraries/joomla/utilities/buffer.php',
'/libraries/joomla/utilities/utility.php',
'/libraries/legacy/access/rule.php',
'/libraries/legacy/access/rules.php',
'/libraries/legacy/application/cli.php',
'/libraries/legacy/application/daemon.php',
'/libraries/legacy/categories/categories.php',
'/libraries/legacy/controller/admin.php',
'/libraries/legacy/controller/form.php',
'/libraries/legacy/controller/legacy.php',
'/libraries/legacy/model/admin.php',
'/libraries/legacy/model/form.php',
'/libraries/legacy/model/item.php',
'/libraries/legacy/model/legacy.php',
'/libraries/legacy/model/list.php',
'/libraries/legacy/table/category.php',
'/libraries/legacy/table/content.php',
'/libraries/legacy/table/menu.php',
'/libraries/legacy/table/menu/type.php',
'/libraries/legacy/table/module.php',
'/libraries/legacy/view/categories.php',
'/libraries/legacy/view/category.php',
'/libraries/legacy/view/categoryfeed.php',
'/libraries/legacy/view/legacy.php',
'/libraries/legacy/web/client.php',
'/libraries/legacy/web/web.php',
'/media/editors/tinymce/langs/uk-UA.js',
'/media/system/js/fields/calendar-locales/zh.js',
/*
* Joomla! 3.8.0 thru 3.9.0
*/
'/administrator/components/com_users/controllers/profile.json.php',
'/administrator/includes/toolbar.php',
'/components/com_users/controllers/profile_base_json.php',
'/components/com_users/controllers/profile.json.php',
'/libraries/joomla/filesystem/file.php',
'/libraries/joomla/filesystem/folder.php',
'/libraries/joomla/filesystem/helper.php',
'/libraries/joomla/filesystem/meta/language/en-GB/en-GB.lib_joomla_filesystem_patcher.ini',
'/libraries/joomla/filesystem/patcher.php',
'/libraries/joomla/filesystem/path.php',
'/libraries/joomla/filesystem/stream.php',
'/libraries/joomla/filesystem/streams/string.php',
'/libraries/joomla/filesystem/support/stringcontroller.php',
'/libraries/joomla/filesystem/wrapper/file.php',
'/libraries/joomla/filesystem/wrapper/folder.php',
'/libraries/joomla/filesystem/wrapper/path.php',
'/libraries/src/Mail/language/phpmailer.lang-joomla.php',
'/plugins/captcha/recaptcha/recaptchalib.php',
/*
* Joomla! 3.9.0 thru 3.10.0
*/
'/SECURITY.md',
'/administrator/components/com_users/controllers/profile.json.php',
'/components/com_users/controllers/profile.json.php',
'/components/com_users/controllers/profile_base_json.php',
'/tests/unit/suites/libraries/cms/form/field/JFormFieldHelpsiteTest.php',
/*
* Legacy FOF
*/
'/libraries/fof/controller.php',
'/libraries/fof/dispatcher.php',
'/libraries/fof/inflector.php',
'/libraries/fof/input.php',
'/libraries/fof/model.php',
'/libraries/fof/query.abstract.php',
'/libraries/fof/query.element.php',
'/libraries/fof/query.mysql.php',
'/libraries/fof/query.mysqli.php',
'/libraries/fof/query.sqlazure.php',
'/libraries/fof/query.sqlsrv.php',
'/libraries/fof/render.abstract.php',
'/libraries/fof/render.joomla.php',
'/libraries/fof/render.joomla3.php',
'/libraries/fof/render.strapper.php',
'/libraries/fof/string.utils.php',
'/libraries/fof/table.php',
'/libraries/fof/template.utils.php',
'/libraries/fof/toolbar.php',
'/libraries/fof/view.csv.php',
'/libraries/fof/view.html.php',
'/libraries/fof/view.json.php',
'/libraries/fof/view.php',
/*
* Joomla! 3.9.7
*/
'/administrator/components/com_joomlaupdate/access.xml',
// Joomla! 3.9.13
'/libraries/vendor/phpmailer/phpmailer/composer.lock',
// Joomla! 3.9.17
'/administrator/components/com_templates/controllers/template.php.orig',
// Joomla! 3.9.21
'/.github/SECURITY.md',
// Joomla! 3.9.23
'/.drone.jsonnet',
// Joomla! added by the 3.9.23-rc1
'/libraries/vendor/bin/lessify',
'/libraries/vendor/bin/lessify.bat',
'/libraries/vendor/bin/plessc',
'/libraries/vendor/bin/plessc.bat',
'/libraries/vendor/joomla/archive/.drone.jsonnet',
'/libraries/vendor/joomla/archive/.drone.yml',
'/libraries/vendor/joomla/string/.drone.jsonnet',
'/libraries/vendor/joomla/string/.drone.yml',
'/libraries/vendor/leafo/lessphp/.drone.yml',
'/libraries/vendor/leafo/lessphp/phpunit.xml.dist',
'/libraries/vendor/leafo/lessphp/ruleset.xml',
);
// TODO There is an issue while deleting folders using the ftp mode
$folders = array(
'/administrator/components/com_admin/sql/updates/sqlsrv',
'/media/com_finder/images/mime',
'/media/com_finder/images',
'/components/com_media/helpers',
// Joomla 3.0
'/administrator/components/com_contact/elements',
'/administrator/components/com_content/elements',
'/administrator/components/com_newsfeeds/elements',
'/administrator/components/com_templates/views/prevuuw/tmpl',
'/administrator/components/com_templates/views/prevuuw',
'/libraries/cms/controller',
'/libraries/cms/model',
'/libraries/cms/view',
'/libraries/joomla/application/cli',
'/libraries/joomla/application/component',
'/libraries/joomla/application/input',
'/libraries/joomla/application/module',
'/libraries/joomla/cache/storage/helpers',
'/libraries/joomla/database/table',
'/libraries/joomla/database/database',
'/libraries/joomla/error',
'/libraries/joomla/filesystem/archive',
'/libraries/joomla/html/html',
'/libraries/joomla/html/toolbar',
'/libraries/joomla/html/toolbar/button',
'/libraries/joomla/html/parameter',
'/libraries/joomla/html/parameter/element',
'/libraries/joomla/image/filters',
'/libraries/joomla/log/loggers',
// Joomla! 3.1
'/libraries/cms/feed/parser/rss',
'/libraries/cms/feed/parser',
'/libraries/cms/feed',
'/libraries/joomla/form/rules',
'/libraries/joomla/html/language/en-GB',
'/libraries/joomla/html/language',
'/libraries/joomla/html',
'/libraries/joomla/installer/adapters',
'/libraries/joomla/installer',
'/libraries/joomla/pagination',
'/libraries/legacy/html',
'/libraries/legacy/menu',
'/libraries/legacy/pathway',
'/media/system/swf/',
'/media/editors/tinymce/jscripts',
// Joomla! 3.2
'/libraries/joomla/plugin',
'/libraries/legacy/component',
'/libraries/legacy/module',
'/administrator/components/com_weblinks/models/fields',
'/plugins/user/joomla/postinstall',
'/libraries/joomla/registry/format',
'/libraries/joomla/registry',
// Joomla! 3.3
'/plugins/user/profile/fields',
'/media/editors/tinymce/plugins/compat3x',
// Joomla! 3.4
'/administrator/components/com_tags/helpers/html',
'/administrator/components/com_tags/models/fields',
'/administrator/templates/hathor/html/com_finder/filter',
'/administrator/templates/hathor/html/com_finder/statistics',
'/libraries/compat/password/lib',
'/libraries/compat/password',
'/libraries/compat',
'/libraries/framework/Joomla/Application/Cli/Output/Processor',
'/libraries/framework/Joomla/Application/Cli/Output',
'/libraries/framework/Joomla/Application/Cli',
'/libraries/framework/Joomla/Application',
'/libraries/framework/Joomla/DI/Exception',
'/libraries/framework/Joomla/DI',
'/libraries/framework/Joomla/Registry/Format',
'/libraries/framework/Joomla/Registry',
'/libraries/framework/Joomla',
'/libraries/framework/Symfony/Component/Yaml/Exception',
'/libraries/framework/Symfony/Component/Yaml',
'/libraries/framework',
'/libraries/phpmailer/language',
'/libraries/phpmailer',
'/media/editors/codemirror/css',
'/media/editors/codemirror/js',
'/media/com_banners',
// Joomla! 3.4.1
'/administrator/components/com_config/views',
'/administrator/components/com_config/models/fields',
'/administrator/components/com_config/models/forms',
// Joomla! 3.4.2
'/media/editors/codemirror/mode/smartymixed',
// Joomla! 3.5
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Exception',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml',
'/libraries/vendor/symfony/yaml/Symfony/Component',
'/libraries/vendor/symfony/yaml/Symfony',
'/libraries/joomla/document/error',
'/libraries/joomla/document/image',
'/libraries/joomla/document/json',
'/libraries/joomla/document/opensearch',
'/libraries/joomla/document/raw',
'/libraries/joomla/document/xml',
'/administrator/components/com_media/models/forms',
'/media/editors/codemirror/mode/kotlin',
'/media/editors/tinymce/plugins/compat3x',
'/plugins/editors/tinymce/fields',
'/plugins/user/profile/fields',
// Joomla 3.6
'/libraries/simplepie/idn',
'/libraries/simplepie',
// Joomla! 3.6.3
'/media/editors/codemirror/mode/jade',
// Joomla! 3.7.0
'/libraries/joomla/data',
'/administrator/components/com_cache/layouts/joomla/searchtools/default',
'/administrator/components/com_cache/layouts/joomla/searchtools',
'/administrator/components/com_cache/layouts/joomla',
'/administrator/components/com_cache/layouts',
'/administrator/components/com_modules/layouts/joomla/searchtools/default',
'/administrator/components/com_modules/layouts/joomla/searchtools',
'/administrator/components/com_modules/layouts/joomla',
'/administrator/components/com_templates/layouts/joomla/searchtools/default',
'/administrator/components/com_templates/layouts/joomla/searchtools',
'/administrator/components/com_templates/layouts/joomla',
'/administrator/components/com_templates/layouts',
'/administrator/templates/hathor/html/mod_menu',
'/administrator/components/com_messages/layouts/toolbar',
'/administrator/components/com_messages/layouts',
// Joomla! 3.7.4
'/components/com_fields/controllers',
// Joomla! 3.8.0
'/administrator/modules/mod_menu/preset',
'/libraries/cms/application',
'/libraries/cms/authentication',
'/libraries/cms/captcha',
'/libraries/cms/component/exception',
'/libraries/cms/component/router/rules',
'/libraries/cms/component/router',
'/libraries/cms/component',
'/libraries/cms/editor',
'/libraries/cms/error',
'/libraries/cms/extension',
'/libraries/cms/form/field',
'/libraries/cms/form/rule',
'/libraries/cms/form',
'/libraries/cms/help',
'/libraries/cms/helper',
'/libraries/cms/installer/adapter',
'/libraries/cms/installer/manifest',
'/libraries/cms/installer',
'/libraries/cms/language',
'/libraries/cms/layout',
'/libraries/cms/library',
'/libraries/cms/menu',
'/libraries/cms/module',
'/libraries/cms/pagination',
'/libraries/cms/pathway',
'/libraries/cms/plugin',
'/libraries/cms/response',
'/libraries/cms/router',
'/libraries/cms/schema/changeitem',
'/libraries/cms/schema',
'/libraries/cms/search',
'/libraries/cms/table',
'/libraries/cms/toolbar/button',
'/libraries/cms/toolbar',
'/libraries/cms/ucm',
'/libraries/cms/version',
'/libraries/joomla/access/exception',
'/libraries/joomla/access/wrapper',
'/libraries/joomla/access',
'/libraries/joomla/association/extension',
'/libraries/joomla/association',
'/libraries/joomla/authentication',
'/libraries/joomla/cache/controller',
'/libraries/joomla/cache/exception',
'/libraries/joomla/cache/storage',
'/libraries/joomla/cache',
'/libraries/joomla/client/wrapper',
'/libraries/joomla/client',
'/libraries/joomla/crypt/cipher',
'/libraries/joomla/crypt/password',
'/libraries/joomla/crypt',
'/libraries/joomla/date',
'/libraries/joomla/document/feed/renderer',
'/libraries/joomla/document/feed',
'/libraries/joomla/document/html/renderer',
'/libraries/joomla/document/html',
'/libraries/joomla/document/renderer/feed',
'/libraries/joomla/document/renderer/html',
'/libraries/joomla/document/renderer',
'/libraries/joomla/document',
'/libraries/joomla/environment',
'/libraries/joomla/feed/parser/rss',
'/libraries/joomla/feed/parser',
'/libraries/joomla/feed',
'/libraries/joomla/filter/wrapper',
'/libraries/joomla/filter',
'/libraries/joomla/form/rule',
'/libraries/joomla/form/wrapper',
'/libraries/joomla/http/transport',
'/libraries/joomla/http/wrapper',
'/libraries/joomla/http',
'/libraries/joomla/image/filter',
'/libraries/joomla/image',
'/libraries/joomla/input',
'/libraries/joomla/language/stemmer',
'/libraries/joomla/language/wrapper',
'/libraries/joomla/language',
'/libraries/joomla/log/logger',
'/libraries/joomla/log',
'/libraries/joomla/mail/language',
'/libraries/joomla/mail/wrapper',
'/libraries/joomla/mail',
'/libraries/joomla/microdata',
'/libraries/joomla/object',
'/libraries/joomla/profiler',
'/libraries/joomla/session/exception',
'/libraries/joomla/table',
'/libraries/joomla/updater/adapters',
'/libraries/joomla/updater',
'/libraries/joomla/uri',
'/libraries/joomla/user/wrapper',
'/libraries/joomla/user',
'/libraries/legacy/access',
'/libraries/legacy/categories',
'/libraries/legacy/controller',
'/libraries/legacy/model',
'/libraries/legacy/table/menu',
'/libraries/legacy/view',
'/libraries/legacy/web',
'/media/editors/tinymce/plugins/jdragdrop',
// Joomla! 3.9.0
'/libraries/joomla/filesystem/meta/language/en-GB',
'/libraries/joomla/filesystem/meta/language',
'/libraries/joomla/filesystem/meta',
'/libraries/joomla/filesystem/streams',
'/libraries/joomla/filesystem/support',
'/libraries/joomla/filesystem/wrapper',
'/libraries/joomla/filesystem',
);
jimport('joomla.filesystem.file');
foreach ($files as $file)
{
if (JFile::exists(JPATH_ROOT . $file) &&
!JFile::delete(JPATH_ROOT . $file))
{
echo JText::sprintf('FILES_JOOMLA_ERROR_FILE_FOLDER', $file)
. '<br />';
}
}
jimport('joomla.filesystem.folder');
foreach ($folders as $folder)
{
if (JFolder::exists(JPATH_ROOT . $folder) &&
!JFolder::delete(JPATH_ROOT . $folder))
{
echo JText::sprintf('FILES_JOOMLA_ERROR_FILE_FOLDER',
$folder) . '<br />';
}
}
/*
* Needed for updates post-3.4
* If com_weblinks doesn't exist then assume we can delete the
weblinks package manifest (included in the update packages)
*/
if (!JFile::exists(JPATH_ROOT .
'/administrator/components/com_weblinks/weblinks.php')
&& JFile::exists(JPATH_ROOT .
'/administrator/manifests/packages/pkg_weblinks.xml'))
{
JFile::delete(JPATH_ROOT .
'/administrator/manifests/packages/pkg_weblinks.xml');
}
}
/**
* Clears the RAD layer's table cache.
*
* The cache vastly improves performance but needs to be cleared every
time you update the database schema.
*
* @return void
*
* @since 3.2
*/
protected function clearRadCache()
{
jimport('joomla.filesystem.file');
if (JFile::exists(JPATH_ROOT . '/cache/fof/cache.php'))
{
JFile::delete(JPATH_ROOT . '/cache/fof/cache.php');
}
}
/**
* Method to create assets for newly installed components
*
* @param JInstaller $installer The class calling this method
*
* @return boolean
*
* @since 3.2
*/
public function updateAssets($installer)
{
// List all components added since 1.6
$newComponents = array(
'com_finder',
'com_joomlaupdate',
'com_tags',
'com_contenthistory',
'com_ajax',
'com_postinstall',
'com_fields',
'com_associations',
'com_privacy',
'com_actionlogs',
);
foreach ($newComponents as $component)
{
/** @var JTableAsset $asset */
$asset = JTable::getInstance('Asset');
if ($asset->loadByName($component))
{
continue;
}
$asset->name = $component;
$asset->parent_id = 1;
$asset->rules = '{}';
$asset->title = $component;
$asset->setLocation(1, 'last-child');
if (!$asset->store())
{
// Install failed, roll back changes
$installer->abort(JText::sprintf('JLIB_INSTALLER_ABORT_COMP_INSTALL_ROLLBACK',
$asset->stderr(true)));
return false;
}
}
return true;
}
/**
* If we migrated the session from the previous system, flush all the
active sessions.
* Otherwise users will be logged in, but not able to do anything since
they don't have
* a valid session
*
* @return boolean
*/
public function flushSessions()
{
/**
* The session may have not been started yet (e.g. CLI-based Joomla!
update scripts). Let's make sure we do
* have a valid session.
*/
$session = JFactory::getSession();
/**
* Restarting the Session require a new login for the current user so
lets check if we have an active session
* and only restart it if not.
* For B/C reasons we need to use getState as isActive is not available
in 2.5
*/
if ($session->getState() !== 'active')
{
$session->restart();
}
// If $_SESSION['__default'] is no longer set we do not have a
migrated session, therefore we can quit.
if (!isset($_SESSION['__default']))
{
return true;
}
$db = JFactory::getDbo();
try
{
switch ($db->getServerType())
{
// MySQL database, use TRUNCATE (faster, more resilient)
case 'mysql':
$db->truncateTable('#__session');
break;
// Non-MySQL databases, use a simple DELETE FROM query
default:
$query = $db->getQuery(true)
->delete($db->qn('#__session'));
$db->setQuery($query)->execute();
break;
}
}
catch (Exception $e)
{
echo JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED',
$e->getCode(), $e->getMessage()) . '<br />';
return false;
}
return true;
}
/**
* Converts the site's database tables to support UTF-8 Multibyte.
*
* @param boolean $doDbFixMsg Flag if message to be shown to check db
fix
*
* @return void
*
* @since 3.5
*/
public function convertTablesToUtf8mb4($doDbFixMsg = false)
{
$db = JFactory::getDbo();
// This is only required for MySQL databases
$serverType = $db->getServerType();
if ($serverType != 'mysql')
{
return;
}
// Set required conversion status
if ($db->hasUTF8mb4Support())
{
$convertedStep1 = 2;
$convertedStep2 = 4;
// The first step has to be repeated if it has not been run (converted =
4 in database)
$convertedRequired = 5;
}
else
{
$convertedStep1 = 1;
$convertedStep2 = 3;
// All done after step 2
$convertedRequired = 3;
}
// Check conversion status in database
$db->setQuery('SELECT ' .
$db->quoteName('converted')
. ' FROM ' . $db->quoteName('#__utf8_conversion')
);
try
{
$convertedDB = $db->loadResult();
}
catch (Exception $e)
{
// Render the error message from the Exception object
JFactory::getApplication()->enqueueMessage($e->getMessage(),
'error');
if ($doDbFixMsg)
{
// Show an error message telling to check database problems
JFactory::getApplication()->enqueueMessage(JText::_('JLIB_DATABASE_ERROR_DATABASE_UPGRADE_FAILED'),
'error');
}
return;
}
// Nothing to do, saved conversion status from DB is equal to required
final status
if ($convertedDB == $convertedRequired)
{
return;
}
$converted = $convertedDB;
$hasErrors = false;
// Steps 1 and 2: Convert core tables if necessary and not to be done at
later steps
if ($convertedDB < $convertedStep1 || ($convertedRequired == 5
&& ($convertedDB == 3 || $convertedDB == 4)))
{
// Step 1: Drop indexes later to be added again with column lengths
limitations at step 2
$fileName1 = JPATH_ROOT .
'/administrator/components/com_admin/sql/others/mysql/utf8mb4-conversion-01.sql';
if (is_file($fileName1))
{
$fileContents1 = @file_get_contents($fileName1);
$queries1 = $db->splitSql($fileContents1);
if (!empty($queries1))
{
foreach ($queries1 as $query1)
{
try
{
$db->setQuery($query1)->execute();
}
catch (Exception $e)
{
// If the query fails we will go on. It just means the index to be
dropped does not exist.
}
}
}
}
// Step 2: Perform the index modifications and conversions
$fileName2 = JPATH_ROOT .
'/administrator/components/com_admin/sql/others/mysql/utf8mb4-conversion-02.sql';
if (is_file($fileName2))
{
$fileContents2 = @file_get_contents($fileName2);
$queries2 = $db->splitSql($fileContents2);
if (!empty($queries2))
{
foreach ($queries2 as $query2)
{
try
{
$db->setQuery($db->convertUtf8mb4QueryToUtf8($query2))->execute();
}
catch (Exception $e)
{
$hasErrors = true;
// Still render the error message from the Exception object
JFactory::getApplication()->enqueueMessage($e->getMessage(),
'error');
}
}
}
}
if (!$hasErrors)
{
$converted = $convertedStep1;
}
}
// Step 3: Convert action logs and privacy suite tables if necessary and
conversion hasn't failed before
if (!$hasErrors && $convertedDB < $convertedStep2)
{
$fileName3 = JPATH_ROOT .
'/administrator/components/com_admin/sql/others/mysql/utf8mb4-conversion-03.sql';
if (is_file($fileName3))
{
$fileContents3 = @file_get_contents($fileName3);
$queries3 = $db->splitSql($fileContents3);
if (!empty($queries3))
{
foreach ($queries3 as $query3)
{
try
{
$db->setQuery($db->convertUtf8mb4QueryToUtf8($query3))->execute();
}
catch (Exception $e)
{
$hasErrors = true;
// Still render the error message from the Exception object
JFactory::getApplication()->enqueueMessage($e->getMessage(),
'error');
}
}
}
}
}
if (!$hasErrors)
{
$converted = $convertedRequired;
}
if ($doDbFixMsg && $hasErrors)
{
// Show an error message telling to check database problems
JFactory::getApplication()->enqueueMessage(JText::_('JLIB_DATABASE_ERROR_DATABASE_UPGRADE_FAILED'),
'error');
}
// Set flag in database if the conversion status has changed.
if ($converted != $convertedDB)
{
$db->setQuery('UPDATE ' .
$db->quoteName('#__utf8_conversion')
. ' SET ' . $db->quoteName('converted') . '
= ' . $converted . ';')->execute();
}
}
/**
* This method clean the Joomla Cache using the method `clean` from the
com_cache model
*
* @return void
*
* @since 3.5.1
*/
private function cleanJoomlaCache()
{
JModelLegacy::addIncludePath(JPATH_ROOT .
'/administrator/components/com_cache/models');
$model = JModelLegacy::getInstance('cache',
'CacheModel');
// Clean frontend cache
$model->clean();
// Clean admin cache
$model->setState('client_id', 1);
$model->clean();
}
}
sql/others/mysql/utf8mb4-conversion-01.sql000064400000002735151166706170014450
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`;
sql/others/mysql/utf8mb4-conversion-02.sql000064400000044367151166706170014460
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));
sql/others/mysql/utf8mb4-conversion-03.sql000064400000003335151166706170014447
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;
sql/updates/mysql/2.5.0-2011-12-06.sql000064400000001531151166706170012376
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);
sql/updates/mysql/2.5.0-2011-12-16.sql000064400000000365151166706170012403
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;sql/updates/mysql/2.5.0-2011-12-19.sql000064400000001724151166706170012406
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;
sql/updates/mysql/2.5.0-2011-12-20.sql000064400000000500151166706170012365
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";sql/updates/mysql/2.5.0-2011-12-21-1.sql000064400000004343151166706170012535
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);
sql/updates/mysql/2.5.0-2011-12-21-2.sql000064400000020167151166706170012540
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;
sql/updates/mysql/2.5.0-2011-12-22.sql000064400000004675151166706170012410
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);
sql/updates/mysql/2.5.0-2011-12-23.sql000064400000004030151166706170012372
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;
sql/updates/mysql/2.5.0-2011-12-24.sql000064400000000475151166706170012404
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`
);sql/updates/mysql/2.5.0-2012-01-10.sql000064400000000120151166706170012361
0ustar00ALTER TABLE `#__updates` ADD COLUMN `infourl` text NOT NULL AFTER
`detailsurl`;
sql/updates/mysql/2.5.0-2012-01-14.sql000064400000000136151166706170012374
0ustar00ALTER TABLE `#__languages` CHANGE `sitename` `sitename` VARCHAR(
1024 ) NOT NULL DEFAULT '';
sql/updates/mysql/2.5.1-2012-01-26.sql000064400000002403151166706170012377
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);sql/updates/mysql/2.5.2-2012-03-05.sql000064400000000046151166706170012400
0ustar00# Dummy SQL file to set schema
versionsql/updates/mysql/2.5.3-2012-03-13.sql000064400000000046151166706170012400
0ustar00# Dummy SQL file to set schema
versionsql/updates/mysql/2.5.4-2012-03-18.sql000064400000002306151166706170012407
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);
sql/updates/mysql/2.5.4-2012-03-19.sql000064400000000536151166706170012413
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';
sql/updates/mysql/2.5.5.sql000064400000000565151166706170011365
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';sql/updates/mysql/2.5.6.sql000064400000000071151166706170011356
0ustar00# Placeholder file for database changes for version
2.5.6sql/updates/mysql/2.5.7.sql000064400000001005151166706170011355
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'
);sql/updates/mysql/3.0.0.sql000064400000021503151166706170011347
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';
sql/updates/mysql/3.0.1.sql000064400000000071151166706170011345 0ustar00#
Placeholder file for database changes for version
3.0.1sql/updates/mysql/3.0.2.sql000064400000000071151166706170011346
0ustar00# Placeholder file for database changes for version
3.0.2sql/updates/mysql/3.0.3.sql000064400000000156151166706170011353
0ustar00ALTER TABLE `#__associations` CHANGE `id` `id` INT(11) NOT NULL
COMMENT 'A reference to the associated
item.';sql/updates/mysql/3.1.0.sql000064400000043241151166706170011353
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);
sql/updates/mysql/3.1.1.sql000064400000000071151166706170011346 0ustar00#
Placeholder file for database changes for version
3.1.1sql/updates/mysql/3.1.2.sql000064400000021415151166706170011354
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';
sql/updates/mysql/3.1.3.sql000064400000000072151166706170011351 0ustar00#
Placeholder file for database changes for version 3.1.3
sql/updates/mysql/3.1.4.sql000064400000000554151166706170011357
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);
sql/updates/mysql/3.1.5.sql000064400000000072151166706170011353 0ustar00#
Placeholder file for database changes for version 3.1.5
sql/updates/mysql/3.2.0.sql000064400000046665151166706170011371 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);
sql/updates/mysql/3.2.1.sql000064400000000150151166706170011345
0ustar00DELETE FROM `#__postinstall_messages` WHERE `title_key` =
'PLG_USER_JOOMLA_POSTINSTALL_STRONGPW_TITLE';
sql/updates/mysql/3.2.2-2013-12-22.sql000064400000000235151166706170012376
0ustar00ALTER TABLE `#__update_sites` ADD COLUMN `extra_query`
VARCHAR(1000) DEFAULT '';
ALTER TABLE `#__updates` ADD COLUMN `extra_query` VARCHAR(1000) DEFAULT
'';
sql/updates/mysql/3.2.2-2013-12-28.sql000064400000000254151166706170012405
0ustar00UPDATE `#__menu` SET `component_id` = (SELECT `extension_id` FROM
`#__extensions` WHERE `element` = 'com_joomlaupdate') WHERE
`link` = 'index.php?option=com_joomlaupdate';
sql/updates/mysql/3.2.2-2014-01-08.sql000064400000000563151166706170012405
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);sql/updates/mysql/3.2.2-2014-01-15.sql000064400000000745151166706170012405
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);
sql/updates/mysql/3.2.2-2014-01-18.sql000064400000000146151166706170012403
0ustar00/* Update updates version length */
ALTER TABLE `#__updates` MODIFY `version` varchar(32) DEFAULT '';
sql/updates/mysql/3.2.2-2014-01-23.sql000064400000001140151166706170012372
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);
sql/updates/mysql/3.2.3-2014-02-20.sql000064400000000256151166706170012400
0ustar00UPDATE `#__extensions` ext1, `#__extensions` ext2 SET ext1.`params`
= ext2.`params` WHERE ext1.`name` = 'plg_authentication_cookie'
AND ext2.`name` = 'plg_system_remember';
sql/updates/mysql/3.3.0-2014-02-16.sql000064400000000224151166706170012376
0ustar00ALTER TABLE `#__users` ADD COLUMN `requireReset` tinyint(4) NOT
NULL DEFAULT 0 COMMENT 'Require user to reset password on next
login' AFTER `otep`;
sql/updates/mysql/3.3.0-2014-04-02.sql000064400000000632151166706170012376
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);
sql/updates/mysql/3.3.4-2014-08-03.sql000064400000000125151166706170012404
0ustar00ALTER TABLE `#__user_profiles` CHANGE `profile_value`
`profile_value` TEXT NOT NULL;
sql/updates/mysql/3.3.6-2014-09-30.sql000064400000000727151166706170012417
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'));
sql/updates/mysql/3.4.0-2014-08-24.sql000064400000000735151166706170012413
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);
sql/updates/mysql/3.4.0-2014-09-01.sql000064400000001347151166706170012407
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);
sql/updates/mysql/3.4.0-2014-09-16.sql000064400000000455151166706170012414
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);
sql/updates/mysql/3.4.0-2014-10-20.sql000064400000000070151166706170012370
0ustar00DELETE FROM `#__extensions` WHERE `extension_id` = 100;
sql/updates/mysql/3.4.0-2014-12-03.sql000064400000000244151166706170012376
0ustar00UPDATE `#__extensions` SET `protected` = '0' WHERE `name`
= 'plg_editors-xtd_article' AND `type` = "plugin" AND
`element` = "article" AND `folder` = "editors-xtd";
sql/updates/mysql/3.4.0-2015-01-21.sql000064400000000577151166706170012406
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);sql/updates/mysql/3.4.0-2015-02-26.sql000064400000001001151166706170012373
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);
sql/updates/mysql/3.5.0-2015-07-01.sql000064400000000224151166706170012400
0ustar00-- ALTER TABLE `#__session` MODIFY `session_id` varchar(191) NOT
NULL DEFAULT '';
ALTER TABLE `#__user_keys` MODIFY `series` varchar(191) NOT NULL;
sql/updates/mysql/3.5.0-2015-10-13.sql000064400000000572151166706170012403
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);
sql/updates/mysql/3.5.0-2015-10-26.sql000064400000000167151166706170012407
0ustar00ALTER TABLE `#__contentitem_tag_map` DROP INDEX `idx_tag`;
ALTER TABLE `#__contentitem_tag_map` DROP INDEX `idx_type`;
sql/updates/mysql/3.5.0-2015-10-30.sql000064400000000171151166706200012367
0ustar00UPDATE `#__menu` SET `title` = 'com_contact_contacts'
WHERE `client_id` = 1 AND `level` = 2 AND `title` =
'com_contact';
sql/updates/mysql/3.5.0-2015-11-04.sql000064400000000730151166706200012372
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);
sql/updates/mysql/3.5.0-2015-11-05.sql000064400000001552151166706200012376
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);
sql/updates/mysql/3.5.0-2016-02-26.sql000064400000001077151166706200012404
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);
sql/updates/mysql/3.5.0-2016-03-01.sql000064400000001052151166706250012374
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));
sql/updates/mysql/3.5.1-2016-03-25.sql000064400000000200151166706250012375
0ustar00--
-- Make #__user_keys.user_id fit to #__users.username
--
ALTER TABLE `#__user_keys` MODIFY `user_id` varchar(150) NOT NULL;
sql/updates/mysql/3.5.1-2016-03-29.sql000064400000000432151166706250012410
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;sql/updates/mysql/3.6.0-2016-04-01.sql000064400000001651151166706250012403
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';
sql/updates/mysql/3.6.0-2016-04-06.sql000064400000000100151166706250012374
0ustar00ALTER TABLE `#__redirect_links` MODIFY `new_url` VARCHAR(2048);
sql/updates/mysql/3.6.0-2016-04-08.sql000064400000001335151166706250012411
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;
sql/updates/mysql/3.6.0-2016-04-09.sql000064400000000173151166706250012411
0ustar00--
-- Add ACL check for to #__menu_types
--
ALTER TABLE `#__menu_types` ADD COLUMN `asset_id` INT(11) NOT NULL AFTER
`id`;sql/updates/mysql/3.6.0-2016-05-06.sql000064400000001362151166706250012410
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);
sql/updates/mysql/3.6.0-2016-06-01.sql000064400000000126151166706250012401
0ustar00UPDATE `#__extensions` SET `protected` = 1, `enabled` = 1 WHERE
`name` = 'com_ajax';
sql/updates/mysql/3.6.0-2016-06-05.sql000064400000000176151166706250012412
0ustar00--
-- Add ACL check for to #__languages
--
ALTER TABLE `#__languages` ADD COLUMN `asset_id` INT(11) NOT NULL AFTER
`lang_id`;sql/updates/mysql/3.6.3-2016-08-15.sql000064400000000175151166706250012417
0ustar00--
-- Increasing size of the URL field in com_newsfeeds
--
ALTER TABLE `#__newsfeeds` MODIFY `link` VARCHAR(2048) NOT NULL;
sql/updates/mysql/3.6.3-2016-08-16.sql000064400000001352151166706250012416
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);sql/updates/mysql/3.7.0-2016-08-06.sql000064400000000610151166706250012407
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);
sql/updates/mysql/3.7.0-2016-08-22.sql000064400000000566151166706250012417
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);
sql/updates/mysql/3.7.0-2016-08-29.sql000064400000013147151166706250012425
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);
sql/updates/mysql/3.7.0-2016-09-29.sql000064400000000777151166706250012433
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);
sql/updates/mysql/3.7.0-2016-10-01.sql000064400000000574151166706250012404
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);
sql/updates/mysql/3.7.0-2016-10-02.sql000064400000000116151166706250012375
0ustar00ALTER TABLE `#__session` MODIFY `client_id` tinyint(3) unsigned
DEFAULT NULL;
sql/updates/mysql/3.7.0-2016-11-04.sql000064400000000127151166706250012402
0ustar00ALTER TABLE `#__extensions` CHANGE `enabled` `enabled` TINYINT(3)
NOT NULL DEFAULT
'0';sql/updates/mysql/3.7.0-2016-11-19.sql000064400000000247151166706250012413
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';
sql/updates/mysql/3.7.0-2016-11-21.sql000064400000000156151166706250012403
0ustar00-- Replace language image UNIQUE index for a normal INDEX.
ALTER TABLE `#__languages` DROP INDEX `idx_image`;
sql/updates/mysql/3.7.0-2016-11-24.sql000064400000000645151166706250012411
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';
sql/updates/mysql/3.7.0-2016-11-27.sql000064400000000175151166706250012412
0ustar00-- Normalize modules content field with other db systems. Add
default value.
ALTER TABLE `#__modules` MODIFY `content` text;
sql/updates/mysql/3.7.0-2017-01-08.sql000064400000003136151166706250012411
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;
sql/updates/mysql/3.7.0-2017-01-09.sql000064400000001252151166706250012407
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
'';
sql/updates/mysql/3.7.0-2017-01-15.sql000064400000000565151166706250012412
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);
sql/updates/mysql/3.7.0-2017-01-17.sql000064400000004707151166706250012416
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');
sql/updates/mysql/3.7.0-2017-01-31.sql000064400000000562151166706250012405
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);
sql/updates/mysql/3.7.0-2017-02-02.sql000064400000000572151166706250012405
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);
sql/updates/mysql/3.7.0-2017-02-15.sql000064400000000205151166706250012402
0ustar00-- Normalize redirect_links table default values.
ALTER TABLE `#__redirect_links` MODIFY `comment` varchar(255) NOT NULL
DEFAULT '';
sql/updates/mysql/3.7.0-2017-02-17.sql000064400000001312151166706250012404
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.';
sql/updates/mysql/3.7.0-2017-03-03.sql000064400000000506151166706250012404
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 '';
sql/updates/mysql/3.7.0-2017-03-09.sql000064400000001373151166706250012415
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;
sql/updates/mysql/3.7.0-2017-03-19.sql000064400000000071151166706250012410
0ustar00ALTER TABLE `#__finder_links` MODIFY `description` text;
sql/updates/mysql/3.7.0-2017-04-10.sql000064400000001144151166706250012402
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);sql/updates/mysql/3.7.0-2017-04-19.sql000064400000000250151166706250012410
0ustar00-- Set integer field default values.
UPDATE `#__extensions` SET `params` =
'{"multiple":"0","first":"1","last":"100","step":"1"}'
WHERE `name` = 'plg_fields_integer';
sql/updates/mysql/3.7.3-2017-06-03.sql000064400000000223151166706250012406
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.';
sql/updates/mysql/3.7.4-2017-07-05.sql000064400000000134151166706250012413
0ustar00DELETE FROM `#__postinstall_messages` WHERE `title_key` =
'COM_CPANEL_MSG_PHPVERSION_TITLE';sql/updates/mysql/3.8.0-2017-07-28.sql000064400000000125151166706250012415
0ustar00ALTER TABLE `#__fields_groups` ADD COLUMN `params` TEXT NOT NULL
AFTER `ordering`;
sql/updates/mysql/3.8.0-2017-07-31.sql000064400000001003151166706250012403
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);
sql/updates/mysql/3.8.2-2017-10-14.sql000064400000000156151166706250012410
0ustar00--
-- Add index for alias check #__content
--
ALTER TABLE `#__content` ADD INDEX `idx_alias` (`alias`(191));
sql/updates/mysql/3.8.4-2018-01-16.sql000064400000000144151166706250012412
0ustar00ALTER TABLE `#__user_keys` DROP INDEX `series_2`;
ALTER TABLE `#__user_keys` DROP INDEX `series_3`;
sql/updates/mysql/3.8.6-2018-02-14.sql000064400000002017151166706250012414
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);
sql/updates/mysql/3.8.8-2018-05-18.sql000064400000001021151166706250012417
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);
sql/updates/mysql/3.8.9-2018-06-19.sql000064400000000152151166706250012426
0ustar00-- Enable Sample Data Module.
UPDATE `#__extensions` SET `enabled` = '1' WHERE `name` =
'mod_sampledata';
sql/updates/mysql/3.9.0-2018-05-02.sql000064400000002046151166706250012411
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;
sql/updates/mysql/3.9.0-2018-05-03.sql000064400000000625151166706250012413
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);
sql/updates/mysql/3.9.0-2018-05-05.sql000064400000010717151166706250012420
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');
sql/updates/mysql/3.9.0-2018-05-19.sql000064400000000611151166706250012415
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);
sql/updates/mysql/3.9.0-2018-05-20.sql000064400000000610151166706250012404
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);
sql/updates/mysql/3.9.0-2018-05-24.sql000064400000001604151166706250012414
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;
sql/updates/mysql/3.9.0-2018-05-27.sql000064400000001006151166706250012413
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);
sql/updates/mysql/3.9.0-2018-06-02.sql000064400000001535151166706250012414
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';
sql/updates/mysql/3.9.0-2018-06-12.sql000064400000000620151166706250012407
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);
sql/updates/mysql/3.9.0-2018-06-13.sql000064400000000625151166706250012415
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);
sql/updates/mysql/3.9.0-2018-06-14.sql000064400000001022151166706250012406
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);sql/updates/mysql/3.9.0-2018-06-17.sql000064400000000575151166706250012425
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);
sql/updates/mysql/3.9.0-2018-07-09.sql000064400000001205151166706250012416
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);
sql/updates/mysql/3.9.0-2018-07-10.sql000064400000000346151166706250012413
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');
sql/updates/mysql/3.9.0-2018-07-11.sql000064400000000615151166706250012413
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);
sql/updates/mysql/3.9.0-2018-08-12.sql000064400000000141151166706250012407
0ustar00ALTER TABLE `#__privacy_consents` ADD COLUMN `state` INT(10) NOT
NULL DEFAULT 1 AFTER `user_id`;
sql/updates/mysql/3.9.0-2018-08-28.sql000064400000000320151166706250012415
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;
sql/updates/mysql/3.9.0-2018-08-29.sql000064400000000717151166706250012430
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);
sql/updates/mysql/3.9.0-2018-09-04.sql000064400000000447151166706250012422
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;
sql/updates/mysql/3.9.0-2018-10-15.sql000064400000000512151166706250012405
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`);
sql/updates/mysql/3.9.0-2018-10-20.sql000064400000000274151166706250012406
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`;
sql/updates/mysql/3.9.0-2018-10-21.sql000064400000000611151166706250012402
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);
sql/updates/mysql/3.9.10-2019-07-09.sql000064400000000115151166706250012477
0ustar00ALTER TABLE `#__template_styles` MODIFY `home` char(7) NOT NULL
DEFAULT '0';
sql/updates/mysql/3.9.16-2020-02-15.sql000064400000001226151166706250012471
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;
sql/updates/mysql/3.9.16-2020-03-04.sql000064400000000162151166706250012466
0ustar00ALTER TABLE `#__users` DROP INDEX `username`;
ALTER TABLE `#__users` ADD UNIQUE INDEX `idx_username`
(`username`);sql/updates/mysql/3.9.19-2020-05-16.sql000064400000000274151166706250012502
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 '';
sql/updates/mysql/3.9.19-2020-06-01.sql000064400000000766151166706250012503
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);
sql/updates/mysql/3.9.21-2020-08-02.sql000064400000000752151166706250012472
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);
sql/updates/mysql/3.9.22-2020-09-16.sql000064400000000546151166706250012502
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);
sql/updates/mysql/3.9.3-2019-01-12.sql000064400000000340151166706250012405
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');sql/updates/mysql/3.9.3-2019-02-07.sql000064400000000745151166706250012423
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);
sql/updates/mysql/3.9.7-2019-04-23.sql000064400000000115151166706250012416
0ustar00ALTER TABLE `#__session` ADD INDEX `client_id_guest` (`client_id`,
`guest`);
sql/updates/mysql/3.9.7-2019-04-26.sql000064400000000522151166706250012423
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\"]');
sql/updates/mysql/3.9.7-2019-05-16.sql000064400000000105151166706250012420
0ustar00# Query removed, see
https://github.com/joomla/joomla-cms/pull/25177
sql/updates/mysql/3.9.8-2019-06-11.sql000064400000000074151166706250012422
0ustar00UPDATE #__users SET params = REPLACE(params,
'",,"',
'","');sql/updates/mysql/3.9.8-2019-06-15.sql000064400000000436151166706250012430
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`);
sql/updates/postgresql/3.0.0.sql000064400000000072151166706250012402
0ustar00-- Placeholder file for database changes for version
3.0.0sql/updates/postgresql/3.0.1.sql000064400000000071151166706250012402
0ustar00# Placeholder file for database changes for version
3.0.1sql/updates/postgresql/3.0.2.sql000064400000000071151166706250012403
0ustar00# Placeholder file for database changes for version
3.0.2sql/updates/postgresql/3.0.3.sql000064400000000074151166706250012407
0ustar00ALTER TABLE "#__associations" ALTER COLUMN id TYPE
integer;
sql/updates/postgresql/3.1.0.sql000064400000047365151166706250012423
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);
sql/updates/postgresql/3.1.1.sql000064400000000071151166706250012403
0ustar00# Placeholder file for database changes for version
3.1.1sql/updates/postgresql/3.1.2.sql000064400000021415151166706250012411
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';
sql/updates/postgresql/3.1.3.sql000064400000000072151166706250012406
0ustar00# Placeholder file for database changes for version 3.1.3
sql/updates/postgresql/3.1.4.sql000064400000000554151166706250012414
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);
sql/updates/postgresql/3.1.5.sql000064400000000072151166706250012410
0ustar00# Placeholder file for database changes for version 3.1.5
sql/updates/postgresql/3.2.0.sql000064400000050546151166706250012417
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";
sql/updates/postgresql/3.2.1.sql000064400000000150151166706260012403
0ustar00DELETE FROM "#__postinstall_messages" WHERE
"title_key" =
'PLG_USER_JOOMLA_POSTINSTALL_STRONGPW_TITLE';
sql/updates/postgresql/3.2.2-2013-12-22.sql000064400000000235151166706260013434
0ustar00ALTER TABLE "#__update_sites" ADD COLUMN
"extra_query" varchar(1000) DEFAULT '';
ALTER TABLE "#__updates" ADD COLUMN "extra_query"
varchar(1000) DEFAULT '';
sql/updates/postgresql/3.2.2-2013-12-28.sql000064400000000254151166706260013443
0ustar00UPDATE "#__menu" SET "component_id" = (SELECT
"extension_id" FROM "#__extensions" WHERE
"element" = 'com_joomlaupdate') WHERE "link"
= 'index.php?option=com_joomlaupdate';
sql/updates/postgresql/3.2.2-2014-01-08.sql000064400000000564151166706260013444
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);
sql/updates/postgresql/3.2.2-2014-01-15.sql000064400000000745151166706260013443
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);
sql/updates/postgresql/3.2.2-2014-01-18.sql000064400000000160151166706260013435
0ustar00/* Update updates version length */
ALTER TABLE "#__updates" ALTER COLUMN "version" TYPE
character varying(32);
sql/updates/postgresql/3.2.2-2014-01-23.sql000064400000001140151166706260013430
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);
sql/updates/postgresql/3.2.3-2014-02-20.sql000064400000000236151166706260013434
0ustar00UPDATE "#__extensions" SET "params" = (SELECT
"params" FROM "#__extensions" WHERE "name" =
'plg_system_remember') WHERE "name" =
'plg_authentication_cookie';
sql/updates/postgresql/3.3.0-2013-12-21.sql000064400000000070151166706260013427
0ustar00# Placeholder file to set the database schema for 3.3.0
sql/updates/postgresql/3.3.0-2014-02-16.sql000064400000000244151166706260013436
0ustar00ALTER TABLE "#__users" ADD COLUMN
"requireReset" smallint DEFAULT 0;
COMMENT ON COLUMN "#__users"."requireReset" IS
'Require user to reset password on next login';
sql/updates/postgresql/3.3.0-2014-04-02.sql000064400000000632151166706260013434
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);
sql/updates/postgresql/3.3.4-2014-08-03.sql000064400000000107151166706260013442
0ustar00ALTER TABLE "#__user_profiles" ALTER COLUMN
"profile_value" TYPE text;
sql/updates/postgresql/3.3.6-2014-09-30.sql000064400000000727151166706260013455
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'));
sql/updates/postgresql/3.4.0-2014-08-24.sql000064400000000735151166706260013451
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);
sql/updates/postgresql/3.4.0-2014-09-01.sql000064400000001347151166706270013446
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);
sql/updates/postgresql/3.4.0-2014-09-16.sql000064400000000460151166706270013447
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;
sql/updates/postgresql/3.4.0-2014-10-20.sql000064400000000070151166706270013427
0ustar00DELETE FROM "#__extensions" WHERE
"extension_id" = 100;
sql/updates/postgresql/3.4.0-2014-12-03.sql000064400000000244151166706300013427
0ustar00UPDATE "#__extensions" SET "protected" =
'0' WHERE "name" = 'plg_editors-xtd_article'
AND "type" = 'plugin' AND "element" =
'article' AND "folder" = 'editors-xtd';
sql/updates/postgresql/3.4.0-2015-01-21.sql000064400000000577151166706300013437
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);sql/updates/postgresql/3.4.0-2015-02-26.sql000064400000001001151166706300013424
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);
sql/updates/postgresql/3.4.4-2015-07-11.sql000064400000000242151166706300013435
0ustar00ALTER TABLE "#__contentitem_tag_map" DROP CONSTRAINT
"#__uc_ItemnameTagid", ADD CONSTRAINT
"#__uc_ItemnameTagid" UNIQUE ("type_id",
"content_item_id", "tag_id");
sql/updates/postgresql/3.5.0-2015-10-13.sql000064400000000572151166706300013434
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);
sql/updates/postgresql/3.5.0-2015-10-26.sql000064400000000133151166706300013431
0ustar00DROP INDEX "#__contentitem_tag_map_idx_tag";
DROP INDEX "#__contentitem_tag_map_idx_type";
sql/updates/postgresql/3.5.0-2015-10-30.sql000064400000000171151166706300013426
0ustar00UPDATE "#__menu" SET "title" =
'com_contact_contacts' WHERE "client_id" = 1 AND
"level" = 2 AND "title" = 'com_contact';
sql/updates/postgresql/3.5.0-2015-11-04.sql000064400000000730151166706300013431
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);
sql/updates/postgresql/3.5.0-2015-11-05.sql000064400000001552151166706300013435
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);
sql/updates/postgresql/3.5.0-2016-03-01.sql000064400000000624151166706300013432
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");
sql/updates/postgresql/3.6.0-2016-04-01.sql000064400000001651151166706300013435
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';
sql/updates/postgresql/3.6.0-2016-04-08.sql000064400000001164151166706300013443
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;
sql/updates/postgresql/3.6.0-2016-04-09.sql000064400000000171151166706300013441
0ustar00--
-- Add ACL check for to #__menu_types
--
ALTER TABLE "#__menu_types" ADD COLUMN "asset_id"
bigint DEFAULT 0 NOT
NULL;sql/updates/postgresql/3.6.0-2016-05-06.sql000064400000001363151166706300013443
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);
sql/updates/postgresql/3.6.0-2016-06-01.sql000064400000000125151166706300013432
0ustar00UPDATE "#__extensions" SET "protected" = 1,
"enabled" = 1 WHERE "name" = 'com_ajax';
sql/updates/postgresql/3.6.0-2016-06-05.sql000064400000000167151166706300013444
0ustar00--
-- Add ACL check for to #__languages
--
ALTER TABLE "#__languages" ADD COLUMN "asset_id" bigint
DEFAULT 0 NOT
NULL;sql/updates/postgresql/3.6.3-2016-08-15.sql000064400000000211151166706300013440
0ustar00--
-- Increasing size of the URL field in com_newsfeeds
--
ALTER TABLE "#__newsfeeds" ALTER COLUMN "link" TYPE
character varying(2048);
sql/updates/postgresql/3.6.3-2016-08-16.sql000064400000001352151166706300013450
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);sql/updates/postgresql/3.6.3-2016-10-04.sql000064400000000570151166706300013437
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;
sql/updates/postgresql/3.7.0-2016-08-06.sql000064400000000610151166706300013441
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);
sql/updates/postgresql/3.7.0-2016-08-22.sql000064400000000566151166706330013454
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);
sql/updates/postgresql/3.7.0-2016-08-29.sql000064400000013042151166706350013456
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);
sql/updates/postgresql/3.7.0-2016-09-29.sql000064400000000777151166706350013472
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);
sql/updates/postgresql/3.7.0-2016-10-01.sql000064400000000574151166706350013443
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);
sql/updates/postgresql/3.7.0-2016-10-02.sql000064400000000101151166706360013427
0ustar00ALTER TABLE "#__session" ALTER COLUMN
"client_id" DROP NOT NULL;
sql/updates/postgresql/3.7.0-2016-11-04.sql000064400000000101151166706360013432
0ustar00ALTER TABLE "#__extensions" ALTER COLUMN
"enabled" SET DEFAULT
0;sql/updates/postgresql/3.7.0-2016-11-19.sql000064400000000243151166706360013447
0ustar00ALTER TABLE "#__menu_types" ADD COLUMN
"client_id" int DEFAULT 0 NOT NULL;
UPDATE "#__menu" SET "published" = 1 WHERE
"menutype" = 'main' OR "menutype" =
'menu';
sql/updates/postgresql/3.7.0-2016-11-21.sql000064400000000200151166706360013431
0ustar00-- Replace language image UNIQUE index for a normal INDEX.
ALTER TABLE "#__languages" DROP CONSTRAINT
"#__languages_idx_image";
sql/updates/postgresql/3.7.0-2016-11-24.sql000064400000000453151166706360013446
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';
sql/updates/postgresql/3.7.0-2017-01-08.sql000064400000001442151166706360013447
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 '';
sql/updates/postgresql/3.7.0-2017-01-09.sql000064400000001031151166706360013442
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 '';
sql/updates/postgresql/3.7.0-2017-01-15.sql000064400000000565151166706360013452
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);
sql/updates/postgresql/3.7.0-2017-01-17.sql000064400000004707151166706370013457
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');
sql/updates/postgresql/3.7.0-2017-01-31.sql000064400000000562151166706370013446
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);
sql/updates/postgresql/3.7.0-2017-02-02.sql000064400000000572151166706370013446
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);
sql/updates/postgresql/3.7.0-2017-02-15.sql000064400000000171151166706370013445
0ustar00-- Normalize redirect_links table default values.
ALTER TABLE "#__redirect_links" ALTER COLUMN "comment"
SET DEFAULT '';
sql/updates/postgresql/3.7.0-2017-02-17.sql000064400000001052151166706370013446
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 '';
sql/updates/postgresql/3.7.0-2017-03-03.sql000064400000000413151166706370013442
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 '';
sql/updates/postgresql/3.7.0-2017-03-09.sql000064400000001353151166706370013454
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;
sql/updates/postgresql/3.7.0-2017-04-10.sql000064400000001144151166706370013443
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);sql/updates/postgresql/3.7.0-2017-04-19.sql000064400000000247151166706370013457
0ustar00-- Set integer field default values.
UPDATE "#__extensions" SET "params" =
'{"multiple":"0","first":"1","last":"100","step":"1"}'
WHERE "name" = 'plg_fields_integer';
sql/updates/postgresql/3.7.4-2017-07-05.sql000064400000000134151166706370013454
0ustar00DELETE FROM "#__postinstall_messages" WHERE
"title_key" =
'COM_CPANEL_MSG_PHPVERSION_TITLE';sql/updates/postgresql/3.8.0-2017-07-28.sql000064400000000102151166706370013451
0ustar00ALTER TABLE "#__fields_groups" ADD COLUMN
"params" TEXT NOT NULL;
sql/updates/postgresql/3.8.0-2017-07-31.sql000064400000001003151166706370013444
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);
sql/updates/postgresql/3.8.2-2017-10-14.sql000064400000000156151166706370013451
0ustar00--
-- Add index for alias check #__content
--
CREATE INDEX "#__content_idx_alias" ON "#__content"
("alias");
sql/updates/postgresql/3.8.4-2018-01-16.sql000064400000000110151166706370013444
0ustar00DROP INDEX "#__user_keys_series_2";
DROP INDEX "#__user_keys_series_3";
sql/updates/postgresql/3.8.6-2018-02-14.sql000064400000002017151166706370013455
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);
sql/updates/postgresql/3.8.8-2018-05-18.sql000064400000001021151166706370013460
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);
sql/updates/postgresql/3.8.9-2018-06-19.sql000064400000000152151166706400013461
0ustar00-- Enable Sample Data Module.
UPDATE "#__extensions" SET "enabled" = '1'
WHERE "name" = 'mod_sampledata';
sql/updates/postgresql/3.9.0-2018-05-02.sql000064400000002044151166706400013442
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");
sql/updates/postgresql/3.9.0-2018-05-03.sql000064400000000625151166706400013446
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);
sql/updates/postgresql/3.9.0-2018-05-05.sql000064400000010621151166706400013445
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);
sql/updates/postgresql/3.9.0-2018-05-19.sql000064400000000611151166706400013450
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);
sql/updates/postgresql/3.9.0-2018-05-20.sql000064400000000610151166706400013437
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);
sql/updates/postgresql/3.9.0-2018-05-24.sql000064400000001611151166706400013445
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");
sql/updates/postgresql/3.9.0-2018-05-27.sql000064400000001006151166706400013446
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);
sql/updates/postgresql/3.9.0-2018-06-02.sql000064400000001535151166706400013447
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';
sql/updates/postgresql/3.9.0-2018-06-12.sql000064400000000620151166706400013442
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);
sql/updates/postgresql/3.9.0-2018-06-13.sql000064400000000625151166706420013452
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);
sql/updates/postgresql/3.9.0-2018-06-14.sql000064400000001022151166706420013443
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);sql/updates/postgresql/3.9.0-2018-06-17.sql000064400000000575151166706420013462
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);
sql/updates/postgresql/3.9.0-2018-07-09.sql000064400000001205151166706420013453
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);
sql/updates/postgresql/3.9.0-2018-07-10.sql000064400000000346151166706430013451
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');
sql/updates/postgresql/3.9.0-2018-07-11.sql000064400000000615151166706430013451
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);
sql/updates/postgresql/3.9.0-2018-08-12.sql000064400000000121151166706430013443
0ustar00ALTER TABLE "#__privacy_consents" ADD COLUMN
"state" smallint DEFAULT 1 NOT
NULL;sql/updates/postgresql/3.9.0-2018-08-28.sql000064400000000736151166706430013466
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;
sql/updates/postgresql/3.9.0-2018-08-29.sql000064400000000717151166706430013466
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);
sql/updates/postgresql/3.9.0-2018-09-04.sql000064400000000362151166706430013454
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");
sql/updates/postgresql/3.9.0-2018-10-15.sql000064400000000557151166706430013454
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");
sql/updates/postgresql/3.9.0-2018-10-20.sql000064400000000261151166706430013440
0ustar00DROP INDEX "#__privacy_requests_idx_checked_out";
ALTER TABLE "#__privacy_requests" DROP COLUMN
"checked_out";
ALTER TABLE "#__privacy_requests" DROP COLUMN
"checked_out_time";
sql/updates/postgresql/3.9.0-2018-10-21.sql000064400000000611151166706430013440
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);
sql/updates/postgresql/3.9.10-2019-07-09.sql000064400000000226151166706430013540
0ustar00ALTER TABLE "#__template_styles" ALTER COLUMN
"home" TYPE character varying(7);
ALTER TABLE "#__template_styles" ALTER COLUMN "home"
SET DEFAULT '0';
sql/updates/postgresql/3.9.15-2020-01-08.sql000064400000000104151166706430013521
0ustar00CREATE INDEX "#__users_email_lower" ON
"#__users" (lower("email"));
sql/updates/postgresql/3.9.16-2020-02-15.sql000064400000004320151166706430013525
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;
sql/updates/postgresql/3.9.16-2020-03-04.sql000064400000000175151166706430013530
0ustar00DROP INDEX IF EXISTS "#__users_username";
ALTER TABLE "#__users" ADD CONSTRAINT
"#__users_idx_username" UNIQUE ("username");
sql/updates/postgresql/3.9.19-2020-06-01.sql000064400000000766151166706430013541
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);
sql/updates/postgresql/3.9.21-2020-08-02.sql000064400000000752151166706430013530
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);
sql/updates/postgresql/3.9.22-2020-09-16.sql000064400000000546151166706430013540
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);
sql/updates/postgresql/3.9.3-2019-01-12.sql000064400000000476151166706430013455
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";sql/updates/postgresql/3.9.3-2019-02-07.sql000064400000000745151166706430013461
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);
sql/updates/postgresql/3.9.7-2019-04-23.sql000064400000000126151166706430013456
0ustar00CREATE INDEX "#__session_idx_client_id_guest" ON
"#__session" ("client_id", "guest");
sql/updates/postgresql/3.9.7-2019-04-26.sql000064400000000522151166706430013461
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\"]');
sql/updates/postgresql/3.9.7-2019-05-16.sql000064400000000105151166706430013456
0ustar00# Query removed, see
https://github.com/joomla/joomla-cms/pull/25177
sql/updates/postgresql/3.9.8-2019-06-11.sql000064400000000102151166706430013450
0ustar00UPDATE "#__users" SET "params" =
REPLACE("params", '",,"',
'","');sql/updates/postgresql/3.9.8-2019-06-15.sql000064400000000466151166706430013471
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");
sql/updates/sqlazure/2.5.2-2012-03-05.sql000064400000000046151166706430013100
0ustar00# Dummy SQL file to set schema
versionsql/updates/sqlazure/2.5.3-2012-03-13.sql000064400000000046151166706430013100
0ustar00# Dummy SQL file to set schema
versionsql/updates/sqlazure/2.5.4-2012-03-18.sql000064400000002425151166706430013111
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;
sql/updates/sqlazure/2.5.4-2012-03-19.sql000064400000000531151166706430013106
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';
sql/updates/sqlazure/2.5.5.sql000064400000000341151166706430012055
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;sql/updates/sqlazure/2.5.6.sql000064400000000071151166706430012056
0ustar00# Placeholder file for database changes for version
2.5.6sql/updates/sqlazure/2.5.7.sql000064400000001024151166706430012056
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');
sql/updates/sqlazure/3.0.0.sql000064400000000072151166706430012045
0ustar00# Placeholder file for database changes for version 3.0.0
sql/updates/sqlazure/3.0.1.sql000064400000000072151166706430012046
0ustar00# Placeholder file for database changes for version 3.0.1
sql/updates/sqlazure/3.0.2.sql000064400000000071151166706430012046
0ustar00# Placeholder file for database changes for version
3.0.2sql/updates/sqlazure/3.0.3.sql000064400000000614151166706430012052
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];
sql/updates/sqlazure/3.1.0.sql000064400000052754151166706430012064
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;
sql/updates/sqlazure/3.1.1.sql000064400000000071151166706440012047
0ustar00# Placeholder file for database changes for version
3.1.1sql/updates/sqlazure/3.1.2.sql000064400000021415151166706440012055
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';
sql/updates/sqlazure/3.1.3.sql000064400000000072151166706440012052
0ustar00# Placeholder file for database changes for version 3.1.3
sql/updates/sqlazure/3.1.4.sql000064400000000675151166706440012064
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;
sql/updates/sqlazure/3.1.5.sql000064400000000072151166706440012054
0ustar00# Placeholder file for database changes for version 3.1.5
sql/updates/sqlazure/3.2.0.sql000064400000047561151166706440012066
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);
sql/updates/sqlazure/3.2.1.sql000064400000000150151166706440012046
0ustar00DELETE FROM [#__postinstall_messages] WHERE [title_key] =
'PLG_USER_JOOMLA_POSTINSTALL_STRONGPW_TITLE';
sql/updates/sqlazure/3.2.2-2013-12-22.sql000064400000000237151166706440013101
0ustar00ALTER TABLE [#__update_sites] ADD [extra_query] [nvarchar](1000)
NULL DEFAULT '';
ALTER TABLE [#__updates] ADD [extra_query] [nvarchar](1000) NULL DEFAULT
'';
sql/updates/sqlazure/3.2.2-2013-12-28.sql000064400000000254151166706440013106
0ustar00UPDATE [#__menu] SET [component_id] = (SELECT [extension_id] FROM
[#__extensions] WHERE [element] = 'com_joomlaupdate') WHERE
[link] = 'index.php?option=com_joomlaupdate';
sql/updates/sqlazure/3.2.2-2014-01-08.sql000064400000000705151166706440013104
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;
sql/updates/sqlazure/3.2.2-2014-01-15.sql000064400000000743151166706440013104
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;
sql/updates/sqlazure/3.2.2-2014-01-18.sql000064400000000144151166706440013102
0ustar00/* Update updates version length */
ALTER TABLE [#__updates] ALTER COLUMN [version] [nvarchar](32);
sql/updates/sqlazure/3.2.2-2014-01-23.sql000064400000000661151166706440013102
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;
sql/updates/sqlazure/3.2.3-2014-02-20.sql000064400000000235151166706440013076
0ustar00UPDATE [#__extensions] SET [params] = (SELECT [params] FROM
[#__extensions] WHERE [name] = 'plg_system_remember') WHERE
[name] =
'plg_authentication_cookie';sql/updates/sqlazure/3.3.0-2014-02-16.sql000064400000000105151166706440013075
0ustar00ALTER TABLE [#__users] ADD [requireReset] [smallint] NULL DEFAULT
0;
sql/updates/sqlazure/3.3.0-2014-04-02.sql000064400000000752151166706440013102
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;
sql/updates/sqlazure/3.3.4-2014-08-03.sql000064400000000126151166706440013106
0ustar00ALTER TABLE [#__user_profiles] ALTER COLUMN [profile_value]
[nvarchar](max) NOT NULL;
sql/updates/sqlazure/3.3.6-2014-09-30.sql000064400000000723151166706440013114
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');
sql/updates/sqlazure/3.4.0-2014-08-24.sql000064400000000733151166706440013112
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;
sql/updates/sqlazure/3.4.0-2014-09-01.sql000064400000001464151166706440013110
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;
sql/updates/sqlazure/3.4.0-2014-09-16.sql000064400000000463151166706440013114
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;
sql/updates/sqlazure/3.4.0-2014-10-20.sql000064400000000070151166706440013071
0ustar00DELETE FROM [#__extensions] WHERE [extension_id] = 100;
sql/updates/sqlazure/3.4.0-2014-12-03.sql000064400000000244151166706440013077
0ustar00UPDATE [#__extensions] SET [protected] = '0' WHERE [name]
= 'plg_editors-xtd_article' AND [type] = 'plugin' AND
[element] = 'article' AND [folder] = 'editors-xtd';
sql/updates/sqlazure/3.4.0-2015-01-21.sql000064400000000576151166706440013106
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;
sql/updates/sqlazure/3.4.0-2015-02-26.sql000064400000000777151166706440013117
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;
sql/updates/sqlazure/3.4.4-2015-07-11.sql000064400000000631151166706440013107
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];
sql/updates/sqlazure/3.5.0-2015-10-13.sql000064400000000713151166706440013101
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;
sql/updates/sqlazure/3.5.0-2015-10-26.sql000064400000000234151166706440013103
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];
sql/updates/sqlazure/3.5.0-2015-10-30.sql000064400000000171151166706440013076
0ustar00UPDATE [#__menu] SET [title] = 'com_contact_contacts'
WHERE [client_id] = 1 AND [level] = 2 AND [title] =
'com_contact';
sql/updates/sqlazure/3.5.0-2015-11-04.sql000064400000001051151166706440013076
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;
sql/updates/sqlazure/3.5.0-2015-11-05.sql000064400000001671151166706440013107
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;
sql/updates/sqlazure/3.5.0-2016-03-01.sql000064400000001302151166706440013074
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);
sql/updates/sqlazure/3.6.0-2016-04-01.sql000064400000001651151166706440013105
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';
sql/updates/sqlazure/3.6.0-2016-04-06.sql000064400000000111151166706440013100
0ustar00ALTER TABLE [#__redirect_links] ALTER COLUMN [new_url]
[nvarchar](2048);
sql/updates/sqlazure/3.6.0-2016-04-08.sql000064400000001305151166706440013110
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;
sql/updates/sqlazure/3.6.0-2016-04-09.sql000064400000000164151166706440013113
0ustar00--
-- Add ACL check for to #__menu_types
--
ALTER TABLE [#__menu_types] ADD [asset_id] [bigint] NOT NULL DEFAULT
0;sql/updates/sqlazure/3.6.0-2016-05-06.sql000064400000001540151166706440013110
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;
sql/updates/sqlazure/3.6.0-2016-06-01.sql000064400000000125151166706440013102
0ustar00UPDATE [#__extensions] SET [protected] = 1, [enabled] = 1 WHERE
[name] = 'com_ajax';
sql/updates/sqlazure/3.6.0-2016-06-05.sql000064400000000162151166706440013107
0ustar00--
-- Add ACL check for to #__languages
--
ALTER TABLE [#__languages] ADD [asset_id] [bigint] NOT NULL DEFAULT
0;sql/updates/sqlazure/3.6.3-2016-08-15.sql000064400000000206151166706440013114
0ustar00--
-- Increasing size of the URL field in com_newsfeeds
--
ALTER TABLE [#__newsfeeds] ALTER COLUMN [link] [nvarchar](2048) NOT NULL;
sql/updates/sqlazure/3.6.3-2016-08-16.sql000064400000001351151166706440013117
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;
sql/updates/sqlazure/3.7.0-2016-08-06.sql000064400000000725151166706440013120
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;
sql/updates/sqlazure/3.7.0-2016-08-22.sql000064400000000710151166706440013110
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;sql/updates/sqlazure/3.7.0-2016-08-29.sql000064400000013673151166706440013133
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;
sql/updates/sqlazure/3.7.0-2016-09-29.sql000064400000000776151166706440013134
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;
sql/updates/sqlazure/3.7.0-2016-10-01.sql000064400000000717151166706440013105
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;
sql/updates/sqlazure/3.7.0-2016-10-02.sql000064400000000102151166706440013072
0ustar00ALTER TABLE [#__session] ALTER COLUMN [client_id] [tinyint] NULL;
sql/updates/sqlazure/3.7.0-2016-11-04.sql000064400000001215151166706440013103
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;
sql/updates/sqlazure/3.7.0-2016-11-19.sql000064400000000242151166706440013110
0ustar00ALTER TABLE [#__menu_types] ADD [client_id] [tinyint] NOT NULL
DEFAULT 0;
UPDATE [#__menu] SET [published] = 1 WHERE [menutype] = 'main' OR
[menutype] = 'menu';
sql/updates/sqlazure/3.7.0-2016-11-24.sql000064400000000411151166706440013102
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';
sql/updates/sqlazure/3.7.0-2017-01-08.sql000064400000003374151166706440013117
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];
sql/updates/sqlazure/3.7.0-2017-01-09.sql000064400000000726151166706440013116
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];
sql/updates/sqlazure/3.7.0-2017-01-15.sql000064400000000706151166706440013111
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;
sql/updates/sqlazure/3.7.0-2017-01-17.sql000064400000011410151166706440013105
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;
sql/updates/sqlazure/3.7.0-2017-01-31.sql000064400000000677151166706440013116
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;
sql/updates/sqlazure/3.7.0-2017-02-02.sql000064400000000707151166706440013107
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;
sql/updates/sqlazure/3.7.0-2017-02-15.sql000064400000000162151166706440013106
0ustar00-- Normalize redirect_links table default values.
ALTER TABLE [#__redirect_links] ADD DEFAULT ('') FOR [comment];
sql/updates/sqlazure/3.7.0-2017-02-16.sql000064400000042540151166706440013115
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";
sql/updates/sqlazure/3.7.0-2017-02-17.sql000064400000002025151166706440013110
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];
sql/updates/sqlazure/3.7.0-2017-03-03.sql000064400000002074151166706450013111
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");
sql/updates/sqlazure/3.7.0-2017-03-09.sql000064400000001401151166706450013110
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;
sql/updates/sqlazure/3.7.0-2017-04-10.sql000064400000001144151166706450013105
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);sql/updates/sqlazure/3.7.0-2017-04-19.sql000064400000000250151166706450013113
0ustar00-- Set integer field default values.
UPDATE [#__extensions] SET [params] =
'{"multiple":"0","first":"1","last":"100","step":"1"}'
WHERE [name] = 'plg_fields_integer';
sql/updates/sqlazure/3.7.4-2017-07-05.sql000064400000000134151166706450013116
0ustar00DELETE FROM [#__postinstall_messages] WHERE [title_key] =
'COM_CPANEL_MSG_PHPVERSION_TITLE';sql/updates/sqlazure/3.8.0-2017-07-28.sql000064400000000110151166706450013112
0ustar00ALTER TABLE [#__fields_groups] ADD [params] [text] NOT NULL DEFAULT
'';
sql/updates/sqlazure/3.8.0-2017-07-31.sql000064400000001003151166706450013106
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);
sql/updates/sqlazure/3.8.2-2017-10-14.sql000064400000000324151166706450013110
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);
sql/updates/sqlazure/3.8.4-2018-01-16.sql000064400000000210151166706450013107
0ustar00ALTER TABLE [#__user_keys] DROP CONSTRAINT [#__user_keys$series_2];
ALTER TABLE [#__user_keys] DROP CONSTRAINT [#__user_keys$series_3];
sql/updates/sqlazure/3.8.6-2018-02-14.sql000064400000002017151166706450013117
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);
sql/updates/sqlazure/3.8.8-2018-05-18.sql000064400000001017151166706450013127
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;
sql/updates/sqlazure/3.8.9-2018-06-19.sql000064400000000153151166706450013132
0ustar00-- Enable Sample Data Module.
UPDATE [#__extensions] SET [enabled] = '1' WHERE [name] =
'mod_sampledata';
sql/updates/sqlazure/3.9.0-2018-05-02.sql000064400000002557151166706450013123
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);
sql/updates/sqlazure/3.9.0-2018-05-03.sql000064400000000750151166706450013115
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;
sql/updates/sqlazure/3.9.0-2018-05-05.sql000064400000011665151166706450013126
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;
sql/updates/sqlazure/3.9.0-2018-05-19.sql000064400000000734151166706450013126
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;
sql/updates/sqlazure/3.9.0-2018-05-20.sql000064400000000733151166706500013111
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;
sql/updates/sqlazure/3.9.0-2018-05-24.sql000064400000002376151166706500013122
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);
sql/updates/sqlazure/3.9.0-2018-05-27.sql000064400000001131151166706500013111
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;
sql/updates/sqlazure/3.9.0-2018-06-02.sql000064400000001530151166706500013106
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';
sql/updates/sqlazure/3.9.0-2018-06-12.sql000064400000000743151166706500013114
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;
sql/updates/sqlazure/3.9.0-2018-06-13.sql000064400000000750151166706510013114
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;
sql/updates/sqlazure/3.9.0-2018-06-14.sql000064400000001023151166706510013107
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);
sql/updates/sqlazure/3.9.0-2018-06-17.sql000064400000000720151166706510013115
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;
sql/updates/sqlazure/3.9.0-2018-07-09.sql000064400000001330151166706510013115
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;
sql/updates/sqlazure/3.9.0-2018-07-10.sql000064400000000506151166706510013111
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;
sql/updates/sqlazure/3.9.0-2018-07-11.sql000064400000000740151166706540013115
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;
sql/updates/sqlazure/3.9.0-2018-08-12.sql000064400000000115151166706540013113
0ustar00ALTER TABLE "#__privacy_consents" ADD "state"
"smallint" NOT NULL DEFAULT 1;
sql/updates/sqlazure/3.9.0-2018-08-28.sql000064400000001252151166706540013125
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");
sql/updates/sqlazure/3.9.0-2018-08-29.sql000064400000001042151166706540013123
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;
sql/updates/sqlazure/3.9.0-2018-09-04.sql000064400000001042151166706540013115
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);
sql/updates/sqlazure/3.9.0-2018-10-15.sql000064400000001377151166706540013122
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);
sql/updates/sqlazure/3.9.0-2018-10-20.sql000064400000002162151166706540013107
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";
sql/updates/sqlazure/3.9.0-2018-10-21.sql000064400000000734151166706540013113
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;
sql/updates/sqlazure/3.9.10-2019-07-09.sql000064400000000212151166706540013200
0ustar00ALTER TABLE [#__template_styles] ALTER COLUMN [home] nvarchar(7)
NOT NULL;
ALTER TABLE [#__template_styles] ADD DEFAULT ('0') FOR [home];
sql/updates/sqlazure/3.9.16-2020-03-04.sql000064400000000310151166706540013164
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);sql/updates/sqlazure/3.9.19-2020-06-01.sql000064400000000764151166706540013204
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;
sql/updates/sqlazure/3.9.21-2020-08-02.sql000064400000000750151166706540013173
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;
sql/updates/sqlazure/3.9.22-2020-09-16.sql000064400000000546151166706570013210
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);
sql/updates/sqlazure/3.9.3-2019-01-12.sql000064400000000461151166706570013117
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;sql/updates/sqlazure/3.9.3-2019-02-07.sql000064400000000743151166706570013127
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;
sql/updates/sqlazure/3.9.4-2019-03-06.sql000064400000000507151166706570013126
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';
sql/updates/sqlazure/3.9.7-2019-04-23.sql000064400000000300151166706570013120
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);
sql/updates/sqlazure/3.9.7-2019-04-26.sql000064400000000522151166706570013131
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\"]');
sql/updates/sqlazure/3.9.7-2019-05-16.sql000064400000000105151166706570013126
0ustar00# Query removed, see
https://github.com/joomla/joomla-cms/pull/25177
sql/updates/sqlazure/3.9.8-2019-06-11.sql000064400000000102151166706570013120
0ustar00UPDATE [#__users] SET [params] = REPLACE([params],
'",,"',
'","');sql/updates/sqlazure/3.9.8-2019-06-15.sql000064400000001056151166706570013135
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];
views/help/tmpl/default.php000064400000003476151166706570011772
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
JHtml::_('bootstrap.tooltip');
?>
<form action="<?php echo
JRoute::_('index.php?option=com_admin&view=help');
?>" method="post" name="adminForm"
id="adminForm">
<div class="row-fluid">
<div id="sidebar" class="span3">
<div class="clearfix"></div>
<div class="sidebar-nav">
<ul class="nav nav-list">
<li><?php echo JHtml::_('link',
JHelp::createUrl('JHELP_START_HERE'),
JText::_('COM_ADMIN_START_HERE'), array('target' =>
'helpFrame')); ?></li>
<li><?php echo JHtml::_('link',
$this->latest_version_check,
JText::_('COM_ADMIN_LATEST_VERSION_CHECK'),
array('target' => 'helpFrame')); ?></li>
<li><?php echo JHtml::_('link',
'https://www.gnu.org/licenses/gpl-2.0.html',
JText::_('COM_ADMIN_LICENSE'), array('target' =>
'helpFrame')); ?></li>
<li><?php echo JHtml::_('link',
JHelp::createUrl('JHELP_GLOSSARY'),
JText::_('COM_ADMIN_GLOSSARY'), array('target' =>
'helpFrame')); ?></li>
<li class="divider"></li>
<li class="nav-header"><?php echo
JText::_('COM_ADMIN_ALPHABETICAL_INDEX'); ?></li>
<?php foreach ($this->toc as $k => $v) : ?>
<li>
<?php $url = JHelp::createUrl('JHELP_' .
strtoupper($k)); ?>
<?php echo JHtml::_('link', $url, $v,
array('target' => 'helpFrame')); ?>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
<div class="span9">
<iframe name="helpFrame" title="helpFrame"
height="2100px" src="<?php echo $this->page;
?>" class="helpFrame table
table-bordered"></iframe>
</div>
</div>
<input class="textarea" type="hidden"
name="option" value="com_admin" />
</form>
views/help/tmpl/default.xml000064400000000306151166706570011770
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
<layout title="COM_ADMIN_HELP_VIEW_DEFAULT_TITLE">
<message>
<![CDATA[COM_ADMIN_HELP_VIEW_DEFAULT_DESC]]>
</message>
</layout>
</metadata>
views/help/tmpl/langforum.php000064400000001140151166706600012314
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
JFactory::getLanguage()->load('mod_menu', JPATH_ADMINISTRATOR,
null, false, true);
$forumId = (int)
JText::_('MOD_MENU_HELP_SUPPORT_OFFICIAL_LANGUAGE_FORUM_VALUE');
if (empty($forumId))
{
$forumId = 511;
}
$forum_url = 'https://forum.joomla.org/viewforum.php?f=' .
$forumId;
JFactory::getApplication()->redirect($forum_url);
views/help/view.html.php000064400000003573151166706600011277
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
/**
* HTML View class for the Admin component
*
* @since 1.6
*/
class AdminViewHelp extends JViewLegacy
{
/**
* The search string
*
* @var string
* @since 1.6
*/
protected $help_search = null;
/**
* The page to be viewed
*
* @var string
* @since 1.6
*/
protected $page = null;
/**
* The iso language tag
*
* @var string
* @since 1.6
*/
protected $lang_tag = null;
/**
* Table of contents
*
* @var array
* @since 1.6
*/
protected $toc = array();
/**
* URL for the latest version check
*
* @var string
* @since 1.6
*/
protected $latest_version_check =
'https://downloads.joomla.org/latest';
/**
* URL for the start here link
*
* @var string
* @since 1.6
*/
protected $start_here = null;
/**
* Execute and display a template script.
*
* @param string $tpl The name of the template file to parse;
automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise an Error object.
*
* @since 1.6
*/
public function display($tpl = null)
{
$this->help_search = $this->get('HelpSearch');
$this->page = $this->get('Page');
$this->toc = $this->get('Toc');
$this->lang_tag = $this->get('LangTag');
$this->latest_version_check =
$this->get('LatestVersionCheck');
$this->addToolbar();
return parent::display($tpl);
}
/**
* Setup the Toolbar
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
JToolbarHelper::title(JText::_('COM_ADMIN_HELP'), 'support
help_header');
}
}
views/profile/tmpl/edit.php000064400000010245151166706600011765
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
JHtml::_('behavior.formvalidator');
JFactory::getDocument()->addScriptDeclaration('
Joomla.submitbutton = function(task)
{
if (task == "profile.cancel" ||
document.formvalidator.isValid(document.getElementById("profile-form")))
{
Joomla.submitform(task,
document.getElementById("profile-form"));
}
};
Joomla.twoFactorMethodChange = function(e)
{
var selectedPane = "com_admin_twofactor_" +
jQuery("#jform_twofactor_method").val();
jQuery.each(jQuery("#com_admin_twofactor_forms_container>div"),
function(i, el)
{
if (el.id != selectedPane)
{
jQuery("#" + el.id).hide(0);
}
else
{
jQuery("#" + el.id).show(0);
}
});
}
');
// Load chosen.css
JHtml::_('formbehavior.chosen', 'select');
// Fieldsets to not automatically render by /layouts/joomla/edit/params.php
$this->ignore_fieldsets = array('user_details');
?>
<form action="<?php echo
JRoute::_('index.php?option=com_admin&view=profile&layout=edit&id='
. $this->item->id); ?>" method="post"
name="adminForm" id="profile-form"
class="form-validate form-horizontal"
enctype="multipart/form-data">
<?php echo JHtml::_('bootstrap.startTabSet',
'myTab', array('active' => 'account'));
?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'account', JText::_('COM_ADMIN_USER_ACCOUNT_DETAILS'));
?>
<?php foreach ($this->form->getFieldset('user_details')
as $field) : ?>
<?php if ($field->fieldname === 'password2') : ?>
<?php // Disables autocomplete ?>
<input type="password" style="display:none">
<?php endif; ?>
<?php echo $field->renderField(); ?>
<?php endforeach; ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php if (count($this->twofactormethods) > 1) : ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'twofactorauth',
JText::_('COM_USERS_USER_TWO_FACTOR_AUTH')); ?>
<fieldset>
<div class="control-group">
<div class="control-label">
<label id="jform_twofactor_method-lbl"
for="jform_twofactor_method" class="hasTooltip"
title="<?php echo '<strong>' .
JText::_('COM_USERS_USER_FIELD_TWOFACTOR_LABEL') .
'</strong><br />' .
JText::_('COM_USERS_USER_FIELD_TWOFACTOR_DESC'); ?>">
<?php echo
JText::_('COM_USERS_USER_FIELD_TWOFACTOR_LABEL'); ?>
</label>
</div>
<div class="controls">
<?php echo JHtml::_('select.genericlist',
$this->twofactormethods, 'jform[twofactor][method]',
array('onchange' =>
'Joomla.twoFactorMethodChange()'), 'value',
'text', $this->otpConfig->method,
'jform_twofactor_method', false); ?>
</div>
</div>
<div id="com_admin_twofactor_forms_container">
<?php foreach ($this->twofactorform as $form) : ?>
<?php $style = $form['method'] ==
$this->otpConfig->method ? 'display: block' :
'display: none'; ?>
<div id="com_admin_twofactor_<?php echo
$form['method']; ?>" style="<?php echo $style;
?>">
<?php echo $form['form']; ?>
</div>
<?php endforeach; ?>
</div>
</fieldset>
<fieldset>
<legend>
<?php echo JText::_('COM_USERS_USER_OTEPS'); ?>
</legend>
<div class="alert alert-info">
<?php echo JText::_('COM_USERS_USER_OTEPS_DESC'); ?>
</div>
<?php if (empty($this->otpConfig->otep)) : ?>
<div class="alert alert-warning">
<?php echo JText::_('COM_USERS_USER_OTEPS_WAIT_DESC');
?>
</div>
<?php else : ?>
<?php foreach ($this->otpConfig->otep as $otep) : ?>
<span class="span3">
<?php echo substr($otep, 0, 4); ?>-<?php echo substr($otep,
4, 4); ?>-<?php echo substr($otep, 8, 4); ?>-<?php echo
substr($otep, 12, 4); ?>
</span>
<?php endforeach; ?>
<div class="clearfix"></div>
<?php endif; ?>
</fieldset>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>
<?php echo JLayoutHelper::render('joomla.edit.params',
$this); ?>
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
<input type="hidden" name="task" value=""
/>
<?php echo JHtml::_('form.token'); ?>
</form>
views/profile/view.html.php000064400000004376151166706600012011
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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::register('UsersHelper', JPATH_ADMINISTRATOR .
'/components/com_users/helpers/users.php');
/**
* View class to allow users edit their own profile.
*
* @since 1.6
*/
class AdminViewProfile extends JViewLegacy
{
/**
* The JForm object
*
* @var JForm
* @since 1.6
*/
protected $form;
/**
* The item being viewed
*
* @var object
* @since 1.6
*/
protected $item;
/**
* The model state
*
* @var object
* @since 1.6
*/
protected $state;
/**
* Execute and display a template script.
*
* @param string $tpl The name of the template file to parse;
automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise an Error object.
*
* @since 1.6
*/
public function display($tpl = null)
{
$this->form = $this->get('Form');
$this->item = $this->get('Item');
$this->state = $this->get('State');
$this->twofactorform = $this->get('Twofactorform');
$this->twofactormethods = UsersHelper::getTwoFactorMethods();
$this->otpConfig = $this->get('OtpConfig');
// Load the language strings for the 2FA
JFactory::getLanguage()->load('com_users',
JPATH_ADMINISTRATOR);
// Check for errors.
if (count($errors = $this->get('Errors')))
{
throw new Exception(implode("\n", $errors), 500);
}
$this->form->setValue('password', null);
$this->form->setValue('password2', null);
$this->addToolbar();
return parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
JFactory::getApplication()->input->set('hidemainmenu',
1);
JToolbarHelper::title(JText::_('COM_ADMIN_VIEW_PROFILE_TITLE'),
'user user-profile');
JToolbarHelper::apply('profile.apply');
JToolbarHelper::save('profile.save');
JToolbarHelper::cancel('profile.cancel',
'JTOOLBAR_CLOSE');
JToolbarHelper::divider();
JToolbarHelper::help('JHELP_ADMIN_USER_PROFILE_EDIT');
}
}
views/sysinfo/tmpl/default.php000064400000003546151166706600012524
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
// Add specific helper files for html generation
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
?>
<form action="<?php echo
JRoute::_('index.php?option=com_admin&view=sysinfo');
?>" method="post" name="adminForm"
id="adminForm">
<div class="row-fluid">
<!-- Begin Content -->
<div class="span12">
<?php echo JHtml::_('bootstrap.startTabSet',
'myTab', array('active' => 'site')); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'site', JText::_('COM_ADMIN_SYSTEM_INFORMATION'));
?>
<?php echo $this->loadTemplate('system'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'phpsettings', JText::_('COM_ADMIN_PHP_SETTINGS'));
?>
<?php echo $this->loadTemplate('phpsettings'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'config', JText::_('COM_ADMIN_CONFIGURATION_FILE'));
?>
<?php echo $this->loadTemplate('config'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'directory',
JText::_('COM_ADMIN_DIRECTORY_PERMISSIONS')); ?>
<?php echo $this->loadTemplate('directory'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'phpinfo', JText::_('COM_ADMIN_PHP_INFORMATION'));
?>
<?php echo $this->loadTemplate('phpinfo'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
</div>
<input type="hidden" name="task"
value="" />
<?php echo JHtml::_('form.token'); ?>
<!-- End Content -->
</div>
</form>
views/sysinfo/tmpl/default.xml000064400000000314151166706600012523
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
<layout title="COM_ADMIN_SYSINFO_VIEW_DEFAULT_TITLE">
<message>
<![CDATA[COM_ADMIN_SYSINFO_VIEW_DEFAULT_DESC]]>
</message>
</layout>
</metadata>
views/sysinfo/tmpl/default_config.php000064400000001656151166706600014051
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
?>
<fieldset class="adminform">
<legend><?php echo
JText::_('COM_ADMIN_CONFIGURATION_FILE'); ?></legend>
<table class="table table-striped">
<thead>
<tr>
<th width="300">
<?php echo JText::_('COM_ADMIN_SETTING'); ?>
</th>
<th>
<?php echo JText::_('COM_ADMIN_VALUE'); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2"> </td>
</tr>
</tfoot>
<tbody>
<?php foreach ($this->config as $key => $value) : ?>
<tr>
<td>
<?php echo $key; ?>
</td>
<td>
<?php echo htmlspecialchars($value, ENT_QUOTES); ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
views/sysinfo/tmpl/default_directory.php000064400000001764151166706600014610
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
?>
<fieldset class="adminform">
<legend><?php echo
JText::_('COM_ADMIN_DIRECTORY_PERMISSIONS'); ?></legend>
<table class="table table-striped">
<thead>
<tr>
<th width="650">
<?php echo JText::_('COM_ADMIN_DIRECTORY'); ?>
</th>
<th>
<?php echo JText::_('COM_ADMIN_STATUS'); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2"> </td>
</tr>
</tfoot>
<tbody>
<?php foreach ($this->directory as $dir => $info) : ?>
<tr>
<td>
<?php echo JHtml::_('directory.message', $dir,
$info['message']); ?>
</td>
<td>
<?php echo JHtml::_('directory.writable',
$info['writable']); ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
views/sysinfo/tmpl/default_phpinfo.php000064400000000646151166706600014245
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
?>
<fieldset class="adminform">
<legend><?php echo
JText::_('COM_ADMIN_PHP_INFORMATION'); ?></legend>
<?php echo $this->php_info; ?>
</fieldset>
views/sysinfo/tmpl/default_phpsettings.php000064400000010023151166706610015141
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
?>
<fieldset class="adminform">
<legend><?php echo
JText::_('COM_ADMIN_RELEVANT_PHP_SETTINGS'); ?></legend>
<table class="table table-striped">
<thead>
<tr>
<th width="250">
<?php echo JText::_('COM_ADMIN_SETTING'); ?>
</th>
<th>
<?php echo JText::_('COM_ADMIN_VALUE'); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2"> 
</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_SAFE_MODE'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean',
$this->php_settings['safe_mode']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_OPEN_BASEDIR'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.string',
$this->php_settings['open_basedir']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_DISPLAY_ERRORS'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean',
$this->php_settings['display_errors']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_SHORT_OPEN_TAGS'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean',
$this->php_settings['short_open_tag']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_FILE_UPLOADS'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean',
$this->php_settings['file_uploads']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_MAGIC_QUOTES'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean',
$this->php_settings['magic_quotes_gpc']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_REGISTER_GLOBALS'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean',
$this->php_settings['register_globals']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_OUTPUT_BUFFERING'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean',
$this->php_settings['output_buffering']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_SESSION_SAVE_PATH'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.string',
$this->php_settings['session.save_path']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_SESSION_AUTO_START');
?>
</td>
<td>
<?php echo JHtml::_('phpsetting.integer',
$this->php_settings['session.auto_start']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_XML_ENABLED'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.set',
$this->php_settings['xml']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_ZLIB_ENABLED'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.set',
$this->php_settings['zlib']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_ZIP_ENABLED'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.set',
$this->php_settings['zip']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_DISABLED_FUNCTIONS');
?>
</td>
<td class="break-word">
<?php echo JHtml::_('phpsetting.string',
$this->php_settings['disable_functions']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_MBSTRING_ENABLED'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.set',
$this->php_settings['mbstring']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_ICONV_AVAILABLE'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.set',
$this->php_settings['iconv']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_MAX_INPUT_VARS'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.integer',
$this->php_settings['max_input_vars']); ?>
</td>
</tr>
</tbody>
</table>
</fieldset>
views/sysinfo/tmpl/default_system.php000064400000005243151166706610014125
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
?>
<fieldset class="adminform">
<legend><?php echo
JText::_('COM_ADMIN_SYSTEM_INFORMATION'); ?></legend>
<table class="table table-striped">
<thead>
<tr>
<th width="25%">
<?php echo JText::_('COM_ADMIN_SETTING'); ?>
</th>
<th>
<?php echo JText::_('COM_ADMIN_VALUE'); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2"> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td>
<strong><?php echo
JText::_('COM_ADMIN_PHP_BUILT_ON'); ?></strong>
</td>
<td>
<?php echo $this->info['php']; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo
JText::_('COM_ADMIN_DATABASE_TYPE'); ?></strong>
</td>
<td>
<?php echo $this->info['dbserver']; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo
JText::_('COM_ADMIN_DATABASE_VERSION'); ?></strong>
</td>
<td>
<?php echo $this->info['dbversion']; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo
JText::_('COM_ADMIN_DATABASE_COLLATION'); ?></strong>
</td>
<td>
<?php echo $this->info['dbcollation']; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo
JText::_('COM_ADMIN_DATABASE_CONNECTION_COLLATION');
?></strong>
</td>
<td>
<?php echo $this->info['dbconnectioncollation']; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo
JText::_('COM_ADMIN_PHP_VERSION'); ?></strong>
</td>
<td>
<?php echo $this->info['phpversion']; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo
JText::_('COM_ADMIN_WEB_SERVER'); ?></strong>
</td>
<td>
<?php echo JHtml::_('system.server',
$this->info['server']); ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo
JText::_('COM_ADMIN_WEBSERVER_TO_PHP_INTERFACE');
?></strong>
</td>
<td>
<?php echo $this->info['sapi_name']; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo
JText::_('COM_ADMIN_JOOMLA_VERSION'); ?></strong>
</td>
<td>
<?php echo $this->info['version']; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo
JText::_('COM_ADMIN_PLATFORM_VERSION'); ?></strong>
</td>
<td>
<?php echo $this->info['platform']; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo
JText::_('COM_ADMIN_USER_AGENT'); ?></strong>
</td>
<td>
<?php echo htmlspecialchars($this->info['useragent'],
ENT_COMPAT, 'UTF-8'); ?>
</td>
</tr>
</tbody>
</table>
</fieldset>
views/sysinfo/view.html.php000064400000005167151166706610012043
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
/**
* Sysinfo View class for the Admin component
*
* @since 1.6
*/
class AdminViewSysinfo extends JViewLegacy
{
/**
* Some PHP settings
*
* @var array
* @since 1.6
*/
protected $php_settings = array();
/**
* Config values
*
* @var array
* @since 1.6
*/
protected $config = array();
/**
* Some system values
*
* @var array
* @since 1.6
*/
protected $info = array();
/**
* PHP info
*
* @var string
* @since 1.6
*/
protected $php_info = null;
/**
* Information about writable state of directories
*
* @var array
* @since 1.6
*/
protected $directory = array();
/**
* Execute and display a template script.
*
* @param string $tpl The name of the template file to parse;
automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise an Error object.
*
* @since 1.6
*/
public function display($tpl = null)
{
// Access check.
if (!JFactory::getUser()->authorise('core.admin'))
{
throw new
JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'),
403);
}
$this->php_settings = $this->get('PhpSettings');
$this->config = $this->get('config');
$this->info = $this->get('info');
$this->php_info = $this->get('PhpInfo');
$this->directory = $this->get('directory');
$this->addToolbar();
$this->_setSubMenu();
return parent::display($tpl);
}
/**
* Setup the SubMenu
*
* @return void
*
* @since 1.6
* @note Necessary for Hathor compatibility
* @deprecated 4.0 To be removed with Hathor
*/
protected function _setSubMenu()
{
try
{
$contents = $this->loadTemplate('navigation');
$document = JFactory::getDocument();
$document->setBuffer($contents, 'modules',
'submenu');
}
catch (Exception $e)
{
}
}
/**
* Setup the Toolbar
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
JToolbarHelper::title(JText::_('COM_ADMIN_SYSTEM_INFORMATION'),
'info-2 systeminfo');
JToolbarHelper::link(JRoute::_('index.php?option=com_admin&view=sysinfo&format=text'),
'COM_ADMIN_DOWNLOAD_SYSTEM_INFORMATION_TEXT',
'download');
JToolbarHelper::link(JRoute::_('index.php?option=com_admin&view=sysinfo&format=json'),
'COM_ADMIN_DOWNLOAD_SYSTEM_INFORMATION_JSON',
'download');
JToolbarHelper::help('JHELP_SITE_SYSTEM_INFORMATION');
}
}
views/sysinfo/view.json.php000064400000003161151166706610012040
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
/**
* Sysinfo View class for the Admin component
*
* @since 3.5
*/
class AdminViewSysinfo extends JViewLegacy
{
/**
* Execute and display a template script.
*
* @param string $tpl The name of the template file to parse;
automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise an Error object.
*
* @since 3.5
*/
public function display($tpl = null)
{
// Access check.
if (!JFactory::getUser()->authorise('core.admin'))
{
throw new
JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'),
403);
}
header('MIME-Version: 1.0');
header('Content-Disposition: attachment;
filename="systeminfo-' . date('c') .
'.json"');
header('Content-Transfer-Encoding: binary');
$data = $this->getLayoutData();
echo json_encode($data);
JFactory::getApplication()->close();
}
/**
* Get the data for the view
*
* @return array
*
* @since 3.5
*/
protected function getLayoutData()
{
$model = $this->getModel();
return array(
'info' => $model->getSafeData('info'),
'phpSettings' =>
$model->getSafeData('phpSettings'),
'config' =>
$model->getSafeData('config'),
'directories' =>
$model->getSafeData('directory', true),
'phpInfo' =>
$model->getSafeData('phpInfoArray'),
'extensions' =>
$model->getSafeData('extensions')
);
}
}
views/sysinfo/view.text.php000064400000010306151166706610012052
0ustar00<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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;
/**
* Sysinfo View class for the Admin component
*
* @since 3.5
*/
class AdminViewSysinfo extends JViewLegacy
{
/**
* Execute and display a template script.
*
* @param string $tpl The name of the template file to parse;
automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise an Error object.
*
* @since 3.5
*/
public function display($tpl = null)
{
// Access check.
if (!JFactory::getUser()->authorise('core.admin'))
{
throw new
JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'),
403);
}
header('Content-Type: text/plain; charset=utf-8');
header('Content-Description: File Transfer');
header('Content-Disposition: attachment;
filename="systeminfo-' . date('c') .
'.txt"');
header('Cache-Control: must-revalidate');
$data = $this->getLayoutData();
$lines = array();
foreach ($data as $sectionName => $section)
{
$customRenderingMethod = 'render' . ucfirst($sectionName);
if (method_exists($this, $customRenderingMethod))
{
$lines[] =
$this->$customRenderingMethod($section['title'],
$section['data']);
}
else
{
$lines[] = $this->renderSection($section['title'],
$section['data']);
}
}
echo str_replace(JPATH_ROOT, 'xxxxxx',
implode("\n\n", $lines));
JFactory::getApplication()->close();
}
/**
* Get the data for the view
*
* @return array
*
* @since 3.5
*/
protected function getLayoutData()
{
$model = $this->getModel();
return array(
'info' => array(
'title' =>
JText::_('COM_ADMIN_SYSTEM_INFORMATION', true),
'data' => $model->getSafeData('info')
),
'phpSettings' => array(
'title' => JText::_('COM_ADMIN_PHP_SETTINGS',
true),
'data' => $model->getSafeData('phpSettings')
),
'config' => array(
'title' =>
JText::_('COM_ADMIN_CONFIGURATION_FILE', true),
'data' => $model->getSafeData('config')
),
'directories' => array(
'title' =>
JText::_('COM_ADMIN_DIRECTORY_PERMISSIONS', true),
'data' => $model->getSafeData('directory',
true)
),
'phpInfo' => array(
'title' => JText::_('COM_ADMIN_PHP_INFORMATION',
true),
'data' =>
$model->getSafeData('phpInfoArray')
),
'extensions' => array(
'title' => JText::_('COM_ADMIN_EXTENSIONS',
true),
'data' => $model->getSafeData('extensions')
)
);
}
/**
* Render a section
*
* @param string $sectionName Name of the section to render
* @param array $sectionData Data of the section to render
* @param integer $level Depth level for indentation
*
* @return string
*
* @since 3.5
*/
protected function renderSection($sectionName, $sectionData, $level = 0)
{
$lines = array();
$margin = ($level > 0) ? str_repeat("\t", $level) : null;
$lines[] = $margin . '=============';
$lines[] = $margin . $sectionName;
$lines[] = $margin . '=============';
$level++;
foreach ($sectionData as $name => $value)
{
if (is_array($value))
{
if ($name == 'Directive')
{
continue;
}
$lines[] = '';
$lines[] = $this->renderSection($name, $value, $level);
}
else
{
if (is_bool($value))
{
$value = $value ? 'true' : 'false';
}
if (is_int($name) && ($name == 0 || $name == 1))
{
$name = ($name == 0 ? 'Local Value' : 'Master
Value');
}
$lines[] = $margin . $name . ': ' . $value;
}
}
return implode("\n", $lines);
}
/**
* Specific rendering for directories
*
* @param string $sectionName Name of the section
* @param array $sectionData Directories information
* @param integer $level Starting level
*
* @return string
*
* @since 3.5
*/
protected function renderDirectories($sectionName, $sectionData, $level =
-1)
{
foreach ($sectionData as $directory => $data)
{
$sectionData[$directory] = $data['writable'] ? '
writable' : ' NOT writable';
}
return $this->renderSection($sectionName, $sectionData, $level);
}
}