Skip to content

Commit

Permalink
Fix issue with the missing tables in clean env.
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Jan 3, 2021
1 parent 652fdf2 commit 3920f1a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions PyFunceble/cli/processes/migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
from PyFunceble.cli.processes.base import ProcessesManagerBase
from PyFunceble.cli.processes.workers.migrator import MigratorWorker
from PyFunceble.helpers.file import FileHelper
from PyFunceble.cli.migrators.alembic import Alembic


class MigratorProcessesManager(ProcessesManagerBase):
Expand Down Expand Up @@ -306,3 +307,9 @@ def create(self) -> "ProcessesManagerBase":

self._created_workers.append(worker)
PyFunceble.facility.Logger.info("Created worker for %r", method)

def start(self) -> "ProcessesManagerBase":
# We start the migration (as a standalone)
Alembic().upgrade()

return super().start()

0 comments on commit 3920f1a

Please sign in to comment.