gem / oq-platform

DEPRECATED. Please refer to https://github.com/gem/oq-platform2
8 stars 3 forks source link

Vuln name less constr #649

Closed nastasi-oq closed 6 years ago

nastasi-oq commented 6 years ago

Change constraint on curve name from 'unique' to 'unique with type_of_assessment'. Migration between old and new version must be performed with:

  postgres@machine:~$ pg_dump -a --inserts -t 'vulnerability_*' oqplatform > vulnerability.sql
  user@machine: ~$ sudo openquakeplatform sqlclear vulnerability | sudo openquakeplatform dbshell
  user@machine: ~$ sudo pip install -U --no-deps oq-platform/openquakeplatform/
  user@machine: ~$ sudo openquakeplatform syncdb
  postgres@machine:~$ psql oqplatform vulnerability.sql

tests are running here: https://ci.openquake.org/job/zdevel_oq-platform/436/

micheles commented 6 years ago

LGTM if the tests are green