Skip to content

Commit

Permalink
Fixed: #IP-1540
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninos Ego committed May 3, 2016
1 parent 9e1d6f0 commit c2d10c8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configs/debian/database/database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ INSERT IGNORE INTO `config` (`name`, `value`) VALUES
('PREVENT_EXTERNAL_LOGIN_ADMIN', '1'),
('PREVENT_EXTERNAL_LOGIN_RESELLER', '1'),
('PREVENT_EXTERNAL_LOGIN_CLIENT', '1'),
('DATABASE_REVISION', '226');
('DATABASE_REVISION', '227');

-- --------------------------------------------------------

Expand Down
23 changes: 22 additions & 1 deletion gui/library/iMSCP/Update/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class iMSCP_Update_Database extends iMSCP_Update
/**
* @var int Last database update revision
*/
protected $lastUpdate = '226';
protected $lastUpdate = '227';

/**
* Singleton - Make new unavailable
Expand Down Expand Up @@ -3337,4 +3337,25 @@ protected function r226()
));
}
}

/**
* Add column for HSTS options
*
* @return array SQL statements to be executed
*/
protected function r227()
{
return array(
$this->addColumn(
'ssl_certs',
'hsts_max_age',
"int(11) NOT NULL DEFAULT '31536000' AFTER allow_hsts"
),
$this->addColumn(
'ssl_certs',
'hsts_include_subdomains',
"VARCHAR(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'off' AFTER hsts_max_age"
)
);
}
}

0 comments on commit c2d10c8

Please sign in to comment.