mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
fix migrate marco to take migration type
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user