Version 4.5.0
This commit is contained in:
1 parent
1a0c7fd3c2
commit
f79dcf067a
3791 files changed
+248032
-76372
No files matched your search
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"added": [
|
||||
"app=cms&module=databases&controller=categories&do=manage",
|
||||
"app=cms&module=databases&controller=databases",
|
||||
"app=cms&module=databases&controller=records&do=manage",
|
||||
"app=cms&module=pages&controller=blocks",
|
||||
"app=cms&module=pages&controller=media",
|
||||
"app=cms&module=pages&controller=pages",
|
||||
"app=cms&module=pages&controller=templates"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105013,
|
||||
"name": "4.5.0 Beta 1",
|
||||
"steps": {
|
||||
"queries": true,
|
||||
"lang": true,
|
||||
"theme": true,
|
||||
"themeSettings": false,
|
||||
"javascript": true,
|
||||
"emailTemplates": false,
|
||||
"hooks": true,
|
||||
"acpSearchKeywords": true,
|
||||
"settings": true,
|
||||
"tasks": true,
|
||||
"modules": true,
|
||||
"widgets": true,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": true
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"added": [
|
||||
"Forum",
|
||||
"InternalUrl",
|
||||
"forums",
|
||||
"Url",
|
||||
"Parser",
|
||||
"Post",
|
||||
"topics",
|
||||
"Lang",
|
||||
"Database",
|
||||
"Widget",
|
||||
"Output",
|
||||
"FriendlyUrl",
|
||||
"Topic"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"files": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"cms\/admin\/controllers\/databases\/ips.databases.form.js",
|
||||
"cms\/admin\/controllers\/pages\/ips.pages.form.js",
|
||||
"cms\/admin\/controllers\/templates\/ips.templates.fileEditor.js",
|
||||
"cms\/admin\/controllers\/templates\/ips.templates.fileList.js",
|
||||
"cms\/admin\/controllers\/templates\/ips.templates.main.js"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"orders": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"global\/\/dev\/js\/\/library\/\/jquery"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"normal": {
|
||||
"added": [
|
||||
"moving_database_comments",
|
||||
"moving_database_comments_single",
|
||||
"rebuilding_cms_comment_attachments",
|
||||
"content_templates_inherit",
|
||||
"cms_templates_export_description_app",
|
||||
"cms_template_title_exists",
|
||||
"database_form_template_link",
|
||||
"cms_block_list_key",
|
||||
"cms_theme_template_custom",
|
||||
"cms_theme_template_default",
|
||||
"cms_tag_lang",
|
||||
"add_word_reason_pages",
|
||||
"rss_import_record_open",
|
||||
"rss_import_record_hide",
|
||||
"__api_cms_databases",
|
||||
"__api_cms_categories",
|
||||
"block_pagebuildertext",
|
||||
"block_pagebuildertext_desc",
|
||||
"block_pagebuilderoembed",
|
||||
"block_pagebuilderoembed_desc",
|
||||
"block_pagebuilderupload",
|
||||
"block_pagebuilderupload_desc",
|
||||
"pagebuilderupload_upload",
|
||||
"pagebuilder_text",
|
||||
"video_url",
|
||||
"video_cannot_embed",
|
||||
"block_testimonials",
|
||||
"block_testimonials_desc",
|
||||
"widget_testimonials_name",
|
||||
"widget_testimonials_content",
|
||||
"testimonials",
|
||||
"pagebuilderupload_slideshow",
|
||||
"pagebuilderupload_captions",
|
||||
"pagebuilderupload_captions_desc",
|
||||
"pagebuilderupload_urls",
|
||||
"pagebuilderupload_urls_desc",
|
||||
"pagebuilderupload_height"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
},
|
||||
"js": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"added": [
|
||||
"admin\/pages",
|
||||
"admin\/databases",
|
||||
"front\/pages",
|
||||
"front\/database"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "createTable",
|
||||
"params": [
|
||||
{
|
||||
"name": "cms_template_conflicts",
|
||||
"columns": {
|
||||
"conflict_id": {
|
||||
"allow_null": false,
|
||||
"auto_increment": true,
|
||||
"binary": false,
|
||||
"comment": "",
|
||||
"decimals": null,
|
||||
"default": null,
|
||||
"length": 10,
|
||||
"name": "conflict_id",
|
||||
"type": "INT",
|
||||
"unsigned": false,
|
||||
"values": [],
|
||||
"zerofill": false
|
||||
},
|
||||
"conflict_key": {
|
||||
"allow_null": false,
|
||||
"auto_increment": false,
|
||||
"binary": false,
|
||||
"comment": "",
|
||||
"decimals": null,
|
||||
"default": "",
|
||||
"length": 32,
|
||||
"name": "conflict_key",
|
||||
"type": "CHAR",
|
||||
"unsigned": false,
|
||||
"values": [],
|
||||
"zerofill": false
|
||||
},
|
||||
"conflict_item_id": {
|
||||
"allow_null": false,
|
||||
"auto_increment": false,
|
||||
"binary": false,
|
||||
"comment": "",
|
||||
"decimals": null,
|
||||
"default": "0",
|
||||
"length": 10,
|
||||
"name": "conflict_item_id",
|
||||
"type": "INT",
|
||||
"unsigned": false,
|
||||
"values": [],
|
||||
"zerofill": false
|
||||
},
|
||||
"conflict_type": {
|
||||
"allow_null": false,
|
||||
"auto_increment": false,
|
||||
"binary": false,
|
||||
"comment": "",
|
||||
"decimals": null,
|
||||
"default": "template",
|
||||
"length": 10,
|
||||
"name": "conflict_type",
|
||||
"type": "VARCHAR",
|
||||
"unsigned": false,
|
||||
"values": [],
|
||||
"zerofill": false
|
||||
},
|
||||
"conflict_original_group": {
|
||||
"allow_null": false,
|
||||
"auto_increment": false,
|
||||
"binary": false,
|
||||
"comment": "",
|
||||
"decimals": null,
|
||||
"default": "",
|
||||
"length": 100,
|
||||
"name": "conflict_original_group",
|
||||
"type": "VARCHAR",
|
||||
"unsigned": false,
|
||||
"values": [],
|
||||
"zerofill": false
|
||||
},
|
||||
"conflict_group": {
|
||||
"allow_null": false,
|
||||
"auto_increment": false,
|
||||
"binary": false,
|
||||
"comment": "",
|
||||
"decimals": null,
|
||||
"default": "",
|
||||
"length": 100,
|
||||
"name": "conflict_group",
|
||||
"type": "VARCHAR",
|
||||
"unsigned": false,
|
||||
"values": [],
|
||||
"zerofill": false
|
||||
},
|
||||
"conflict_location": {
|
||||
"allow_null": false,
|
||||
"auto_increment": false,
|
||||
"binary": false,
|
||||
"comment": "",
|
||||
"decimals": null,
|
||||
"default": "",
|
||||
"length": 255,
|
||||
"name": "conflict_location",
|
||||
"type": "VARCHAR",
|
||||
"unsigned": false,
|
||||
"values": [],
|
||||
"zerofill": false
|
||||
},
|
||||
"conflict_title": {
|
||||
"allow_null": false,
|
||||
"auto_increment": false,
|
||||
"binary": false,
|
||||
"comment": "",
|
||||
"decimals": null,
|
||||
"default": "",
|
||||
"length": 255,
|
||||
"name": "conflict_title",
|
||||
"type": "VARCHAR",
|
||||
"unsigned": false,
|
||||
"values": [],
|
||||
"zerofill": false
|
||||
},
|
||||
"conflict_data": {
|
||||
"allow_null": true,
|
||||
"auto_increment": false,
|
||||
"binary": false,
|
||||
"comment": "",
|
||||
"decimals": null,
|
||||
"default": null,
|
||||
"length": 0,
|
||||
"name": "conflict_data",
|
||||
"type": "TEXT",
|
||||
"unsigned": false,
|
||||
"values": [],
|
||||
"zerofill": false
|
||||
},
|
||||
"conflict_content": {
|
||||
"allow_null": true,
|
||||
"auto_increment": false,
|
||||
"binary": false,
|
||||
"comment": "",
|
||||
"decimals": null,
|
||||
"default": null,
|
||||
"length": 0,
|
||||
"name": "conflict_content",
|
||||
"type": "MEDIUMTEXT",
|
||||
"unsigned": false,
|
||||
"values": [],
|
||||
"zerofill": false
|
||||
},
|
||||
"conflict_date": {
|
||||
"allow_null": false,
|
||||
"auto_increment": false,
|
||||
"binary": false,
|
||||
"comment": "",
|
||||
"decimals": null,
|
||||
"default": "0",
|
||||
"length": 10,
|
||||
"name": "conflict_date",
|
||||
"type": "INT",
|
||||
"unsigned": false,
|
||||
"values": [],
|
||||
"zerofill": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"PRIMARY": {
|
||||
"type": "primary",
|
||||
"name": "PRIMARY",
|
||||
"length": [
|
||||
null
|
||||
],
|
||||
"columns": [
|
||||
"conflict_id"
|
||||
]
|
||||
},
|
||||
"conflict_key": {
|
||||
"type": "key",
|
||||
"name": "conflict_key",
|
||||
"length": [
|
||||
null,
|
||||
null
|
||||
],
|
||||
"columns": [
|
||||
"conflict_key",
|
||||
"conflict_type"
|
||||
]
|
||||
}
|
||||
},
|
||||
"collation": "utf8_general_ci",
|
||||
"engine": "InnoDB"
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"cms_url_store",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "path_lookup",
|
||||
"columns": [
|
||||
"store_type",
|
||||
"store_path"
|
||||
],
|
||||
"length": [
|
||||
null,
|
||||
250
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"cms_database_categories",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "forum_integration",
|
||||
"columns": [
|
||||
"category_forum_record",
|
||||
"category_forum_comments"
|
||||
],
|
||||
"length": [
|
||||
null,
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"added": [
|
||||
"cms_error_page",
|
||||
"cms_promote_cat",
|
||||
"cms_promote_enabled",
|
||||
"cms_promote_groups",
|
||||
"cms_root_page_url",
|
||||
"cms_root_path",
|
||||
"page_extension",
|
||||
"sitemap_databases_count",
|
||||
"sitemap_databases_priority",
|
||||
"sitemap_pages_count",
|
||||
"sitemap_pages_priority"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"added": [
|
||||
"updaterecords"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [
|
||||
"admin\/blocks\/rowHtml",
|
||||
"admin\/databases\/templateGoButton",
|
||||
"admin\/templates\/templateConflict",
|
||||
"front\/widgets\/pagebuilderoembed",
|
||||
"front\/widgets\/pagebuildertext",
|
||||
"front\/widgets\/pagebuilderupload"
|
||||
],
|
||||
"edited": [
|
||||
"admin\/databases\/rebuildCommentCounts",
|
||||
"admin\/databases\/rebuildTopics",
|
||||
"front\/global\/basicRelationship",
|
||||
"front\/global\/embedRecord",
|
||||
"front\/global\/embedRecordComment",
|
||||
"front\/global\/embedRecordReview",
|
||||
"front\/global\/recordResultSnippet",
|
||||
"admin\/media\/media",
|
||||
"front\/records\/commentTemplate",
|
||||
"global\/records\/customslug",
|
||||
"global\/records\/soundcloud",
|
||||
"global\/records\/spotify",
|
||||
"global\/records\/youtube",
|
||||
"front\/revisions\/rows",
|
||||
"admin\/templates\/templates",
|
||||
"front\/widgets\/Categories",
|
||||
"front\/widgets\/RecordFeed"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"css": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"admin\/media\/media.css",
|
||||
"front\/pages\/page.css",
|
||||
"admin\/templates\/templates.css"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief 4.5.0 Beta 1 Upgrade Code
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
* @subpackage Pages
|
||||
* @since 10 Sep 2019
|
||||
*/
|
||||
|
||||
namespace IPS\cms\setup\upg_105013;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 4.5.0 Beta 1 Upgrade Code
|
||||
*/
|
||||
class _Upgrade
|
||||
{
|
||||
/**
|
||||
* Adjust database indexes
|
||||
*
|
||||
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function step1()
|
||||
{
|
||||
$queries = array();
|
||||
|
||||
foreach( \IPS\Db::i()->select( 'database_id', 'cms_databases' ) as $database )
|
||||
{
|
||||
$queries[] = array(
|
||||
'table' => 'cms_custom_database_' . $database,
|
||||
'query' => "ALTER TABLE " . \IPS\Db::i()->prefix . "cms_custom_database_{$database} DROP KEY `category_id`, ADD KEY `category_id` (`category_id`,`record_last_comment`), ADD KEY `future_entries` (`record_future_date`,`record_publish_date`)"
|
||||
);
|
||||
}
|
||||
|
||||
if( \count( $queries ) )
|
||||
{
|
||||
$toRun = \IPS\core\Setup\Upgrade::runManualQueries( $queries );
|
||||
|
||||
if ( \count( $toRun ) )
|
||||
{
|
||||
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'cms', 'extra' => array( '_upgradeStep' => 2 ) ) );
|
||||
|
||||
/* Queries to run manually */
|
||||
return array( 'html' => \IPS\Theme::i()->getTemplate( 'forms' )->queries( $toRun, \IPS\Http\Url::internal( 'controller=upgrade' )->setQueryString( array( 'key' => $_SESSION['uniqueKey'], 'mr_continue' => 1, 'mr' => \IPS\Request::i()->mr ) ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom title for this step
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function step1CustomTitle()
|
||||
{
|
||||
return "Improving performance for custom Pages databases";
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix templates
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function step2()
|
||||
{
|
||||
/* Update existing template bits */
|
||||
foreach( \IPS\Db::i()->select( '*', 'cms_templates', array( 'template_master=0 and template_user_created=1 and template_user_edited=1' ) ) as $key => $template )
|
||||
{
|
||||
$obj = \IPS\cms\Templates::constructFromData( $template );
|
||||
|
||||
if ( $obj->getMasterOfThis() and ! $obj->isDifferentFromMaster() )
|
||||
{
|
||||
/* It's not different from the master template, so remove the user_edited flag */
|
||||
$obj->user_edited = 0;
|
||||
$obj->save();
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Upgrade WYSIWYG Blocks
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function step3()
|
||||
{
|
||||
foreach( new \IPS\Patterns\ActiveRecordIterator( \IPS\Db::i()->select( '*', 'cms_blocks', array( "block_type=?", 'custom' ) ), 'IPS\cms\Blocks\Block' ) AS $block )
|
||||
{
|
||||
if ( $block->getConfig('editor') !== 'editor' )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
\IPS\Lang::saveCustom( 'cms', "cms_block_content_{$block->id}", $block->content );
|
||||
$block->content = NULL;
|
||||
$block->save();
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom Title for this step
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function step3CustomTitle()
|
||||
{
|
||||
return "Upgrading WYSIWYG blocks";
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom title for this step
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function step2CustomTitle()
|
||||
{
|
||||
return "Fixing database templates";
|
||||
}
|
||||
|
||||
/**
|
||||
* Finish - This is run after all apps have been upgraded
|
||||
*
|
||||
* @return mixed If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function finish()
|
||||
{
|
||||
\IPS\Task::queue( 'cms', 'FixCommentAttachments', array(), 4 );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"added": [
|
||||
"Database",
|
||||
"Wysiwyg",
|
||||
"DatabaseFilters",
|
||||
"Categories",
|
||||
"Blocks",
|
||||
"RecordFeed",
|
||||
"Rss",
|
||||
"pagebuildertext",
|
||||
"pagebuilderoembed",
|
||||
"pagebuilderupload"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
Reference in new issue
Block a user