Make db revision step numbers global

Bug #822654 reported by Anton Gritsay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
Medium
Mattia Barbon

Bug Description

Rational: sometimes the migration step crosses the boundaries of tablespaces. In such case it may become impossible to achieve with current db migration architecture both of two goals: 1) split migration scripts by tablespace (riski, oqmif...); 2) guarantee the order of execution of migration steps.

We may make revision step numbers global. And it would be better then to change directories structure - place step number at higher level and create tablespace directories inside.

Anton Gritsay (angri)
Changed in openquake:
importance: Undecided → Low
Revision history for this message
Mattia Barbon (mattia.barbon) wrote :

Bumped to the same priority/milestone as https://bugs.launchpad.net/openquake/+bug/816454

Changed in openquake:
status: New → Confirmed
importance: Low → Medium
milestone: none → 0.4.3
Changed in openquake:
assignee: nobody → Mattia Barbon (mattia.barbon)
Revision history for this message
Mattia Barbon (mattia.barbon) wrote :

I propose to change the directory structure to: upgrades/openquake/<version>/<step> and remove the schema subdirectory.

Rationale: having schema subdirectories gains us nothing if the change involves just one schema (the schema name can be in the file names) and is actively harmful if the change involves multiple schemas (the upgrade might require multiple changes to both schemas and we might need to interleave the scripts).

Revision history for this message
Lars Butler (lars-butler) wrote :

#2 LGTM

Revision history for this message
Mattia Barbon (mattia.barbon) wrote :
Changed in openquake:
status: Confirmed → In Progress
Changed in openquake:
status: In Progress → Fix Committed
Changed in openquake:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.