-
Notifications
You must be signed in to change notification settings - Fork 892
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
Richard Quadling
authored and
Richard Quadling
committed
Feb 28, 2017
1 parent
6dcbf0e
commit 15e43d1
Showing
2 changed files
with
18 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
# Upgrading Phinx to 0.8 | ||
# Upgrading Phinx to 0.6 | ||
|
||
* Phinx 0.8 allows for `phinx rollback` and `phinx status` to operate on migrations in reverse execution order, | ||
rather than reverse creation order. To achieve this new ordering, you will need to add a new entry in your | ||
`phinx.yml` file (or equivalent). | ||
|
||
The setting is called `version_order` and supports 2 values: | ||
* `creation` - this is the default value and matches the standard behaviour of executing rollbacks in the | ||
reverse order based upon the creation datetime (also known as `version`). | ||
* `execution` - this is the new value and will execute rollbacks in the reverse order in which they were | ||
applied. | ||
|
||
This feature will be of most importance when development of migrations takes place in different branches | ||
within a codebase and are merged in to master for deployment. It will no longer matter when the migrations | ||
were created if it becomes necessary to rollback the migrations. | ||
* Phinx 0.6 allows template creation access to the InputInterface and OutputInterface. | ||
To upgrade, rather than implementing the ```\Phinx\Migration\CreationInterface``` interface in your | ||
template creation class, extend the ```\Phinx\Migration\AbstractTemplateCreation``` abstract class. |
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,4 +1,15 @@ | ||
# Upgrading Phinx to 0.6 | ||
# Upgrading Phinx to 0.8 | ||
|
||
* Phinx 0.6 allows template creation access to the InputInterface and OutputInterface. | ||
To upgrade, rather than implementing the ```\Phinx\Migration\CreationInterface``` interface in your template creation class, extend the ```\Phinx\Migration\AbstractTemplateCreation``` abstract class. | ||
* Phinx 0.8 allows for `phinx rollback` and `phinx status` to operate on migrations in reverse execution order, | ||
rather than reverse creation order. To achieve this new ordering, you will need to add a new entry in your | ||
`phinx.yml` file (or equivalent). | ||
|
||
The setting is called `version_order` and supports 2 values: | ||
* `creation` - this is the default value and matches the standard behaviour of executing rollbacks in the | ||
reverse order based upon the creation datetime (also known as `version`). | ||
* `execution` - this is the new value and will execute rollbacks in the reverse order in which they were | ||
applied. | ||
|
||
This feature will be of most importance when development of migrations takes place in different branches | ||
within a codebase and are merged in to master for deployment. It will no longer matter when the migrations | ||
were created if it becomes necessary to rollback the migrations. |