Skip to content

Commit

Permalink
updating release data for security plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Nov 8, 2012
1 parent 1f15948 commit 4406e34
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Core/Security/Config/Schema/schema.php
Expand Up @@ -8,4 +8,18 @@ public function before($event = array()) {
public function after($event = array()) {
}

public $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'),
'user_id' => array('type' => 'integer', 'null' => false, 'default' => NULL),
'description' => array('type' => 'text', 'null' => false, 'default' => NULL, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
'times_blocked' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 6),
'unlock_at' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
'risk' => array('type' => 'integer', 'null' => false, 'default' => '1'),
'active' => array('type' => 'boolean', 'null' => false, 'default' => '1'),
'created' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
'modified' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB')
);
}
2 changes: 1 addition & 1 deletion Core/Security/Config/config.json
@@ -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"}
82 changes: 82 additions & 0 deletions Core/Security/Config/releases/000091_Security.php
@@ -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;
}
}
2 changes: 2 additions & 0 deletions Core/Security/Config/releases/map.php
Expand Up @@ -2,5 +2,7 @@
$map = array(
1 => array(
'000009_Security' => 'R4f5634d491e04949bbbe43556318cd70'),
2 => array(
'000091_Security' => 'R509b0562966440e08da17bd16318cd70'),
);
?>

0 comments on commit 4406e34

Please sign in to comment.