diff --git a/Core/Emails/Config/Schema/schema.php b/Core/Emails/Config/Schema/schema.php index f6a8c33ce..0f3182fb2 100644 --- a/Core/Emails/Config/Schema/schema.php +++ b/Core/Emails/Config/Schema/schema.php @@ -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') ); diff --git a/Core/Emails/Config/config.json b/Core/Emails/Config/config.json index 65de66d34..05065305b 100755 --- a/Core/Emails/Config/config.json +++ b/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"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/Core/Emails/Config/releases/000091_Emails.php b/Core/Emails/Config/releases/000091_Emails.php new file mode 100644 index 000000000..1e7d92aff --- /dev/null +++ b/Core/Emails/Config/releases/000091_Emails.php @@ -0,0 +1,71 @@ + 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; + } + } \ No newline at end of file diff --git a/Core/Emails/Config/releases/map.php b/Core/Emails/Config/releases/map.php index 6c01442b0..290db254a 100644 --- a/Core/Emails/Config/releases/map.php +++ b/Core/Emails/Config/releases/map.php @@ -2,5 +2,7 @@ $map = array( 1 => array( '000009_Emails' => 'R4f5633032e984f23bfda421f6318cd70'), + 2 => array( + '000091_Emails' => 'R509afe55a0b047218c78701f6318cd70'), ); ?> \ No newline at end of file