Skip to content

Commit

Permalink
Upgrade script from 12.1.0 to 13.0.0-A1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Trofimov committed Nov 17, 2021
1 parent a9700fe commit 2a1a807
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions upgrade/files/12.1.0-13.0.0.A1/script.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
<?php

class BxDolEditorMock {
public function getObjectName () {
return '';
}
public function setCustomConf ($s) {
}
public function setCustomPlugins ($sPlugins) {
}
public function setCustomToolbarButtons ($sButtons) {
}
public function getWidth ($iViewMode) {
return '';
}
public function getSkins($bFullInfo = false) {
return [];
}
public function setSkin($sSkin) {
}
public function attachEditor ($sSelector, $iViewMode, $bDynamicMode = false) {
return '';
}
}

$GLOBALS['bxDolClasses']['BxDolEditor!sys_quill'] = new BxDolEditorMock();

if (!$this->oDb->isFieldExists('sys_modules', 'updated'))
$this->oDb->query("ALTER TABLE `sys_modules` ADD `updated` int(11) unsigned NOT NULL default '0' AFTER `hash`");

Expand Down
2 changes: 1 addition & 1 deletion upgrade/files/12.1.0-13.0.0.A1/sql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ DELETE FROM `sys_options` WHERE `name` IN('sys_site_cover_disabled');
INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
(@iCategoryIdSystem, 'sys_site_cover_disabled', '', '', 'checkbox', '', '', '', 29);

UPDATE `sys_options` SET `value` = 'sys_oembed' WHERE `name` = 'sys_embed_default' AND `value` = '';
UPDATE `sys_options` SET `value` = 'sys_iframely' WHERE `name` = 'sys_embed_default' AND `value` = '';

-- ACL

Expand Down

0 comments on commit 2a1a807

Please sign in to comment.