Skip to content

Commit

Permalink
adding new release for the emails plugin (added fields)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Nov 8, 2012
1 parent 08cbcde commit 0e1304e
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Core/Emails/Config/Schema/schema.php
Expand Up @@ -23,6 +23,9 @@ public function after($event = array()) {
'user_id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
'system' => array('type' => 'boolean', 'null' => false, 'default' => NULL),
'outgoing' => array('type' => 'boolean', 'null' => false, 'default' => NULL),
'cron' => array('type' => 'boolean', 'null' => false, 'default' => '0'),
'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')
);
Expand Down
2 changes: 1 addition & 1 deletion Core/Emails/Config/config.json
@@ -1 +1 @@
{"id":"4cbc4e7e-b798-4aad-bc22-16836318cd70","name":"Emails","update_url":"infinitas-cms.org\/plugins\/version\/plugin:emails","version":"0.9","dependancies":[],"author":"Infinitas","website":"http:\/\/infinitas-cms.org","description":"Manage your emails","license":"MIT"}
{"id":"4cbc4e7e-b798-4aad-bc22-16836318cd70","name":"Emails","update_url":"infinitas-cms.org\/plugins\/version\/plugin:emails","version":"0.9.1","dependancies":[],"author":"Infinitas","website":"http:\/\/infinitas-cms.org","description":"Manage your emails","license":"MIT"}
71 changes: 71 additions & 0 deletions Core/Emails/Config/releases/000091_Emails.php
@@ -0,0 +1,71 @@
<?php
/**
* Infinitas Releas
*
* Auto generated database update
*/

class R509afe55a0b047218c78701f6318cd70 extends CakeRelease {

/**
* Migration description
*
* @var string
* @access public
*/
public $description = 'Migration for Emails version 0.9.1';

/**
* Plugin name
*
* @var string
* @access public
*/
public $plugin = 'Emails';

/**
* Actions to be performed
*
* @var array $migration
* @access public
*/
public $migration = array(
'up' => array(
'create_field' => array(
'emails_email_accounts' => array(
'cron' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'after' => 'outgoing'),
'created' => array('type' => 'datetime', 'null' => true, 'default' => NULL, 'after' => 'cron'),
'modified' => array('type' => 'datetime', 'null' => true, 'default' => NULL, 'after' => 'created'),
),
),
),
'down' => array(
'drop_field' => array(
'emails_email_accounts' => array('cron', 'created', 'modified',),
),
),
);


/**
* 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/Emails/Config/releases/map.php
Expand Up @@ -2,5 +2,7 @@
$map = array(
1 => array(
'000009_Emails' => 'R4f5633032e984f23bfda421f6318cd70'),
2 => array(
'000091_Emails' => 'R509afe55a0b047218c78701f6318cd70'),
);
?>

0 comments on commit 0e1304e

Please sign in to comment.