[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
This commit is contained in:
Sarah McAlear
2017-04-24 08:37:27 +05:30
committed by Ashesh Vashi
parent 04ccc84bf6
commit 6283ef7f5e
15 changed files with 780 additions and 471 deletions
+13
View File
@@ -0,0 +1,13 @@
##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
from .user_info import user_info
from .db_version import get_version
from .db_upgrade import db_upgrade
from .data_directory import create_app_data_directory