From: | Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | pgAdmin 4 commit: [Configuration][Migration] Use 'alembic' for migratio |
Date: | 2017-04-24 03:14:23 |
Message-ID: | E1d2USF-0002h1-CF@gothos.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
[Configuration][Migration] Use 'alembic' for migration of the SQLite
based configuration file from one version to another, and also allows us
to have a single path of creating the table instead of creating tables
using SQLAlchemy or hand rolled SQL
This allows us to run the migrations directly in the code, and it will
avoid the error prone version numbering.
Patched by: Sarah McAlear
Revisions: Joao Pedro De Almeida Pereira, George Gelashvili.
Reviewed by: Ashesh Vashi, Murtuza Zabuawala
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=6283ef7f5e4379d5e2202ca2919b9ea76caf57c7
Author: Sarah McAlear <smcalear(at)pivotal(dot)io>
Modified Files
--------------
README | 16 ++
web/migrations/alembic.ini | 54 ++++
web/migrations/env.py | 94 +++++++
web/migrations/script.py.mako | 33 +++
web/migrations/versions/09d53fca90c7_.py | 242 +++++++++++++++++
web/migrations/versions/fdc58d9bd449_.py | 128 +++++++++
web/pgAdmin4.py | 11 -
web/pgAdmin4.wsgi | 20 ++
web/pgadmin/__init__.py | 42 +--
web/pgadmin/setup/__init__.py | 13 +
web/pgadmin/setup/data_directory.py | 32 +++
web/pgadmin/setup/db_upgrade.py | 25 ++
web/pgadmin/setup/db_version.py | 28 ++
web/pgadmin/setup/user_info.py | 72 +++++
web/setup.py | 439 +------------------------------
15 files changed, 779 insertions(+), 470 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Ashesh Vashi | 2017-04-24 03:17:53 | Re: [patch] Move to Alembic migration system |
Previous Message | Ashesh Vashi | 2017-04-24 02:42:10 | Re: file permission on ssl key |