From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | pgAdmin 4 commit: Move the config database schema version out of the co |
Date: | 2016-06-24 11:50:56 |
Message-ID: | E1bGPdQ-0002Re-G2@gothos.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Move the config database schema version out of the configuration file and into the model class.
Turns out using the config file isn't a good idea if users copy config.py to config_local.py, as it prevents upgrades to the database. This has the added side-effect of simplifying future changes, as you only need to edit 2 files to modify the config DB now, not 3.
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=d63b54610b8b70aae781196a5acee24e4f39c307
Modified Files
--------------
web/config.py | 4 ----
web/pgAdmin4.py | 5 +++++
web/pgadmin/model/__init__.py | 18 +++++++++++++++++-
web/setup.py | 5 +++++
4 files changed, 27 insertions(+), 5 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2016-06-24 12:59:20 | pgAdmin 4 commit: Allow maintenance operations on Index/Primary key/Uni |
Previous Message | Murtuza Zabuawala | 2016-06-24 11:24:30 | Re: Re: [pgAdmin 4 - Bug #1292] ERROR: template database "!@#$%^&*()_+{}|:"<>?=-\\][';/.," does not exist message throws if template database contain special charterers |