mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(db): add docstring
This commit is contained in:
parent
fcb9e89bd7
commit
72c9a7663f
@ -215,6 +215,7 @@ class SQLiteMigrator:
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def _run_migrations(self, temp_db_cursor: sqlite3.Cursor) -> None:
|
def _run_migrations(self, temp_db_cursor: sqlite3.Cursor) -> None:
|
||||||
|
"""Runs all migrations in a loop."""
|
||||||
next_migration = self._migrations.get(from_version=self._get_current_version(temp_db_cursor))
|
next_migration = self._migrations.get(from_version=self._get_current_version(temp_db_cursor))
|
||||||
while next_migration is not None:
|
while next_migration is not None:
|
||||||
self._run_migration(next_migration, temp_db_cursor)
|
self._run_migration(next_migration, temp_db_cursor)
|
||||||
|
Loading…
Reference in New Issue
Block a user