Merge lp:~mvo/pkgme-devportal/schemas-via-storm into lp:~mvo/pkgme-devportal/more-architectures
Status: | Work in progress |
---|---|
Proposed branch: | lp:~mvo/pkgme-devportal/schemas-via-storm |
Merge into: | lp:~mvo/pkgme-devportal/more-architectures |
Diff against target: |
67 lines (+17/-22) 2 files modified
devportalbinary/database.py (+13/-22) devportalbinary/migrations/patch_0.py (+4/-0) |
To merge this branch: | bzr merge lp:~mvo/pkgme-devportal/schemas-via-storm |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt | Pending | ||
Review via email: mp+116652@code.launchpad.net |
Description of the change
This branch uses storm to manage the db schema and adds a migration patch from the previous schema without the architecture column to the new schema that adds it.
Please note that this needs running:
"""
CREATE TABLE patch (version INTEGER NOT NULL PRIMARY KEY)
"""
on the database first to ensure that storm does not assumes the DB is totally empty.
This will allow us to do schema updates using devportalbinary
Unmerged revisions
- 70. By Michael Vogt
-
devportalbinary
/database. py: add comment, remove adding the patches table if its missing and leave that to the webops via the MP - 69. By Michael Vogt
-
use storm.schema to manage the db and add migrate script
This branch is on hold for now as discussed on irc:
<jml> mvo: in any case, we won't be using it for this branch though. Maybe best to shelve it until we have another schema change?
But it should be re-considered for the next schema update.