-
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
Showing
5 changed files
with
97 additions
and
9 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":"4c94edcc-4ec0-4c4e-97de-78d86318cd70","name":"Contact","update_url":"infinitas-cms.org\/plugins\/version\/plugin:contact","version":"0.9","dependancies":[],"author":"Infinitas","website":"infinitas-cms.org","description":"Display your contact details and allow users to contact you","license":"MIT"} | ||
{"id":"4c94edcc-4ec0-4c4e-97de-78d86318cd70","name":"Contact","update_url":"infinitas-cms.org\/plugins\/version\/plugin:contact","version":"0.9.1","dependancies":[],"author":"Infinitas","website":"infinitas-cms.org","description":"Display your contact details and allow users to contact you","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,88 @@ | ||
<?php | ||
/** | ||
* Infinitas Releas | ||
* | ||
* Auto generated database update | ||
*/ | ||
|
||
class R4fdf1936e2ac4687a9a93c866318cd70 extends CakeRelease { | ||
|
||
/** | ||
* Migration description | ||
* | ||
* @var string | ||
* @access public | ||
*/ | ||
public $description = 'Migration for Contact version 0.9.1'; | ||
|
||
/** | ||
* Plugin name | ||
* | ||
* @var string | ||
* @access public | ||
*/ | ||
public $plugin = 'Contact'; | ||
|
||
/** | ||
* Actions to be performed | ||
* | ||
* @var array $migration | ||
* @access public | ||
*/ | ||
public $migration = array( | ||
'up' => array( | ||
'create_field' => array( | ||
'contact_addresses' => array( | ||
'latitude' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '9,6', 'after' => 'continent_id'), | ||
'longitude' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '9,6', 'after' => 'latitude'), | ||
), | ||
), | ||
'drop_field' => array( | ||
'contact_addresses' => array('plugin',), | ||
), | ||
'alter_field' => array( | ||
'contact_branches' => array( | ||
'address_id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), | ||
), | ||
), | ||
), | ||
'down' => array( | ||
'drop_field' => array( | ||
'contact_addresses' => array('latitude', 'longitude',), | ||
), | ||
'create_field' => array( | ||
'contact_addresses' => array( | ||
'plugin' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 50, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), | ||
), | ||
), | ||
'alter_field' => array( | ||
'contact_branches' => array( | ||
'address_id' => array('type' => 'integer', 'null' => false, 'default' => '0'), | ||
), | ||
), | ||
), | ||
); | ||
|
||
|
||
/** | ||
* 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
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