## lamindb_setup.migrate

class lamindb_setup.migrate

 Bases: "object"

 Manage migrations of the SQL database.

 You only need to migrate your SQL database if you maintain your own
 Django models.

 -[ Examples ]-

 Create a migration:

 import lamindb as ln

 ln.setup.migrate.create()

 Deploy a migration:

 ln.setup.migrate.deploy()

 Check migration consistency:

 ln.setup.migrate.check()

 See also: Migrate an instance via the CLI, see here.

 classmethod create(cls)

 Create a migration.

 Return type:
 "None"

 classmethod deploy(package_name=None, number=None)

 Return type:
 "None"

 classmethod squash(cls, package_name, migration_nr, start_migration_nr=None)

 Squash migrations.

 Return type:
 "None"

 classmethod show(cls)

 Show migrations.

 Return type:
 "None"

 classmethod defined_migrations(latest=False)

 classmethod deployed_migrations(latest=False)

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