diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-11-27 14:56:01 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-11-27 14:56:01 -0500 |
commit | ed25eab41d5d814b0283f9fad12fc78b6e0ebcb0 (patch) | |
tree | 21096fcd967f41b6747ba3dbbb35a587a1dff3e0 /alembic/config.py | |
parent | e7e063cc60828607d355f67790055222983be90d (diff) | |
download | alembic-ed25eab41d5d814b0283f9fad12fc78b6e0ebcb0.tar.gz |
implement autogenerate feature
Diffstat (limited to 'alembic/config.py')
-rw-r--r-- | alembic/config.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/alembic/config.py b/alembic/config.py index e686749..0c2fe19 100644 --- a/alembic/config.py +++ b/alembic/config.py @@ -137,6 +137,12 @@ def main(argv): type=str, help="Arbitrary 'tag' name - can be used by " "custom env.py scripts.") + if 'autogenerate' in kwargs: + parser.add_argument("--autogenerate", + action="store_true", + help="Populate revision script with candidate " + "migration operations, based on comparison of database to model.") + # TODO: # --dialect - name of dialect when --sql mode is set - *no DB connections |