Skip to content

Commit

Permalink
v4.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
maskas committed Sep 25, 2014
1 parent 43d0fd5 commit afe2ff1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Ip/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct($configPath)
*/
public static function getVersion()
{
return '4.2.1'; //CHANGE_ON_VERSION_UPDATE
return '4.2.2'; //CHANGE_ON_VERSION_UPDATE
}


Expand Down
6 changes: 6 additions & 0 deletions Ip/Internal/Update/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ class Migration
{
//CHANGE_ON_VERSION_UPDATE

public static function update_58()
{
ipStorage()->set('Ip', 'cacheVersion', ipStorage()->get('Ip', 'cacheVersion', 1) + 1);
ipDb()->update('storage', array('value' => '"4.2.2"'), array('key' => 'version', 'plugin' => 'Ip'));
}

public static function update_57()
{
ipStorage()->set('Ip', 'cacheVersion', ipStorage()->get('Ip', 'cacheVersion', 1) + 1);
Expand Down
2 changes: 1 addition & 1 deletion Ip/Internal/Update/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Model
*/
public static function getDbVersion()
{
return 57; //CHANGE_ON_VERSION_UPDATE
return 58; //CHANGE_ON_VERSION_UPDATE
}

public static function migrationsAvailable()
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "impresspages/impresspages",
"version": "4.2.1",
"version": "4.2.2",
"type": "project",
"description": "ImpressPages framework & CMS",
"keywords": ["impresspages","frameword","CMS"],
Expand Down
4 changes: 2 additions & 2 deletions install/Plugin/Install/sql/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ INSERT INTO `ip_widget_order` (`widgetName`, `priority`) VALUES


INSERT INTO `ip_storage` (`plugin`, `key`, `value`) VALUES
('Ip', 'version', '"4.2.1"'), /* //CHANGE_ON_VERSION_UPDATE */
('Ip', 'dbVersion', '57'), /* //CHANGE_ON_VERSION_UPDATE */
('Ip', 'version', '"4.2.2"'), /* //CHANGE_ON_VERSION_UPDATE */
('Ip', 'dbVersion', '58'), /* //CHANGE_ON_VERSION_UPDATE */
('Ip', 'theme', '"Air"'),
('Ip', 'cachedBaseUrl', ''),
('Ip', 'lastSystemMessageSent', ''),
Expand Down
4 changes: 2 additions & 2 deletions phpunit/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
define ('TEST_SCREENSHOT_PATH', __DIR__ . '/screenshots/');
define ('TEST_SCREENSHOT_URL', $isTravis ? 'http://localhost/phpunit/screenshots/' : 'http://localhost/ip4.x/phpunit/screenshots/');

define('CURRENT_VERSION', '4.2.1'); //CHANGE_ON_VERSION_UPDATE
define('CURRENT_DBVERSION', 57); //CHANGE_ON_VERSION_UPDATE
define('CURRENT_VERSION', '4.2.2'); //CHANGE_ON_VERSION_UPDATE
define('CURRENT_DBVERSION', 58); //CHANGE_ON_VERSION_UPDATE

0 comments on commit afe2ff1

Please sign in to comment.