Foreword
This RFC describes the new migration schema, which is needed to better support safe migrations. This will solve problems that currently exists with:
- Rollbacks of actions within migrations
- Continuation of aborted migrations (i.e. when the server was crashing while executing)
- Zero Downtime compatible operations
Requirements
It is required to have any action, an action will describe as a single operation like renameColumn, within a migration directly linked with its reversion. An action may in some occassions be of a deterministic nature and directly revertable without further description of the rollback routine.
Backwards Compatibility
There is no need to keep compatible to any old migration schema, as migration schemas are excplicitly versioned by their _meta export. However, drivers may not be affected and should not have the need to change.
Effects on issues
This RFC will have effects on the following issues:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Foreword
This RFC describes the new migration schema, which is needed to better support safe migrations. This will solve problems that currently exists with:
Requirements
It is required to have any action, an action will describe as a single operation like
renameColumn, within a migration directly linked with its reversion. An action may in some occassions be of a deterministic nature and directly revertable without further description of the rollback routine.Backwards Compatibility
There is no need to keep compatible to any old migration schema, as migration schemas are excplicitly versioned by their
_metaexport. However, drivers may not be affected and should not have the need to change.Effects on issues
This RFC will have effects on the following issues:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.