]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Update documentation for Config
authorFederico T <federicotdn@users.noreply.github.com>
Fri, 15 Feb 2019 18:11:51 +0000 (15:11 -0300)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 15 Feb 2019 18:15:25 +0000 (13:15 -0500)
Replace "url" with "sqlalchemy.url" in example use of Config object.

Change-Id: Ib1179885ea82322b9838d6889d937400c96e207e
Fixes: #536
alembic/config.py

index a4462eee917a3e113b9ba194ee02fd03b26fff81..f06a25cff26b856e5de1f7d32465450c7668c2b0 100644 (file)
@@ -40,7 +40,7 @@ class Config(object):
         from alembic.config import Config
         alembic_cfg = Config()
         alembic_cfg.set_main_option("script_location", "myapp:migrations")
-        alembic_cfg.set_main_option("url", "postgresql://foo/bar")
+        alembic_cfg.set_main_option("sqlalchemy.url", "postgresql://foo/bar")
         alembic_cfg.set_section_option("mysection", "foo", "bar")
 
     .. warning::