lamindb.setup.migrate

class lamindb.setup.migrate

Bases: object

Manage migrations.

Examples:

>>> import lamindb as ln
>>> ln.setup.migrate.create()
>>> ln.setup.migrate.deploy()
>>> ln.setup.migrate.check()

Class methods

classmethod create()

Create a migration.

Return type:

None

classmethod defined_migrations(latest=False)
classmethod deploy()

Deploy a migration.

Return type:

None

classmethod deployed_migrations(latest=False)

Get the list of deployed migrations from Migration table in DB.

classmethod show()

Show migrations.

Return type:

None

classmethod squash(package_name, migration_nr, start_migration_nr=None)

Squash migrations.

Return type:

None