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(cls)¶
- Create a migration. - Return type:
- None
 
 - classmethod defined_migrations(latest=False)¶
 - classmethod deploy(cls)¶
- Deploy a migration. - Return type:
- None
 
 - classmethod deployed_migrations(latest=False)¶
- Get the list of deployed migrations from Migration table in DB. 
 - classmethod show(cls)¶
- Show migrations. - Return type:
- None
 
 - classmethod squash(cls, package_name, migration_nr, start_migration_nr=None)¶
- Squash migrations. - Return type:
- None