atlas.migrations.MigrationRunner.apply_pending
Details
Type: method
File: atlas/migrations.py
Lines: 104–171
Signature: (self, backup_before: bool=True, backup_dir: Path | str | None=None) -> list[Migration]
Docstring
Apply all pending migrations in a single transaction.
Parameters
----------
backup_before:
If True, create a database backup before applying migrations.
backup_dir:
Directory to store the backup. Defaults to `data/backups/migrations`.
Returns
-------
List of migrations that were applied.
Children
| Name | Type | Line |
|---|---|---|
| atlas.migrations.MigrationRunner.apply_pending.pending | attribute | 122 |