Skip to content

Commit 15e43d1

Browse files
Richard QuadlingRichard Quadling
Richard Quadling
authored and
Richard Quadling
committed
Renamed UPGRADE files
1 parent 6dcbf0e commit 15e43d1

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

UPGRADE_0.6.md

+4-14
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
# Upgrading Phinx to 0.8
1+
# Upgrading Phinx to 0.6
22

3-
* Phinx 0.8 allows for `phinx rollback` and `phinx status` to operate on migrations in reverse execution order,
4-
rather than reverse creation order. To achieve this new ordering, you will need to add a new entry in your
5-
`phinx.yml` file (or equivalent).
6-
7-
The setting is called `version_order` and supports 2 values:
8-
* `creation` - this is the default value and matches the standard behaviour of executing rollbacks in the
9-
reverse order based upon the creation datetime (also known as `version`).
10-
* `execution` - this is the new value and will execute rollbacks in the reverse order in which they were
11-
applied.
12-
13-
This feature will be of most importance when development of migrations takes place in different branches
14-
within a codebase and are merged in to master for deployment. It will no longer matter when the migrations
15-
were created if it becomes necessary to rollback the migrations.
3+
* Phinx 0.6 allows template creation access to the InputInterface and OutputInterface.
4+
To upgrade, rather than implementing the ```\Phinx\Migration\CreationInterface``` interface in your
5+
template creation class, extend the ```\Phinx\Migration\AbstractTemplateCreation``` abstract class.

UPGRADE_0.8.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
# Upgrading Phinx to 0.6
1+
# Upgrading Phinx to 0.8
22

3-
* Phinx 0.6 allows template creation access to the InputInterface and OutputInterface.
4-
To upgrade, rather than implementing the ```\Phinx\Migration\CreationInterface``` interface in your template creation class, extend the ```\Phinx\Migration\AbstractTemplateCreation``` abstract class.
3+
* Phinx 0.8 allows for `phinx rollback` and `phinx status` to operate on migrations in reverse execution order,
4+
rather than reverse creation order. To achieve this new ordering, you will need to add a new entry in your
5+
`phinx.yml` file (or equivalent).
6+
7+
The setting is called `version_order` and supports 2 values:
8+
* `creation` - this is the default value and matches the standard behaviour of executing rollbacks in the
9+
reverse order based upon the creation datetime (also known as `version`).
10+
* `execution` - this is the new value and will execute rollbacks in the reverse order in which they were
11+
applied.
12+
13+
This feature will be of most importance when development of migrations takes place in different branches
14+
within a codebase and are merged in to master for deployment. It will no longer matter when the migrations
15+
were created if it becomes necessary to rollback the migrations.

0 commit comments

Comments
 (0)