Procházet zdrojové kódy

Upgrade script from 14.0.0-RC3 to 14.0.0-RC4

Alex Trofimov před 1 rokem
rodič
revize
3753d96129

+ 14 - 0
upgrade/files/14.0.0.RC3-14.0.0.RC4/check.php

@@ -0,0 +1,14 @@
+<?php
+
+$mixCheckResult = 'Update can not be applied';
+
+if (!(PHP_VERSION_ID >= 80100)) {
+    $mixCheckResult = 'This update requires a PHP version ">= 8.1.0". You are running ' . PHP_VERSION;
+}
+else {
+    $sVer = $this->oDb->getOne("SELECT `version` FROM `sys_modules` WHERE `name` = 'system'");
+    if ('14.0.0.RC3' == $sVer || '14.0.0-RC3' == $sVer)
+        $mixCheckResult = true;
+}
+
+return $mixCheckResult;

+ 6 - 0
upgrade/files/14.0.0.RC3-14.0.0.RC4/files_delete.php

@@ -0,0 +1,6 @@
+<?php
+
+$aFilesDelete = array(
+
+);
+

+ 3 - 0
upgrade/files/14.0.0.RC3-14.0.0.RC4/script.php

@@ -0,0 +1,3 @@
+<?php
+
+    return true;

+ 24 - 0
upgrade/files/14.0.0.RC3-14.0.0.RC4/sql.sql

@@ -0,0 +1,24 @@
+
+SET @sStorageEngine = (SELECT `value` FROM `sys_options` WHERE `name` = 'sys_storage_default');
+
+CREATE TABLE IF NOT EXISTS `sys_profiles_track` (
+  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
+  `profile_id` int(11) unsigned NOT NULL DEFAULT '0',
+  `action` varchar(32) NOT NULL DEFAULT '',
+  `date` int(11) NOT NULL DEFAULT '0',
+  PRIMARY KEY (`id`),
+  UNIQUE KEY `profile_track` (`profile_id`,`action`)
+);
+
+-- Menu
+
+UPDATE `sys_menu_items` SET `link` = 'page.php?i=logout' WHERE `set_name` = 'sys_account_notifications' AND `name` = 'logout';
+
+-- Grid
+
+ALTER TABLE `sys_objects_grid` CHANGE `show_total_count` `show_total_count` TINYINT(4) NOT NULL DEFAULT '0';
+
+-- Last step is to update current version
+
+UPDATE `sys_modules` SET `version` = '14.0.0-RC4' WHERE (`version` = '14.0.0.RC3' OR `version` = '14.0.0-RC3') AND `name` = 'system';
+