Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating release data for security plugin
- Loading branch information
1 parent
1f15948
commit 4406e34
Showing
4 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"id":"4e287521-1b64-4feb-9e16-21136318cd70","name":"Security","update_url":"infinitas-cms.org\/plugins\/version\/plugin:security","version":"0.9","dependancies":[],"author":"Infinitas","website":"http:\/\/infinitas-cms.org","description":"This plugin handles the security aspects of the site. Things like how authentication works and blocking brute force logins'","license":"MIT"} | ||
{"id":"4e287521-1b64-4feb-9e16-21136318cd70","name":"Security","update_url":"infinitas-cms.org\/plugins\/version\/plugin:security","version":"0.9.1","dependancies":[],"author":"Infinitas","website":"http:\/\/infinitas-cms.org","description":"This plugin handles the security aspects of the site. Things like how authentication works and blocking brute force logins'","license":"MIT"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?php | ||
/** | ||
* Infinitas Releas | ||
* | ||
* Auto generated database update | ||
*/ | ||
|
||
class R509b0562966440e08da17bd16318cd70 extends CakeRelease { | ||
|
||
/** | ||
* Migration description | ||
* | ||
* @var string | ||
* @access public | ||
*/ | ||
public $description = 'Migration for Security version 0.9.1'; | ||
|
||
/** | ||
* Plugin name | ||
* | ||
* @var string | ||
* @access public | ||
*/ | ||
public $plugin = 'Security'; | ||
|
||
/** | ||
* Actions to be performed | ||
* | ||
* @var array $migration | ||
* @access public | ||
*/ | ||
public $migration = array( | ||
'up' => array( | ||
'create_table' => array( | ||
'core_ip_addresses' => array( | ||
'id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'key' => 'primary', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), | ||
'ip_address' => array('type' => 'text', 'null' => false, 'default' => NULL, 'collate' => 'utf8_general_ci', 'charset' => 'utf8', 'after' => 'id'), | ||
'user_id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'after' => 'ip_address'), | ||
'description' => array('type' => 'text', 'null' => false, 'default' => NULL, 'collate' => 'utf8_general_ci', 'charset' => 'utf8', 'after' => 'user_id'), | ||
'times_blocked' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 6, 'after' => 'description'), | ||
'unlock_at' => array('type' => 'datetime', 'null' => true, 'default' => NULL, 'after' => 'times_blocked'), | ||
'risk' => array('type' => 'integer', 'null' => false, 'default' => '1', 'after' => 'unlock_at'), | ||
'active' => array('type' => 'boolean', 'null' => false, 'default' => '1', 'after' => 'risk'), | ||
'created' => array('type' => 'datetime', 'null' => true, 'default' => NULL, 'after' => 'active'), | ||
'modified' => array('type' => 'datetime', 'null' => true, 'default' => NULL, 'after' => 'created'), | ||
'indexes' => array( | ||
'PRIMARY' => array('column' => 'id', 'unique' => 1), | ||
), | ||
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB'), | ||
), | ||
), | ||
), | ||
'down' => array( | ||
'drop_table' => array( | ||
'core_ip_addresses' | ||
), | ||
), | ||
); | ||
|
||
|
||
/** | ||
* Before migration callback | ||
* | ||
* @param string $direction, up or down direction of migration process | ||
* @return boolean Should process continue | ||
* @access public | ||
*/ | ||
public function before($direction) { | ||
return true; | ||
} | ||
|
||
/** | ||
* After migration callback | ||
* | ||
* @param string $direction, up or down direction of migration process | ||
* @return boolean Should process continue | ||
* @access public | ||
*/ | ||
public function after($direction) { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters