Skip to content

Commit

Permalink
Renamed UPGRADE files
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Quadling authored and Richard Quadling committed Feb 28, 2017
1 parent 6dcbf0e commit 15e43d1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
18 changes: 4 additions & 14 deletions UPGRADE_0.6.md
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.
17 changes: 14 additions & 3 deletions UPGRADE_0.8.md
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.

0 comments on commit 15e43d1

Please sign in to comment.