class MigrationRunner(abc.ABC):
__slots__ = ()
@abc.abstractmethod
def upgrade_once(self) -> int:
...
@abc.abstractmethod
def downgrade_once(self) -> int:
...
@abc.abstractmethod
def upgrade_while(
self, predicate: typing.Callable[[domain_migration.Migration], bool], /
) -> int:
...
@abc.abstractmethod
def downgrade_while(
self, predicate: typing.Callable[[domain_migration.Migration], bool], /
) -> int:
...
@abc.abstractmethod
def downgrade_to(self, migration_version: int, /) -> int:
...
@abc.abstractmethod
def upgrade_to(self, migration_version: int, /) -> int:
...
@abc.abstractmethod
def downgrade_all(self) -> int:
...
@abc.abstractmethod
def upgrade_all(self) -> int:
...