Skip to content

Commit

Permalink
feat: prints migration description to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Dec 21, 2022
1 parent 1074f51 commit 864a4f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

*
* Prints migration description to the STDOUT

### Fixed

Expand Down
2 changes: 2 additions & 0 deletions src/migratore/migration.py
Expand Up @@ -192,9 +192,11 @@ def start(self, operation = "run", operator = "Administrator"):

def run(self, db):
self.echo("Running migration '%s'" % self.uuid)
if self.description: self.echo("%s" % self.description)

def partial(self, db):
self.echo("Running partial '%s'" % self.uuid)
if self.description: self.echo("%s" % self.description)

def cleanup(self, db):
self.echo("Cleaning up...")
Expand Down

0 comments on commit 864a4f4

Please sign in to comment.