1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 16:30:59 +01:00

Add a context field to symbol objects

Summary:
See T1602.

This is just the minimal functional patch; the scripts will continue
working because of the `DEFAULT ''`.

Test Plan:
Can't fully test this until I get more code working, but
nothing broke horribly yet.

Reviewers: epriestley

Reviewed By: epriestley

CC: nh, aran, Korvin

Maniphest Tasks: T1602

Differential Revision: https://secure.phabricator.com/D3147
This commit is contained in:
Alan Huang 2012-08-06 12:20:45 -07:00
parent 251438b2c2
commit bcb9de4ea1
3 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,3 @@
ALTER TABLE {$NAMESPACE}_repository.repository_symbol
ADD symbolContext varchar(128) COLLATE utf8_general_ci NOT NULL DEFAULT ''
AFTER arcanistProjectID;

View file

@ -27,6 +27,7 @@
final class PhabricatorRepositorySymbol extends PhabricatorRepositoryDAO {
protected $arcanistProjectID;
protected $symbolContext;
protected $symbolName;
protected $symbolType;
protected $symbolLanguage;

View file

@ -936,6 +936,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
'type' => 'sql',
'name' => $this->getPatchPath('daemonstatus.sql'),
),
'symbolcontexts.sql' => array(
'type' => 'sql',
'name' => $this->getPatchPath('symbolcontexts.sql'),
),
);
}