fix migrate marco to take migration type

This commit is contained in:
sid
2020-08-24 23:59:38 +05:30
committed by Ryan Leckey
parent f41551f3ad
commit e8c073c5e2
2 changed files with 23 additions and 2 deletions

View File

@@ -157,7 +157,7 @@ pub async fn revert(migration_source: &str, uri: &str, dry_run: bool) -> anyhow:
for migration in migrator.iter().rev() {
if !migration.migration_type.is_down_migration() {
// Skipping non down migration
// This will skip any standard or up migration file
// This will skip any simple or up migration file
continue;
}
if migration.version > version {