Expand description
Core migration creation handler
A migration can be done for a specific schema which contains multiple additions or removables from a database or table.
At the end of crafting a migration you can use Migration::exec
to
get the raw SQL string for a database backend or Migration::revert
to try to auto-infer the migration rollback. In cases where that
can’t be done the Result<String, RevertError>
will not unwrap.
You can also use Migration::exec
with your SQL connection for convenience
if you’re a library developer.
Structs
- Represents a schema migration on a database