Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding new release for the emails plugin (added fields)
- Loading branch information
1 parent
08cbcde
commit 0e1304e
Showing
4 changed files
with
77 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":"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"} |
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,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; | ||
} | ||
} |
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