1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00
phorge-phorge/resources/sql/patches/xhprof.sql
vrana cbde56cdce 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
2012-10-08 16:09:20 -07:00

13 lines
559 B
SQL

CREATE TABLE {$NAMESPACE}_xhprof.xhprof_sample (
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
`filePHID` VARCHAR(64) NOT NULL COLLATE utf8_bin,
`sampleRate` INT NOT NULL,
`usTotal` BIGINT UNSIGNED NOT NULL,
`hostname` VARCHAR(255) COLLATE utf8_bin,
`requestPath` VARCHAR(255) COLLATE utf8_bin,
`controller` VARCHAR(255) COLLATE utf8_bin,
`userPHID` VARCHAR(64) COLLATE utf8_bin,
`dateCreated` BIGINT UNSIGNED NOT NULL,
`dateModified` BIGINT UNSIGNED NOT NULL,
UNIQUE KEY (filePHID)
) ENGINE=InnoDB, COLLATE utf8_general_ci;