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()
Methods¶
- classmethod check()¶
Check whether Registry definitions are in sync with migrations.
- Return type:
bool
- 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