Merge ~cjwatson/launchpad:remote-db-creation into launchpad:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 1150d72f24412b47bd9e141b8a6784484b63f67d |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:remote-db-creation |
Merge into: | launchpad:master |
Prerequisite: | ~cjwatson/launchpad:sqlbase-connect-set-role-after-connecting |
Diff against target: |
242 lines (+93/-18) 5 files modified
database/schema/Makefile (+12/-11) lib/lp/services/database/sqlbase.py (+5/-1) utilities/pgmassacre.py (+31/-5) utilities/pgoptions.py (+40/-0) utilities/soyuz-sampledata-setup.py (+5/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email: mp+440069@code.launchpad.net |
Commit message
Allow initializing a remote database
Description of the change
This is usable from an instance of the `launchpad-admin` charm: it uses the configuration file to find the necessary database credentials. As such, it can be used to set up a Juju-deployed instance of Launchpad from scratch.
So that I sleep better at night, I added an explicit check that refuses to destroy the production database this way.
To post a comment you must log in.