Skip to content

Commit

Permalink
Upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Trofimov committed Apr 4, 2019
1 parent 5d54930 commit 4e97ed0
Show file tree
Hide file tree
Showing 47 changed files with 240 additions and 0 deletions.
8 changes: 8 additions & 0 deletions upgrade/files/7.4.0-7.4.1/check.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

$mixCheckResult = 'Update can not be applied';

if ('7.4.0' == $this->oDb->getOne("SELECT `VALUE` FROM `sys_options` WHERE `Name` = 'sys_tmp_version'"))
$mixCheckResult = true;

return $mixCheckResult;
9 changes: 9 additions & 0 deletions upgrade/files/7.4.0-7.4.1/conclusion.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<b>IMPORTANT!!!</b><br />
Automatic part of upgrade is completed. Please do the following to complete upgrade process: <br />
<ul>
<li>Clean <b>/cache/</b>, <b>/cache_public/</b> and <b>/tmp/</b> folders via FTP or SSH, leave only .htaccess file there if one exists</li>
<li>Recompile system language file from Admin Panel -&gt; Settings -&gt; Languages Settings -&gt; Languages</li>
<li>Clean <b>/cache/</b> folder again</li>
<li>Recompile Forum language file for all templates from Admin Panel -&gt; Modules -&gt; Forum -&gt; Manage Forum</li>
<li>Remove <b>/upgrade/</b> directory</li>
</ul>
5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/ads/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'ads' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/articles/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'articles' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/avatar/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'avatar' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/blogs/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'blogs' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/board/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'board' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/chat/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'chat' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/chat_plus/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'chat_plus' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/custom_rss/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'custom_rss' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/desktop/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'desktop' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/dolphcon/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'dolphcon' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/events/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'events' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/facebook_connect/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'facebook_connect' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/feedback/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'feedback' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/files/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'files' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/forum/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'forum' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/google_search/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'google_search' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/groups/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'groups' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/h5av/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'h5av' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/membership/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'membership' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/messenger/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'messenger' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/news/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'news' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/oauth2/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'oauth2' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/pageac/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'pageac' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/payflow/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'payflow' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/payment/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'payment' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/photos/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'photos' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/poll/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'poll' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/profile_customize/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'profile_customize' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/profiler/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'profiler' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/quotes/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'quotes' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/russian/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'russian' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/shoutbox/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'shoutbox' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/simple_messenger/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'simple_messenger' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/site_customize/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'site_customize' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/sites/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'sites' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/smtpmailer/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'smtpmailer' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/sounds/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'sounds' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/spy/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'spy' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/store/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'store' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/videos/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'videos' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/wall/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'wall' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/wmap/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'wmap' AND `version` = '1.4.0';

5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/modules/zipcodesearch/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- update module version

UPDATE `sys_modules` SET `version` = '1.4.1' WHERE `uri` = 'zipcodesearch' AND `version` = '1.4.0';

3 changes: 3 additions & 0 deletions upgrade/files/7.4.0-7.4.1/script.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

return true;
5 changes: 5 additions & 0 deletions upgrade/files/7.4.0-7.4.1/sql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- last step is to update current version

UPDATE `sys_options` SET `VALUE` = '7.4.1' WHERE `Name` = 'sys_tmp_version';

0 comments on commit 4e97ed0

Please sign in to comment.