dstandish opened a new pull request #22102:
URL: https://github.com/apache/airflow/pull/22102
Make `db upgrade` args more like `db downgrade`.
```
usage: airflow db upgrade [-h] [--from-revision FROM_REVISION]
[--from-version FROM_VERSION] [-r REVISION]
[-s] [-n VERSION]
Upgrade the schema of the metadata database. To print but not execute
commands, use option `--sql-only`. If using options `--from-revision` or
`--from-version`, you must also use `--sql-only`, because if actually *running*
migrations, we should only migrate from the *current* revision.
optional arguments:
-h, --help show this help message and exit
--from-revision FROM_REVISION
(Optional) If generating sql, may supply a _from_
revision
--from-version FROM_VERSION
(Optional) If generating sql, may supply a _from_
version
-r REVISION, --revision REVISION
The airflow revision to downgrade to. Note: must
provide either `--revision` or `--version`.
-s, --sql-only Don't actually run migrations; just print out sql
scripts for offline migration. Required if using either `--from-version` or
`--from-version`.
-n VERSION, --version VERSION
The airflow version to downgrade to. Note: must
provide either `--revision` or `--version`.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]