Add migrate! macro for embedded migrations

This commit is contained in:
Raphaël Thériault
2020-07-23 14:22:50 -04:00
parent 60c3ece671
commit e5e9665bd9
7 changed files with 127 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ pub async fn info(uri: &str) -> anyhow::Result<()> {
} else {
style("pending").yellow()
},
migration.description(),
migration.description,
);
}
@@ -77,7 +77,7 @@ pub async fn run(uri: &str) -> anyhow::Result<()> {
"{}/{} {} {}",
style(migration.version()).cyan(),
style("migrate").green(),
migration.description(),
migration.description,
style(format!("({:?})", elapsed)).dim()
);
} else {