Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Properly create xhpast database

Summary:
It isn't deleted by `storage destroy`.

This should be a no-op on current storage because we execute `CREATE DATABASE IF NOT EXISTS`.

Test Plan:
  $ bin/storage destroy --dryrun

Reviewers: nh, epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3659
  • Loading branch information...
commit cbde56cdce1a7ec5919a84f8d893c6eae568603d 1 parent 2bc9ac5
vrana authored
1  resources/sql/patches/xhprof.sql
View
@@ -1,4 +1,3 @@
-CREATE DATABASE {$NAMESPACE}_xhprof;
CREATE TABLE {$NAMESPACE}_xhprof.xhprof_sample (
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
`filePHID` VARCHAR(64) NOT NULL COLLATE utf8_bin,
4 src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
View
@@ -167,6 +167,10 @@ public function getPatches() {
'type' => 'db',
'name' => 'ponder',
),
+ 'db.xhpast' => array(
+ 'type' => 'db',
+ 'name' => 'xhpast',
+ ),
'0000.legacy.sql' => array(
'type' => 'sql',
'name' => $this->getPatchPath('0000.legacy.sql'),
Please sign in to comment.
Something went wrong with that request. Please try again.