diff --git a/conf/default.conf.php b/conf/default.conf.php index f5d14d3408..c8b6825124 100644 --- a/conf/default.conf.php +++ b/conf/default.conf.php @@ -29,7 +29,7 @@ return array( // The default PHID for users who haven't uploaded a profile image. It should // be 50x50px. - 'user.default-profile-image-phid' => 'PHID-FILE-f57aaefce707fc4060ef', + 'user.default-profile-image-phid' => 'PHID-FILE-4d61229816cfe6f2b2a3', // -- Access Control -------------------------------------------------------- // diff --git a/resources/sql/init/initialize.sql b/resources/sql/init/initialize.sql index b827c261df..f2aa6e598f 100644 --- a/resources/sql/init/initialize.sql +++ b/resources/sql/init/initialize.sql @@ -1,8 +1,8 @@ --- MySQL dump 10.13 Distrib 5.5.8, for osx10.6 (i386) +-- MySQL dump 10.13 Distrib 5.5.10, for osx10.6 (i386) -- -- Host: localhost Database: phabricator_conduit -- ------------------------------------------------------ --- Server version 5.5.8 +-- Server version 5.5.10 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; @@ -42,6 +42,15 @@ CREATE TABLE `conduit_connectionlog` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `conduit_connectionlog` +-- + +LOCK TABLES `conduit_connectionlog` WRITE; +/*!40000 ALTER TABLE `conduit_connectionlog` DISABLE KEYS */; +/*!40000 ALTER TABLE `conduit_connectionlog` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `conduit_methodcalllog` -- @@ -58,9 +67,83 @@ CREATE TABLE `conduit_methodcalllog` ( `dateCreated` int(10) unsigned NOT NULL, `dateModified` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `conduit_methodcalllog` +-- + +LOCK TABLES `conduit_methodcalllog` WRITE; +/*!40000 ALTER TABLE `conduit_methodcalllog` DISABLE KEYS */; +INSERT INTO `conduit_methodcalllog` VALUES (1,NULL,'daemon.log','',4569,1304349508,1304349508),(2,NULL,'daemon.log','',2335,1304349508,1304349508),(3,NULL,'daemon.log','',2463,1304349508,1304349508),(4,NULL,'daemon.log','',4507,1304349546,1304349546),(5,NULL,'daemon.log','',3366,1304349546,1304349546); +/*!40000 ALTER TABLE `conduit_methodcalllog` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Current Database: `phabricator_daemon` +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_daemon` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_daemon`; + +-- +-- Table structure for table `daemon_log` +-- + +DROP TABLE IF EXISTS `daemon_log`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `daemon_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `daemon` varchar(255) NOT NULL, + `host` varchar(255) NOT NULL, + `pid` int(10) unsigned NOT NULL, + `argv` varchar(512) NOT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `daemon_log` +-- + +LOCK TABLES `daemon_log` WRITE; +/*!40000 ALTER TABLE `daemon_log` DISABLE KEYS */; +/*!40000 ALTER TABLE `daemon_log` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `daemon_logevent` +-- + +DROP TABLE IF EXISTS `daemon_logevent`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `daemon_logevent` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `logID` int(10) unsigned NOT NULL, + `logType` varchar(4) NOT NULL, + `message` longblob NOT NULL, + `epoch` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + KEY `logID` (`logID`,`epoch`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `daemon_logevent` +-- + +LOCK TABLES `daemon_logevent` WRITE; +/*!40000 ALTER TABLE `daemon_logevent` DISABLE KEYS */; +INSERT INTO `daemon_logevent` VALUES (1,7,'INIT','',1304349508),(2,9,'INIT','',1304349508),(3,10,'INIT','',1304349508),(4,6,'INIT','',1304349546),(5,8,'INIT','',1304349546); +/*!40000 ALTER TABLE `daemon_logevent` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Current Database: `phabricator_differential` -- @@ -91,10 +174,20 @@ CREATE TABLE `differential_changeset` ( `delLines` int(10) unsigned NOT NULL, `dateCreated` int(10) unsigned NOT NULL, `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + KEY `diffID` (`diffID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `differential_changeset` +-- + +LOCK TABLES `differential_changeset` WRITE; +/*!40000 ALTER TABLE `differential_changeset` DISABLE KEYS */; +/*!40000 ALTER TABLE `differential_changeset` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `differential_changeset_parse_cache` -- @@ -109,6 +202,15 @@ CREATE TABLE `differential_changeset_parse_cache` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `differential_changeset_parse_cache` +-- + +LOCK TABLES `differential_changeset_parse_cache` WRITE; +/*!40000 ALTER TABLE `differential_changeset_parse_cache` DISABLE KEYS */; +/*!40000 ALTER TABLE `differential_changeset_parse_cache` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `differential_comment` -- @@ -125,10 +227,44 @@ CREATE TABLE `differential_comment` ( `dateCreated` int(10) unsigned NOT NULL, `dateModified` int(10) unsigned NOT NULL, `cache` longblob, - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + KEY `revisionID` (`revisionID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `differential_comment` +-- + +LOCK TABLES `differential_comment` WRITE; +/*!40000 ALTER TABLE `differential_comment` DISABLE KEYS */; +/*!40000 ALTER TABLE `differential_comment` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `differential_commit` +-- + +DROP TABLE IF EXISTS `differential_commit`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `differential_commit` ( + `revisionID` int(10) unsigned NOT NULL, + `commitPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`revisionID`,`commitPHID`), + UNIQUE KEY `commitPHID` (`commitPHID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `differential_commit` +-- + +LOCK TABLES `differential_commit` WRITE; +/*!40000 ALTER TABLE `differential_commit` DISABLE KEYS */; +/*!40000 ALTER TABLE `differential_commit` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `differential_diff` -- @@ -144,21 +280,32 @@ CREATE TABLE `differential_diff` ( `sourcePath` varchar(255) DEFAULT NULL, `sourceControlSystem` varchar(64) DEFAULT NULL, `sourceControlBaseRevision` varchar(255) DEFAULT NULL, - `sourceControlpath` varchar(255) DEFAULT NULL, + `sourceControlPath` varchar(255) DEFAULT NULL, `lintStatus` int(10) unsigned NOT NULL, `unitStatus` int(10) unsigned NOT NULL, `lineCount` int(10) unsigned NOT NULL, `branch` varchar(255) DEFAULT NULL, `parentRevisionID` int(10) unsigned DEFAULT NULL, - `arcanistProject` varchar(255) DEFAULT NULL, + `arcanistProjectPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `creationMethod` varchar(255) DEFAULT NULL, `dateCreated` int(10) unsigned NOT NULL, `dateModified` int(10) unsigned NOT NULL, `description` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) + `repositoryUUID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `revisionID` (`revisionID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `differential_diff` +-- + +LOCK TABLES `differential_diff` WRITE; +/*!40000 ALTER TABLE `differential_diff` DISABLE KEYS */; +/*!40000 ALTER TABLE `differential_diff` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `differential_diffproperty` -- @@ -173,10 +320,20 @@ CREATE TABLE `differential_diffproperty` ( `data` longblob NOT NULL, `dateCreated` int(10) unsigned NOT NULL, `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + UNIQUE KEY `diffID` (`diffID`,`name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `differential_diffproperty` +-- + +LOCK TABLES `differential_diffproperty` WRITE; +/*!40000 ALTER TABLE `differential_diffproperty` DISABLE KEYS */; +/*!40000 ALTER TABLE `differential_diffproperty` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `differential_hunk` -- @@ -194,10 +351,20 @@ CREATE TABLE `differential_hunk` ( `newLen` int(10) unsigned NOT NULL, `dateCreated` int(10) unsigned NOT NULL, `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + KEY `changesetID` (`changesetID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `differential_hunk` +-- + +LOCK TABLES `differential_hunk` WRITE; +/*!40000 ALTER TABLE `differential_hunk` DISABLE KEYS */; +/*!40000 ALTER TABLE `differential_hunk` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `differential_inlinecomment` -- @@ -218,10 +385,22 @@ CREATE TABLE `differential_inlinecomment` ( `dateCreated` int(10) unsigned NOT NULL, `dateModified` int(10) unsigned NOT NULL, `cache` longblob, - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + KEY `changesetID` (`changesetID`), + KEY `commentID` (`commentID`), + KEY `revisionID` (`revisionID`,`authorPHID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `differential_inlinecomment` +-- + +LOCK TABLES `differential_inlinecomment` WRITE; +/*!40000 ALTER TABLE `differential_inlinecomment` DISABLE KEYS */; +/*!40000 ALTER TABLE `differential_inlinecomment` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `differential_relationship` -- @@ -240,6 +419,15 @@ CREATE TABLE `differential_relationship` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `differential_relationship` +-- + +LOCK TABLES `differential_relationship` WRITE; +/*!40000 ALTER TABLE `differential_relationship` DISABLE KEYS */; +/*!40000 ALTER TABLE `differential_relationship` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `differential_revision` -- @@ -263,10 +451,111 @@ CREATE TABLE `differential_revision` ( `dateModified` int(10) unsigned NOT NULL, `attached` longtext NOT NULL, `unsubscribed` longblob NOT NULL, - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + UNIQUE KEY `phid` (`phid`), + KEY `authorPHID` (`authorPHID`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `differential_revision` +-- + +LOCK TABLES `differential_revision` WRITE; +/*!40000 ALTER TABLE `differential_revision` DISABLE KEYS */; +/*!40000 ALTER TABLE `differential_revision` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `differential_viewtime` +-- + +DROP TABLE IF EXISTS `differential_viewtime`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `differential_viewtime` ( + `viewerPHID` varchar(64) NOT NULL, + `objectPHID` varchar(64) NOT NULL, + `viewTime` int(10) unsigned NOT NULL, + PRIMARY KEY (`viewerPHID`,`objectPHID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `differential_viewtime` +-- + +LOCK TABLES `differential_viewtime` WRITE; +/*!40000 ALTER TABLE `differential_viewtime` DISABLE KEYS */; +/*!40000 ALTER TABLE `differential_viewtime` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Current Database: `phabricator_directory` +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_directory` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_directory`; + +-- +-- Table structure for table `directory_category` +-- + +DROP TABLE IF EXISTS `directory_category`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `directory_category` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `sequence` int(10) unsigned NOT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `directory_category` +-- + +LOCK TABLES `directory_category` WRITE; +/*!40000 ALTER TABLE `directory_category` DISABLE KEYS */; +INSERT INTO `directory_category` VALUES (2,'Documentation',9000,1295318729,1304349639),(4,'Workflow',0,1295321164,1304349630),(5,'Utilities',100,1295321217,1295321217),(6,'Internals',2000,1295888559,1295888569); +/*!40000 ALTER TABLE `directory_category` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `directory_item` +-- + +DROP TABLE IF EXISTS `directory_item`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `directory_item` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `description` text NOT NULL, + `href` varchar(255) NOT NULL, + `categoryID` int(10) unsigned NOT NULL, + `sequence` int(10) unsigned NOT NULL, + `imagePHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=32 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `directory_item` +-- + +LOCK TABLES `directory_item` WRITE; +/*!40000 ALTER TABLE `directory_item` DISABLE KEYS */; +INSERT INTO `directory_item` VALUES (1,'Repositories','Configure tracked source code repositories.','/repository/',6,500,NULL,1304349659,1304349947),(5,'libphutil Docs','Soothing prose; seductive poetry.','http://phabricator.com/docs/libphutil/',2,300,'',1295312416,1304349695),(12,'Files','Blob store for Pokemon pictures.','/file/',5,100,'',1295321244,1304349844),(13,'Differential','Make code.','/differential/',4,100,'',1295321263,1304350150),(14,'PHID Manager','Manage PHIDs.','/phid/',6,400,'',1295762315,1304349943),(15,'People','User directory. Sort of a social utility.','/people/',5,400,'',1295830520,1304349833),(16,'Conduit Console','Web console for Conduit API.','/conduit/',6,100,'',1295888593,1304349910),(17,'MetaMTA','Yo dawg, we heard you like MTAs.','/mail/',6,300,'',1296006261,1304349936),(18,'XHProf','PHP profiling tool.','/xhprof/',6,600,NULL,1296684238,1304349951),(20,'Maniphest','Do meta-work instead of work.','/maniphest/',4,300,NULL,1297190663,1304349876),(21,'Arcanist Docs','Words have never been so finely crafted.','http://phabricator.com/docs/arcanist/',2,200,NULL,1304349712,1304349712),(22,'Phabricator Ducks','Oops, that should say \"Docs\".','http://phabricator.com/docs/phabricator/',2,100,NULL,1304349728,1304349728),(23,'Javelin Docs','O, what noble scribe hath penned these words?','http://phabricator.com/docs/javelin/',2,400,NULL,1304349746,1304349746),(24,'UI Examples','A gallery of modern art.','/uiexample/',2,500,NULL,1304349763,1304349769),(25,'Diffusion','Look at code.','/diffusion/',4,200,NULL,1304349788,1304349873),(26,'Herald','Watch for danger.','/herald/',4,400,NULL,1304349817,1304349817),(30,'Preferences','You are a snowflake princess.','/preferences/',5,600,NULL,1304350225,1304350307),(27,'Owners','Adopt today!','/owners/',5,500,NULL,1304349896,1304349896),(28,'Daemon Console','Offline process management.','/daemon/',6,200,NULL,1304349927,1304349927),(29,'XHPAST','XHP AST generator.','/xhpast/',6,700,NULL,1304350140,1304350140),(31,'Project','Group stuff into big piles.','/project/',5,500,NULL,1304350290,1304350299); +/*!40000 ALTER TABLE `directory_item` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Current Database: `phabricator_draft` -- @@ -295,219 +584,13 @@ CREATE TABLE `draft` ( /*!40101 SET character_set_client = @saved_cs_client */; -- --- Current Database: `phabricator_file` +-- Dumping data for table `draft` -- -CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_file` /*!40100 DEFAULT CHARACTER SET latin1 */; - -USE `phabricator_file`; - --- --- Table structure for table `file` --- - -DROP TABLE IF EXISTS `file`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `file` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `name` varchar(255) DEFAULT NULL, - `mimeType` varchar(255) DEFAULT NULL, - `byteSize` bigint(20) unsigned NOT NULL, - `storageEngine` varchar(32) NOT NULL, - `storageFormat` varchar(32) NOT NULL, - `storageHandle` varchar(255) NOT NULL, - `dateCreated` int(10) unsigned NOT NULL, - `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Table structure for table `file_storageblob` --- - -DROP TABLE IF EXISTS `file_storageblob`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `file_storageblob` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `data` longblob NOT NULL, - `dateCreated` int(10) unsigned NOT NULL, - `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Current Database: `phabricator_metamta` --- - -CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_metamta` /*!40100 DEFAULT CHARACTER SET latin1 */; - -USE `phabricator_metamta`; - --- --- Table structure for table `metamta_mail` --- - -DROP TABLE IF EXISTS `metamta_mail`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `metamta_mail` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `parameters` longblob NOT NULL, - `status` varchar(255) NOT NULL, - `message` text, - `retryCount` int(10) unsigned NOT NULL, - `nextRetry` int(10) unsigned NOT NULL, - `relatedPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `dateCreated` int(10) unsigned NOT NULL, - `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Table structure for table `metamta_mailinglist` --- - -DROP TABLE IF EXISTS `metamta_mailinglist`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `metamta_mailinglist` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `name` varchar(255) NOT NULL, - `email` varchar(255) NOT NULL, - `uri` varchar(255) DEFAULT NULL, - `dateCreated` int(10) unsigned NOT NULL, - `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Current Database: `phabricator_phid` --- - -CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_phid` /*!40100 DEFAULT CHARACTER SET latin1 */; - -USE `phabricator_phid`; - --- --- Table structure for table `phid` --- - -DROP TABLE IF EXISTS `phid`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `phid` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `phidType` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `parentPHID` varchar(64) DEFAULT NULL, - `ownerPHID` varchar(64) DEFAULT NULL, - `dateCreated` int(10) unsigned NOT NULL, - `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `phid` (`phid`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Table structure for table `phid_type` --- - -DROP TABLE IF EXISTS `phid_type`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `phid_type` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `type` varchar(4) NOT NULL, - `name` varchar(255) NOT NULL, - `description` text, - `dateCreated` int(10) unsigned NOT NULL, - `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `type` (`type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Current Database: `phabricator_user` --- - -CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_user` /*!40100 DEFAULT CHARACTER SET latin1 */; - -USE `phabricator_user`; - --- --- Table structure for table `phabricator_session` --- - -DROP TABLE IF EXISTS `phabricator_session`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `phabricator_session` ( - `userPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `type` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `sessionKey` varchar(40) NOT NULL, - `sessionStart` int(10) unsigned NOT NULL, - PRIMARY KEY (`userPHID`,`type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Table structure for table `user` --- - -DROP TABLE IF EXISTS `user`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `user` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `userName` varchar(64) NOT NULL, - `realName` varchar(128) NOT NULL, - `email` varchar(255) NOT NULL, - `passwordSalt` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `passwordHash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `dateCreated` int(10) unsigned NOT NULL, - `dateModified` int(10) unsigned NOT NULL, - `facebookUID` bigint(20) unsigned DEFAULT NULL, - `profileImagePHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `consoleEnabled` tinyint(1) NOT NULL, - `consoleVisible` tinyint(1) NOT NULL, - `consoleTab` varchar(64) NOT NULL, - `conduitCertificate` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `userName` (`userName`), - UNIQUE KEY `email` (`email`), - UNIQUE KEY `facebookUID` (`facebookUID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Table structure for table `user_profile` --- - -DROP TABLE IF EXISTS `user_profile`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `user_profile` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `userPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `title` varchar(255) NOT NULL, - `blurb` text NOT NULL, - `profileImagePHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `dateCreated` int(10) unsigned NOT NULL, - `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `userPHID` (`userPHID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; +LOCK TABLES `draft` WRITE; +/*!40000 ALTER TABLE `draft` DISABLE KEYS */; +/*!40000 ALTER TABLE `draft` ENABLE KEYS */; +UNLOCK TABLES; -- -- Current Database: `phabricator_file` @@ -536,9 +619,43 @@ CREATE TABLE `file` ( `dateCreated` int(10) unsigned NOT NULL, `dateModified` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `file` +-- + +LOCK TABLES `file` WRITE; +/*!40000 ALTER TABLE `file` DISABLE KEYS */; +INSERT INTO `file` VALUES (1,'PHID-FILE-4d61229816cfe6f2b2a3','avatar','image/png; charset=binary\n',959,'blob','raw','1',1304350408,1304350408); +/*!40000 ALTER TABLE `file` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `file_imagemacro` +-- + +DROP TABLE IF EXISTS `file_imagemacro`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `file_imagemacro` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `filePHID` varchar(64) NOT NULL, + `name` varchar(255) NOT NULL, + PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `file_imagemacro` +-- + +LOCK TABLES `file_imagemacro` WRITE; +/*!40000 ALTER TABLE `file_imagemacro` DISABLE KEYS */; +/*!40000 ALTER TABLE `file_imagemacro` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `file_storageblob` -- @@ -552,137 +669,143 @@ CREATE TABLE `file_storageblob` ( `dateCreated` int(10) unsigned NOT NULL, `dateModified` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- --- Current Database: `phabricator_repository` +-- Dumping data for table `file_storageblob` -- -CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_repository` /*!40100 DEFAULT CHARACTER SET latin1 */; - -USE `phabricator_repository`; +LOCK TABLES `file_storageblob` WRITE; +/*!40000 ALTER TABLE `file_storageblob` DISABLE KEYS */; +INSERT INTO `file_storageblob` VALUES (1,'PNG\r\n\Z\n\0\0\0\rIHDR\0\0\02\0\0\02\0\0\0]\0\0\0tRNS\0}\0\0C\"X\0\0tIDATxv@Ot%h4Q .,$NNnY3S/Gߵtn~.c[!X0^Pok<ζ)a(Ѱ{Ptiny_D,z#)Xxw^L0XgZvXAKU\nrUfQ}5T& #bMJ{] CX8ݹ=7Dѵ>QwMN7E`ЌЛ Z ]Qr3B7aG\"߈yU%UyQ&4aik`\nN\"VRjdm4tB\Z]?xT\0W!HB|ɿ&~6HɂI1ov牵c\r1yw,Ţ7ratpT Hiy Ν)Swz^9Dο&ˇ\nwfa~ wACR3+\rkk \nE6)̙)Ȓoh}:Q0 {L#p Yv.mgxQEɋC{K1o;|x%5aч11Sź>c3A9B! #\"<RECTT>BC&{wx>\0\r1(+,\'CWqJ~\0\0\0UH5\0\0\0\0IENDB`',1304350408,1304350408); +/*!40000 ALTER TABLE `file_storageblob` ENABLE KEYS */; +UNLOCK TABLES; -- --- Table structure for table `repository` +-- Current Database: `phabricator_herald` -- -DROP TABLE IF EXISTS `repository`; +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_herald` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_herald`; + +-- +-- Table structure for table `herald_action` +-- + +DROP TABLE IF EXISTS `herald_action`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE `repository` ( +CREATE TABLE `herald_action` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `name` varchar(255) NOT NULL, - `callsign` varchar(32) NOT NULL, - `description` text, - `versionControlSystem` varchar(32) NOT NULL, - `details` longblob NOT NULL, - `dateCreated` int(10) unsigned NOT NULL, - `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `callsign` (`callsign`), - UNIQUE KEY `phid` (`phid`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Table structure for table `repository_githubnotification` --- - -DROP TABLE IF EXISTS `repository_githubnotification`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `repository_githubnotification` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `repositoryPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `remoteAddress` varchar(32) NOT NULL, - `payload` longblob NOT NULL, - `dateCreated` int(10) unsigned NOT NULL, - `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`), - KEY `repositoryPHID` (`repositoryPHID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Current Database: `phabricator_search` --- - -CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_search` /*!40100 DEFAULT CHARACTER SET latin1 */; - -USE `phabricator_search`; - --- --- Table structure for table `search_document` --- - -DROP TABLE IF EXISTS `search_document`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `search_document` ( - `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `documentType` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `documentTitle` varchar(255) NOT NULL, - `documentCreated` int(10) unsigned NOT NULL, - `documentModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`phid`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Table structure for table `search_documentfield` --- - -DROP TABLE IF EXISTS `search_documentfield`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `search_documentfield` ( - `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `phidType` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `field` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `auxPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `corpus` text, - KEY `phid` (`phid`), - FULLTEXT KEY `corpus` (`corpus`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Table structure for table `search_documentrelationship` --- - -DROP TABLE IF EXISTS `search_documentrelationship`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `search_documentrelationship` ( - `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `relatedPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `relation` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `relatedType` varchar(4) NOT NULL, - `relatedTime` int(10) unsigned NOT NULL, - KEY `phid` (`phid`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Table structure for table `search_query` --- - -DROP TABLE IF EXISTS `search_query`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `search_query` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `authorPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `query` varchar(255) NOT NULL, - `parameters` text NOT NULL, - `dateCreated` int(10) unsigned NOT NULL, - `dateModified` int(10) unsigned NOT NULL, + `ruleID` int(10) unsigned NOT NULL, + `action` varchar(255) NOT NULL, + `target` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `herald_action` +-- + +LOCK TABLES `herald_action` WRITE; +/*!40000 ALTER TABLE `herald_action` DISABLE KEYS */; +/*!40000 ALTER TABLE `herald_action` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `herald_condition` +-- + +DROP TABLE IF EXISTS `herald_condition`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `herald_condition` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `ruleID` int(10) unsigned NOT NULL, + `fieldName` varchar(255) NOT NULL, + `fieldCondition` varchar(255) NOT NULL, + `value` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `herald_condition` +-- + +LOCK TABLES `herald_condition` WRITE; +/*!40000 ALTER TABLE `herald_condition` DISABLE KEYS */; +/*!40000 ALTER TABLE `herald_condition` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `herald_rule` +-- + +DROP TABLE IF EXISTS `herald_rule`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `herald_rule` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `authorPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `contentType` varchar(255) NOT NULL, + `mustMatchAll` tinyint(1) NOT NULL, + `configVersion` int(10) unsigned NOT NULL DEFAULT '1', + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `authorPHID` (`authorPHID`,`name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `herald_rule` +-- + +LOCK TABLES `herald_rule` WRITE; +/*!40000 ALTER TABLE `herald_rule` DISABLE KEYS */; +/*!40000 ALTER TABLE `herald_rule` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `herald_transcript` +-- + +DROP TABLE IF EXISTS `herald_transcript`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `herald_transcript` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `time` int(10) unsigned NOT NULL, + `host` varchar(255) NOT NULL, + `psth` varchar(255) NOT NULL, + `duration` float NOT NULL, + `objectPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `dryRun` tinyint(1) NOT NULL, + `objectTranscript` longblob NOT NULL, + `ruleTranscripts` longblob NOT NULL, + `conditionTranscripts` longblob NOT NULL, + `applyTranscripts` longblob NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `phid` (`phid`), + KEY `objectPHID` (`objectPHID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `herald_transcript` +-- + +LOCK TABLES `herald_transcript` WRITE; +/*!40000 ALTER TABLE `herald_transcript` DISABLE KEYS */; +/*!40000 ALTER TABLE `herald_transcript` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Current Database: `phabricator_maniphest` -- @@ -711,10 +834,20 @@ CREATE TABLE `maniphest_task` ( `description` longtext NOT NULL, `dateCreated` int(10) unsigned NOT NULL, `dateModified` int(10) unsigned NOT NULL, + `projectPHIDs` longblob NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `maniphest_task` +-- + +LOCK TABLES `maniphest_task` WRITE; +/*!40000 ALTER TABLE `maniphest_task` DISABLE KEYS */; +/*!40000 ALTER TABLE `maniphest_task` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `maniphest_touch` -- @@ -730,6 +863,15 @@ CREATE TABLE `maniphest_touch` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `maniphest_touch` +-- + +LOCK TABLES `maniphest_touch` WRITE; +/*!40000 ALTER TABLE `maniphest_touch` DISABLE KEYS */; +/*!40000 ALTER TABLE `maniphest_touch` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `maniphest_transaction` -- @@ -751,98 +893,1100 @@ CREATE TABLE `maniphest_transaction` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - --- Dump completed on 2011-02-20 13:25:52 --- MySQL dump 10.13 Distrib 5.5.8, for osx10.6 (i386) --- --- Host: localhost Database: phabricator_directory --- ------------------------------------------------------ --- Server version 5.5.8 - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- --- Current Database: `phabricator_directory` +-- Dumping data for table `maniphest_transaction` -- -CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_directory` /*!40100 DEFAULT CHARACTER SET latin1 */; - -USE `phabricator_directory`; - --- --- Table structure for table `directory_category` --- - -DROP TABLE IF EXISTS `directory_category`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `directory_category` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `sequence` int(10) unsigned NOT NULL, - `dateCreated` int(10) unsigned NOT NULL, - `dateModified` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `directory_category` --- - -LOCK TABLES `directory_category` WRITE; -/*!40000 ALTER TABLE `directory_category` DISABLE KEYS */; -INSERT INTO `directory_category` VALUES (1,'Configuration',1000,1295321201,1295830501),(2,'Developer Documentation',9000,1295318729,1295318851),(4,'Engineering Workflow',0,1295321164,1295321209),(5,'Utilities',100,1295321217,1295321217),(6,'Internals',2000,1295888559,1295888569); -/*!40000 ALTER TABLE `directory_category` ENABLE KEYS */; +LOCK TABLES `maniphest_transaction` WRITE; +/*!40000 ALTER TABLE `maniphest_transaction` DISABLE KEYS */; +/*!40000 ALTER TABLE `maniphest_transaction` ENABLE KEYS */; UNLOCK TABLES; -- --- Table structure for table `directory_item` +-- Current Database: `phabricator_meta_data` -- -DROP TABLE IF EXISTS `directory_item`; +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_meta_data` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_meta_data`; + +-- +-- Table structure for table `schema_version` +-- + +DROP TABLE IF EXISTS `schema_version`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE `directory_item` ( +CREATE TABLE `schema_version` ( + `version` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `schema_version` +-- + +LOCK TABLES `schema_version` WRITE; +/*!40000 ALTER TABLE `schema_version` DISABLE KEYS */; +INSERT INTO `schema_version` VALUES (33); +/*!40000 ALTER TABLE `schema_version` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Current Database: `phabricator_metamta` +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_metamta` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_metamta`; + +-- +-- Table structure for table `metamta_mail` +-- + +DROP TABLE IF EXISTS `metamta_mail`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `metamta_mail` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `parameters` longblob NOT NULL, + `status` varchar(255) NOT NULL, + `message` text, + `retryCount` int(10) unsigned NOT NULL, + `nextRetry` int(10) unsigned NOT NULL, + `relatedPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + KEY `status` (`status`,`nextRetry`), + KEY `relatedPHID` (`relatedPHID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `metamta_mail` +-- + +LOCK TABLES `metamta_mail` WRITE; +/*!40000 ALTER TABLE `metamta_mail` DISABLE KEYS */; +/*!40000 ALTER TABLE `metamta_mail` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `metamta_mailinglist` +-- + +DROP TABLE IF EXISTS `metamta_mailinglist`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `metamta_mailinglist` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `name` varchar(255) NOT NULL, + `email` varchar(255) NOT NULL, + `uri` varchar(255) DEFAULT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `phid` (`phid`), + UNIQUE KEY `email` (`email`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `metamta_mailinglist` +-- + +LOCK TABLES `metamta_mailinglist` WRITE; +/*!40000 ALTER TABLE `metamta_mailinglist` DISABLE KEYS */; +/*!40000 ALTER TABLE `metamta_mailinglist` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Current Database: `phabricator_owners` +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_owners` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_owners`; + +-- +-- Table structure for table `owners_owner` +-- + +DROP TABLE IF EXISTS `owners_owner`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `owners_owner` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `packageID` int(10) unsigned NOT NULL, + `userPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `packageID` (`packageID`,`userPHID`), + KEY `userPHID` (`userPHID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `owners_owner` +-- + +LOCK TABLES `owners_owner` WRITE; +/*!40000 ALTER TABLE `owners_owner` DISABLE KEYS */; +/*!40000 ALTER TABLE `owners_owner` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `owners_package` +-- + +DROP TABLE IF EXISTS `owners_package`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `owners_package` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `name` varchar(255) NOT NULL, `description` text NOT NULL, - `href` varchar(255) NOT NULL, - `categoryID` int(10) unsigned NOT NULL, - `sequence` int(10) unsigned NOT NULL, - `imagePHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `primaryOwnerPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `phid` (`phid`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `owners_package` +-- + +LOCK TABLES `owners_package` WRITE; +/*!40000 ALTER TABLE `owners_package` DISABLE KEYS */; +/*!40000 ALTER TABLE `owners_package` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `owners_path` +-- + +DROP TABLE IF EXISTS `owners_path`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `owners_path` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `packageID` int(10) unsigned NOT NULL, + `repositoryPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `path` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `packageID` (`packageID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `owners_path` +-- + +LOCK TABLES `owners_path` WRITE; +/*!40000 ALTER TABLE `owners_path` DISABLE KEYS */; +/*!40000 ALTER TABLE `owners_path` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Current Database: `phabricator_phid` +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_phid` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_phid`; + +-- +-- Table structure for table `phid` +-- + +DROP TABLE IF EXISTS `phid`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `phid` ( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `phidType` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `parentPHID` varchar(64) DEFAULT NULL, + `ownerPHID` varchar(64) DEFAULT NULL, `dateCreated` int(10) unsigned NOT NULL, `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `phid` (`phid`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `phid` +-- + +LOCK TABLES `phid` WRITE; +/*!40000 ALTER TABLE `phid` DISABLE KEYS */; +INSERT INTO `phid` VALUES (1,'PHID-FILE-4d61229816cfe6f2b2a3','FILE',NULL,NULL,1304350408,1304350408); +/*!40000 ALTER TABLE `phid` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Current Database: `phabricator_project` +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_project` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_project`; + +-- +-- Table structure for table `project` +-- + +DROP TABLE IF EXISTS `project`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `project` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `authorPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `project` +-- + +LOCK TABLES `project` WRITE; +/*!40000 ALTER TABLE `project` DISABLE KEYS */; +/*!40000 ALTER TABLE `project` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `project_affiliation` +-- + +DROP TABLE IF EXISTS `project_affiliation`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `project_affiliation` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `projectPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `userPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `role` varchar(255) NOT NULL, + `status` varchar(32) NOT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `projectPHID` (`projectPHID`,`userPHID`), + KEY `userPHID` (`userPHID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `project_affiliation` +-- + +LOCK TABLES `project_affiliation` WRITE; +/*!40000 ALTER TABLE `project_affiliation` DISABLE KEYS */; +/*!40000 ALTER TABLE `project_affiliation` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `project_profile` +-- + +DROP TABLE IF EXISTS `project_profile`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `project_profile` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `projectPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `blurb` longtext NOT NULL, + `profileImagePHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `projectPHID` (`projectPHID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `project_profile` +-- + +LOCK TABLES `project_profile` WRITE; +/*!40000 ALTER TABLE `project_profile` DISABLE KEYS */; +/*!40000 ALTER TABLE `project_profile` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Current Database: `phabricator_repository` +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_repository` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_repository`; + +-- +-- Table structure for table `repository` +-- + +DROP TABLE IF EXISTS `repository`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `repository` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `name` varchar(255) NOT NULL, + `callsign` varchar(32) NOT NULL, + `description` text, + `versionControlSystem` varchar(32) NOT NULL, + `details` longblob NOT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + `uuid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `callsign` (`callsign`), + UNIQUE KEY `phid` (`phid`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `repository` +-- + +LOCK TABLES `repository` WRITE; +/*!40000 ALTER TABLE `repository` DISABLE KEYS */; +/*!40000 ALTER TABLE `repository` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `repository_arcanistproject` +-- + +DROP TABLE IF EXISTS `repository_arcanistproject`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `repository_arcanistproject` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `name` varchar(255) NOT NULL, + `repositoryID` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `phid` (`phid`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `repository_arcanistproject` +-- + +LOCK TABLES `repository_arcanistproject` WRITE; +/*!40000 ALTER TABLE `repository_arcanistproject` DISABLE KEYS */; +/*!40000 ALTER TABLE `repository_arcanistproject` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `repository_badcommit` +-- + +DROP TABLE IF EXISTS `repository_badcommit`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `repository_badcommit` ( + `fullCommitName` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `description` longblob NOT NULL, + PRIMARY KEY (`fullCommitName`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `repository_badcommit` +-- + +LOCK TABLES `repository_badcommit` WRITE; +/*!40000 ALTER TABLE `repository_badcommit` DISABLE KEYS */; +/*!40000 ALTER TABLE `repository_badcommit` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `repository_commit` +-- + +DROP TABLE IF EXISTS `repository_commit`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `repository_commit` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `repositoryID` int(10) unsigned NOT NULL, + `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `commitIdentifier` varchar(40) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `epoch` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `phid` (`phid`), + UNIQUE KEY `repositoryID` (`repositoryID`,`commitIdentifier`(16)), + KEY `repositoryID_2` (`repositoryID`,`epoch`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `repository_commit` +-- + +LOCK TABLES `repository_commit` WRITE; +/*!40000 ALTER TABLE `repository_commit` DISABLE KEYS */; +/*!40000 ALTER TABLE `repository_commit` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `repository_commitdata` +-- + +DROP TABLE IF EXISTS `repository_commitdata`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `repository_commitdata` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `commitID` int(10) unsigned NOT NULL, + `authorName` varchar(255) NOT NULL, + `commitMessage` longblob NOT NULL, + `commitDetails` longblob NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `commitID` (`commitID`), + KEY `authorName` (`authorName`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `repository_commitdata` +-- + +LOCK TABLES `repository_commitdata` WRITE; +/*!40000 ALTER TABLE `repository_commitdata` DISABLE KEYS */; +/*!40000 ALTER TABLE `repository_commitdata` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `repository_filesystem` +-- + +DROP TABLE IF EXISTS `repository_filesystem`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `repository_filesystem` ( + `repositoryID` int(10) unsigned NOT NULL, + `parentID` int(10) unsigned NOT NULL, + `svnCommit` int(10) unsigned NOT NULL, + `pathID` int(10) unsigned NOT NULL, + `existed` tinyint(1) NOT NULL, + `fileType` int(10) unsigned NOT NULL, + PRIMARY KEY (`repositoryID`,`parentID`,`pathID`,`svnCommit`), + KEY `repositoryID` (`repositoryID`,`svnCommit`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `repository_filesystem` +-- + +LOCK TABLES `repository_filesystem` WRITE; +/*!40000 ALTER TABLE `repository_filesystem` DISABLE KEYS */; +/*!40000 ALTER TABLE `repository_filesystem` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `repository_githubnotification` +-- + +DROP TABLE IF EXISTS `repository_githubnotification`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `repository_githubnotification` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `repositoryPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `remoteAddress` varchar(32) NOT NULL, + `payload` longblob NOT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + KEY `repositoryPHID` (`repositoryPHID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `repository_githubnotification` +-- + +LOCK TABLES `repository_githubnotification` WRITE; +/*!40000 ALTER TABLE `repository_githubnotification` DISABLE KEYS */; +/*!40000 ALTER TABLE `repository_githubnotification` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `repository_path` +-- + +DROP TABLE IF EXISTS `repository_path`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `repository_path` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `path` varchar(512) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `path` (`path`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `repository_path` +-- + +LOCK TABLES `repository_path` WRITE; +/*!40000 ALTER TABLE `repository_path` DISABLE KEYS */; +/*!40000 ALTER TABLE `repository_path` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `repository_pathchange` +-- + +DROP TABLE IF EXISTS `repository_pathchange`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `repository_pathchange` ( + `repositoryID` int(10) unsigned NOT NULL, + `pathID` int(10) unsigned NOT NULL, + `commitID` int(10) unsigned NOT NULL, + `targetPathID` int(10) unsigned DEFAULT NULL, + `targetCommitID` int(10) unsigned DEFAULT NULL, + `changeType` int(10) unsigned NOT NULL, + `fileType` int(10) unsigned NOT NULL, + `isDirect` tinyint(1) NOT NULL, + `commitSequence` int(10) unsigned NOT NULL, + PRIMARY KEY (`commitID`,`pathID`), + KEY `repositoryID` (`repositoryID`,`pathID`,`commitSequence`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `repository_pathchange` +-- + +LOCK TABLES `repository_pathchange` WRITE; +/*!40000 ALTER TABLE `repository_pathchange` DISABLE KEYS */; +/*!40000 ALTER TABLE `repository_pathchange` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `repository_shortcut` +-- + +DROP TABLE IF EXISTS `repository_shortcut`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `repository_shortcut` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `href` varchar(255) NOT NULL, + `description` varchar(255) NOT NULL, + `sequence` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `repository_shortcut` +-- + +LOCK TABLES `repository_shortcut` WRITE; +/*!40000 ALTER TABLE `repository_shortcut` DISABLE KEYS */; +/*!40000 ALTER TABLE `repository_shortcut` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `repository_summary` +-- + +DROP TABLE IF EXISTS `repository_summary`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `repository_summary` ( + `repositoryID` int(10) unsigned NOT NULL, + `size` int(10) unsigned NOT NULL, + `lastCommitID` int(10) unsigned NOT NULL, + `epoch` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`repositoryID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `repository_summary` +-- + +LOCK TABLES `repository_summary` WRITE; +/*!40000 ALTER TABLE `repository_summary` DISABLE KEYS */; +/*!40000 ALTER TABLE `repository_summary` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Current Database: `phabricator_search` +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_search` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_search`; + +-- +-- Table structure for table `search_document` +-- + +DROP TABLE IF EXISTS `search_document`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `search_document` ( + `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `documentType` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `documentTitle` varchar(255) NOT NULL, + `documentCreated` int(10) unsigned NOT NULL, + `documentModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`phid`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `search_document` +-- + +LOCK TABLES `search_document` WRITE; +/*!40000 ALTER TABLE `search_document` DISABLE KEYS */; +/*!40000 ALTER TABLE `search_document` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `search_documentfield` +-- + +DROP TABLE IF EXISTS `search_documentfield`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `search_documentfield` ( + `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `phidType` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `field` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `auxPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `corpus` text, + KEY `phid` (`phid`), + FULLTEXT KEY `corpus` (`corpus`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- --- Dumping data for table `directory_item` +-- Dumping data for table `search_documentfield` -- -LOCK TABLES `directory_item` WRITE; -/*!40000 ALTER TABLE `directory_item` DISABLE KEYS */; -INSERT INTO `directory_item` VALUES (1,'Repositories','Configure tracked source code repositories.','/repository/',1,0,NULL,0,0),(5,'libphutil Docs','Developer documentation for libphutil.','http://phutil.com/libphutil/docs/',2,0,'',1295312416,1295320996),(12,'Files','Blob store for files.','/file/',5,0,'',1295321244,1295816742),(13,'Differential','Code review tool.','/differential/',4,0,'',1295321263,1295321263),(14,'PHID Manager','Manage PHIDs.','/phid/',6,0,'',1295762315,1295888577),(15,'People','User directory.','/people/',4,3000,'',1295830520,1295830528),(16,'Conduit Console','Web console for Conduit API.','/conduit/',6,0,'',1295888593,1295888593),(17,'MetaMTA','Yo dawg, we heard you like MTAs...','/mail/',6,0,'',1296006261,1296056065),(18,'XHProf','PHP profiling tool.','/xhprof/',6,0,NULL,1296684238,1296684238),(20,'Maniphest','Construct lists of lists.','/maniphest/',4,0,NULL,1297190663,1297190663); -/*!40000 ALTER TABLE `directory_item` ENABLE KEYS */; +LOCK TABLES `search_documentfield` WRITE; +/*!40000 ALTER TABLE `search_documentfield` DISABLE KEYS */; +/*!40000 ALTER TABLE `search_documentfield` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `search_documentrelationship` +-- + +DROP TABLE IF EXISTS `search_documentrelationship`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `search_documentrelationship` ( + `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `relatedPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `relation` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `relatedType` varchar(4) NOT NULL, + `relatedTime` int(10) unsigned NOT NULL, + KEY `phid` (`phid`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `search_documentrelationship` +-- + +LOCK TABLES `search_documentrelationship` WRITE; +/*!40000 ALTER TABLE `search_documentrelationship` DISABLE KEYS */; +/*!40000 ALTER TABLE `search_documentrelationship` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `search_query` +-- + +DROP TABLE IF EXISTS `search_query`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `search_query` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `authorPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `query` varchar(255) NOT NULL, + `parameters` text NOT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `search_query` +-- + +LOCK TABLES `search_query` WRITE; +/*!40000 ALTER TABLE `search_query` DISABLE KEYS */; +/*!40000 ALTER TABLE `search_query` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Current Database: `phabricator_timeline` +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_timeline` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_timeline`; + +-- +-- Table structure for table `timeline_cursor` +-- + +DROP TABLE IF EXISTS `timeline_cursor`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `timeline_cursor` ( + `name` varchar(255) NOT NULL, + `position` int(10) unsigned NOT NULL, + PRIMARY KEY (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `timeline_cursor` +-- + +LOCK TABLES `timeline_cursor` WRITE; +/*!40000 ALTER TABLE `timeline_cursor` DISABLE KEYS */; +INSERT INTO `timeline_cursor` VALUES ('cmittask',0); +/*!40000 ALTER TABLE `timeline_cursor` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `timeline_event` +-- + +DROP TABLE IF EXISTS `timeline_event`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `timeline_event` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `type` char(4) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `dataID` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `dataID` (`dataID`), + KEY `type` (`type`,`id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `timeline_event` +-- + +LOCK TABLES `timeline_event` WRITE; +/*!40000 ALTER TABLE `timeline_event` DISABLE KEYS */; +/*!40000 ALTER TABLE `timeline_event` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `timeline_eventdata` +-- + +DROP TABLE IF EXISTS `timeline_eventdata`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `timeline_eventdata` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `eventData` longblob NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `timeline_eventdata` +-- + +LOCK TABLES `timeline_eventdata` WRITE; +/*!40000 ALTER TABLE `timeline_eventdata` DISABLE KEYS */; +/*!40000 ALTER TABLE `timeline_eventdata` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Current Database: `phabricator_user` +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_user` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_user`; + +-- +-- Table structure for table `phabricator_session` +-- + +DROP TABLE IF EXISTS `phabricator_session`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `phabricator_session` ( + `userPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `type` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `sessionKey` varchar(40) NOT NULL, + `sessionStart` int(10) unsigned NOT NULL, + PRIMARY KEY (`userPHID`,`type`), + UNIQUE KEY `sessionKey` (`sessionKey`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `phabricator_session` +-- + +LOCK TABLES `phabricator_session` WRITE; +/*!40000 ALTER TABLE `phabricator_session` DISABLE KEYS */; +/*!40000 ALTER TABLE `phabricator_session` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `user` +-- + +DROP TABLE IF EXISTS `user`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `phid` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `userName` varchar(64) NOT NULL, + `realName` varchar(128) NOT NULL, + `email` varchar(255) NOT NULL, + `passwordSalt` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `passwordHash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + `profileImagePHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `consoleEnabled` tinyint(1) NOT NULL, + `consoleVisible` tinyint(1) NOT NULL, + `consoleTab` varchar(64) NOT NULL, + `conduitCertificate` varchar(255) NOT NULL, + `isSystemAgent` tinyint(1) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + UNIQUE KEY `userName` (`userName`), + UNIQUE KEY `email` (`email`), + UNIQUE KEY `phid` (`phid`), + KEY `realName` (`realName`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `user` +-- + +LOCK TABLES `user` WRITE; +/*!40000 ALTER TABLE `user` DISABLE KEYS */; +/*!40000 ALTER TABLE `user` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `user_oauthinfo` +-- + +DROP TABLE IF EXISTS `user_oauthinfo`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_oauthinfo` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `userID` int(10) unsigned NOT NULL, + `oauthProvider` varchar(255) NOT NULL, + `oauthUID` varchar(255) NOT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + `accountURI` varchar(255) DEFAULT NULL, + `accountName` varchar(255) DEFAULT NULL, + `token` varchar(255) DEFAULT NULL, + `tokenExpires` int(10) unsigned DEFAULT NULL, + `tokenScope` varchar(255) DEFAULT NULL, + `tokenStatus` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `userID` (`userID`,`oauthProvider`), + UNIQUE KEY `oauthProvider` (`oauthProvider`,`oauthUID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `user_oauthinfo` +-- + +LOCK TABLES `user_oauthinfo` WRITE; +/*!40000 ALTER TABLE `user_oauthinfo` DISABLE KEYS */; +/*!40000 ALTER TABLE `user_oauthinfo` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `user_preferences` +-- + +DROP TABLE IF EXISTS `user_preferences`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_preferences` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `userPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `preferences` longblob NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `userPHID` (`userPHID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `user_preferences` +-- + +LOCK TABLES `user_preferences` WRITE; +/*!40000 ALTER TABLE `user_preferences` DISABLE KEYS */; +/*!40000 ALTER TABLE `user_preferences` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `user_profile` +-- + +DROP TABLE IF EXISTS `user_profile`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_profile` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `userPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `title` varchar(255) NOT NULL, + `blurb` text NOT NULL, + `profileImagePHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `userPHID` (`userPHID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `user_profile` +-- + +LOCK TABLES `user_profile` WRITE; +/*!40000 ALTER TABLE `user_profile` DISABLE KEYS */; +/*!40000 ALTER TABLE `user_profile` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Current Database: `phabricator_worker` +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_worker` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_worker`; + +-- +-- Table structure for table `worker_task` +-- + +DROP TABLE IF EXISTS `worker_task`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `worker_task` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `taskClass` varchar(255) NOT NULL, + `leaseOwner` varchar(255) DEFAULT NULL, + `leaseExpires` int(10) unsigned DEFAULT NULL, + `failureCount` int(10) unsigned NOT NULL, + `dataID` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `dataID` (`dataID`), + KEY `taskClass` (`taskClass`), + KEY `leaseExpires` (`leaseExpires`), + KEY `leaseOwner` (`leaseOwner`(16)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `worker_task` +-- + +LOCK TABLES `worker_task` WRITE; +/*!40000 ALTER TABLE `worker_task` DISABLE KEYS */; +/*!40000 ALTER TABLE `worker_task` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `worker_taskdata` +-- + +DROP TABLE IF EXISTS `worker_taskdata`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `worker_taskdata` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `data` longblob NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `worker_taskdata` +-- + +LOCK TABLES `worker_taskdata` WRITE; +/*!40000 ALTER TABLE `worker_taskdata` DISABLE KEYS */; +/*!40000 ALTER TABLE `worker_taskdata` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Current Database: `phabricator_xhpastview` +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phabricator_xhpastview` /*!40100 DEFAULT CHARACTER SET latin1 */; + +USE `phabricator_xhpastview`; + +-- +-- Table structure for table `xhpastview_parsetree` +-- + +DROP TABLE IF EXISTS `xhpastview_parsetree`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `xhpastview_parsetree` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `authorPHID` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `input` longblob NOT NULL, + `stdout` longblob NOT NULL, + `dateCreated` int(10) unsigned NOT NULL, + `dateModified` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `xhpastview_parsetree` +-- + +LOCK TABLES `xhpastview_parsetree` WRITE; +/*!40000 ALTER TABLE `xhpastview_parsetree` DISABLE KEYS */; +/*!40000 ALTER TABLE `xhpastview_parsetree` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; @@ -854,4 +1998,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2011-02-20 13:25:52 +-- Dump completed on 2011-05-02 8:36:07 diff --git a/src/docs/upgrade_schema.diviner b/src/docs/upgrade_schema.diviner index 304a79f9a5..80200d4510 100644 --- a/src/docs/upgrade_schema.diviner +++ b/src/docs/upgrade_schema.diviner @@ -11,19 +11,11 @@ configured your Phabricator environment. If you haven't, see = Loading patches = -If you are doing this for the first time to a freshly installed MySQL database, -run the following command: - - PHABRICATOR_ENV= path/to/phabricator/scripts/sql/upgrade_schema.php -v 0 - -This will install all the patches starting from 0. Running this script will -store the information of the latest installed patch in the Phabricator database. -Next time you want to upgrade your schema, just run: +To upgrade your database schema to the latest version, just run this command: PHABRICATOR_ENV= path/to/phabricator/scripts/sql/upgrade_schema.php -This will install all the patches that are new since the last time you ran -this script. +This will install all the patches that are new since you installed, or since the last time you ran this script. If your configuration uses an unprivileged user to connect to the database, you may have to override the default user so the schema changes can be applied with @@ -35,4 +27,4 @@ If you need to upgrade the schema starting from a specific patch, just run: PHABRICATOR_ENV= path/to/phabricator/scripts/sql/upgrade_schema.php -v -However, this isn't usually needed. +However, this isn't usually needed and could be dangerous!