mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
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
This commit is contained in:
parent
2bc9ac5e2e
commit
cbde56cdce
2 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
||||||
CREATE DATABASE {$NAMESPACE}_xhprof;
|
|
||||||
CREATE TABLE {$NAMESPACE}_xhprof.xhprof_sample (
|
CREATE TABLE {$NAMESPACE}_xhprof.xhprof_sample (
|
||||||
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
`filePHID` VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
`filePHID` VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
||||||
|
|
|
@ -167,6 +167,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
|
||||||
'type' => 'db',
|
'type' => 'db',
|
||||||
'name' => 'ponder',
|
'name' => 'ponder',
|
||||||
),
|
),
|
||||||
|
'db.xhpast' => array(
|
||||||
|
'type' => 'db',
|
||||||
|
'name' => 'xhpast',
|
||||||
|
),
|
||||||
'0000.legacy.sql' => array(
|
'0000.legacy.sql' => array(
|
||||||
'type' => 'sql',
|
'type' => 'sql',
|
||||||
'name' => $this->getPatchPath('0000.legacy.sql'),
|
'name' => $this->getPatchPath('0000.legacy.sql'),
|
||||||
|
|
Loading…
Reference in a new issue