Skip to content

Commit

Permalink
Merge branch '2.2' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Jun 23, 2019
2 parents 2355ded + 8a10eeb commit ed29afe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions masonite/helpers/migrations.py
@@ -1,11 +1,11 @@
import subprocess

from masonite.helpers import config
from masonite.helpers import config, HasColoredCommands
from masonite.packages import add_venv_site_packages
from orator.migrations import DatabaseMigrationRepository, Migrator


class Migrations:
class Migrations(HasColoredCommands):

def __init__(self):
self._ran = []
Expand Down Expand Up @@ -38,7 +38,7 @@ def run(self):
self._ran.append(self.repository.get_ran())
self._notes = self.migrator._notes
except Exception as e:
self.info(str(e))
self.danger(str(e))

return self

Expand All @@ -51,7 +51,7 @@ def rollback(self):
self._ran.append(self.repository.get_ran())
self._notes = self.migrator._notes
except Exception as e:
self.info(str(e))
self.danger(str(e))

return self

Expand All @@ -68,7 +68,7 @@ def reset(self):
self._ran.append(self.repository.get_ran())
self._notes = self.migrator._notes
except Exception as e:
self.info(str(e))
self.danger(str(e))

return self

Expand Down
3 changes: 3 additions & 0 deletions masonite/helpers/misc.py
Expand Up @@ -70,6 +70,9 @@ def warning(self, message):
def danger(self, message):
print('\033[91m {0} \033[0m'.format(message))

def info(self, message):
return self.success(message)


class Compact:

Expand Down

0 comments on commit ed29afe

Please sign in to comment.