fix(db): add docstring

This commit is contained in:
psychedelicious 2023-12-11 01:22:43 +11:00
parent fcb9e89bd7
commit 72c9a7663f

View File

@ -215,6 +215,7 @@ class SQLiteMigrator:
return True
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))
while next_migration is not None:
self._run_migration(next_migration, temp_db_cursor)