Skip to content

Commit dfd8710

Browse files
committed
making forwards migration command output more legible
1 parent a834905 commit dfd8710

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

piccolo/apps/migrations/commands/forwards.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def run_migrations(self, app_config: AppConfig) -> None:
6363
if isinstance(response, MigrationManager):
6464
run_sync(response.run())
6565

66-
print(f"Ran {_id}")
66+
print(f"-> Ran {_id}")
6767

6868
Migration.insert().add(
6969
Migration(name=_id, app_name=self.app_name)
@@ -96,7 +96,8 @@ def forwards(app_name: str, migration_id: str = "all", fake: bool = False):
9696
if app_name == "all":
9797
sorted_app_names = BaseMigrationManager().get_sorted_app_names()
9898
for _app_name in sorted_app_names:
99-
print(f"Migrating {_app_name}")
99+
print(f"\nMigrating {_app_name}")
100+
print("------------------------------------------------")
100101
manager = ForwardsMigrationManager(
101102
app_name=_app_name, migration_id="all", fake=fake
102103
)

0 commit comments

Comments
 (0)