ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

class MigrateRollbackCommand(MigrationCommand): (source)

View In Hierarchy

Revert the most recently applied migration batches.

Async Method handle Revert the most recently applied migration batches.
Class Variable arguments Command-line argument declarations accepted by this command.
Class Variable description Reverts the last batch(es) of database migrations..
Class Variable signature migrate:rollback.

Inherited from MigrationCommand:

Method progressEvents Build the progress callbacks rendering one line per migration.
Method reportEmpty Report that the command had nothing to do.
Method targetConnection Return the connection the command was asked to run against.
Class Variable timestamps Indicates whether timestamps will be shown in the command output.
async def handle(self, migrator: Migrator): (source)

Revert the most recently applied migration batches.

Parameters
migrator:orionis.database.migrations.MigratorService that discovers and reverts applied migrations.
Returns
NoneThis method does not return a value.
arguments: ClassVar[list[Argument]] = (source)

Command-line argument declarations accepted by this command.

description: str = (source)

Reverts the last batch(es) of database migrations..

signature: str = (source)

migrate:rollback.