-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c502f2
commit 0b8d46e
Showing
4 changed files
with
89 additions
and
3 deletions.
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":"4c94edcb-9624-4ce3-acfe-78d86318cd70","name":"Comments","update_url":"infinitas-cms.org\/plugins\/version\/plugin:comments","version":"0.9","dependancies":[],"author":"Infinitas","website":"infinitas-cms.org","description":"See what your users have to say","license":"MIT"} | ||
{"id":"4c94edcb-9624-4ce3-acfe-78d86318cd70","name":"Comments","update_url":"infinitas-cms.org\/plugins\/version\/plugin:comments","version":"0.9.1","dependancies":[],"author":"Infinitas","website":"infinitas-cms.org","description":"See what your users have to say","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 R4fbabc4eff8c4a3899594a0a6318cd70 extends CakeRelease { | ||
|
||
/** | ||
* Migration description | ||
* | ||
* @var string | ||
* @access public | ||
*/ | ||
public $description = 'Migration for Comments version 0.9.1'; | ||
|
||
/** | ||
* Plugin name | ||
* | ||
* @var string | ||
* @access public | ||
*/ | ||
public $plugin = 'Comments'; | ||
|
||
/** | ||
* Actions to be performed | ||
* | ||
* @var array $migration | ||
* @access public | ||
*/ | ||
public $migration = array( | ||
'up' => array( | ||
'create_field' => array( | ||
'infinitas_comments' => array( | ||
'mx_record' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'after' => 'status'), | ||
'ip_address' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 20, 'collate' => 'utf8_general_ci', 'charset' => 'utf8', 'after' => 'mx_record'), | ||
), | ||
), | ||
'alter_field' => array( | ||
'infinitas_comments' => array( | ||
'foreign_id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), | ||
'user_id' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 36, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), | ||
), | ||
), | ||
), | ||
'down' => array( | ||
'drop_field' => array( | ||
'infinitas_comments' => array('mx_record', 'ip_address',), | ||
), | ||
'alter_field' => array( | ||
'infinitas_comments' => array( | ||
'foreign_id' => array('type' => 'integer', 'null' => false, 'default' => NULL), | ||
'user_id' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 8), | ||
), | ||
), | ||
), | ||
); | ||
|
||
|
||
/** | ||
* 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