diff options
| author | Aurélien Bompard | 2014-10-02 16:02:29 +0200 |
|---|---|---|
| committer | Aurélien Bompard | 2014-10-02 16:02:29 +0200 |
| commit | 8be4a27e950acf49e3f72cb679f2a819cad6aa1d (patch) | |
| tree | c436747ede99034bb8ead032ae8780d950a5e984 /src/mailman/database/alembic/env.py | |
| parent | be8c5cd472d67c7117a708b79c00f52c88cf44f3 (diff) | |
| download | mailman-8be4a27e950acf49e3f72cb679f2a819cad6aa1d.tar.gz mailman-8be4a27e950acf49e3f72cb679f2a819cad6aa1d.tar.zst mailman-8be4a27e950acf49e3f72cb679f2a819cad6aa1d.zip | |
Diffstat (limited to 'src/mailman/database/alembic/env.py')
| -rw-r--r-- | src/mailman/database/alembic/env.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mailman/database/alembic/env.py b/src/mailman/database/alembic/env.py index ff0f8231f..402c4f7da 100644 --- a/src/mailman/database/alembic/env.py +++ b/src/mailman/database/alembic/env.py @@ -41,7 +41,8 @@ def run_migrations_offline(): script output. """ - initialize.initialize_1(context.config.config_file_name) + if not config.initialized: + initialize.initialize_1(context.config.config_file_name) alembic_cfg= Config() alembic_cfg.set_main_option( "script_location", config.alembic['script_location']) @@ -59,7 +60,8 @@ def run_migrations_online(): and associate a connection with the context. """ - initialize.initialize_1(context.config.config_file_name) + if not config.initialized: + initialize.initialize_1(context.config.config_file_name) alembic_cfg= Config() alembic_cfg.set_main_option( "script_location", config.alembic['script_location']) |
