1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 07:42:40 +01:00
phorge-phorge/src/infrastructure
epriestley c5e8de9450 Make bin/storage dump insert CREATE DATABASE and USE statements
Summary:
Ref T13000. The new approach for dumping database-by-database means that we don't get CREATE DATABASE or USE statements, which makes importing the dump again inconvenient.

Manually stitch these into the dump.

Test Plan:
  - Used `bin/storage dump --namespace ...` to dump a smaller local instance.
  - Used `bin/storage destroy --namespace ...`, to destroy the namespace, then inported the dump cleanly.
  - Verified that each CREATE DATABASE statement appears only once.
  - Verified that `bin/storage renamespace --live` can correctly process this file.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13000

Differential Revision: https://secure.phabricator.com/D18707
2017-10-13 14:35:18 -07:00
..
cluster Convert cluster/projects config options to newer modular structure 2017-06-27 12:35:54 -07:00
contentsource Redesign Config Application 2016-08-29 15:49:49 -07:00
customfield Fix spelling 2017-10-09 10:48:04 -07:00
daemon Fix spelling 2017-10-09 10:48:04 -07:00
diff Fix spelling 2017-10-09 10:48:04 -07:00
edges Add a generic "edge.search" method 2017-03-04 15:26:29 -08:00
env Fix spelling 2017-10-09 10:48:04 -07:00
events Modernize Hovercard implementation 2015-12-24 12:18:28 -08:00
graph Enable hovercards for the "Task Graph" UI in Maniphest 2017-10-04 11:12:01 -07:00
internationalization Fix spelling 2017-10-09 10:48:04 -07:00
javelin When the profiler is active, keep it active if the user submits forms 2017-02-23 11:15:40 -08:00
lint/linter Linter fixes 2015-12-03 07:44:23 +11:00
log Add "%I" (instance name) to application log formats 2017-04-23 11:07:19 -07:00
management Provide "bin/files integrity" for debugging, maintaining and backfilling integrity hashes 2017-04-06 15:42:43 -07:00
markup Fix ambiguous URI parsing in Youtube Remarkup rule 2017-06-23 08:43:15 -07:00
query Fix spelling 2017-10-09 10:48:04 -07:00
sms Various linter fixes 2015-08-11 22:36:55 +10:00
ssh Normalize remote IP addresses when writing to logs, etc 2016-12-05 11:20:29 -08:00
storage Make bin/storage dump insert CREATE DATABASE and USE statements 2017-10-13 14:35:18 -07:00
syntax Pass the new default syntax highlighting map to the remarkup engine 2016-05-05 02:51:19 -07:00
testing When running unit tests, ignore any custom task fields 2017-04-02 09:36:17 -07:00
time Fix errors found by PHPStan 2017-02-18 09:24:56 +00:00
util Fix spelling 2017-10-09 10:48:04 -07:00
PhabricatorEditor.php Mark some strings for translation 2015-06-09 23:06:52 +10:00