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:
parent
251438b2c2
commit
bcb9de4ea1
3 changed files with 8 additions and 0 deletions
3
resources/sql/patches/symbolcontexts.sql
Normal file
3
resources/sql/patches/symbolcontexts.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE {$NAMESPACE}_repository.repository_symbol
|
||||
ADD symbolContext varchar(128) COLLATE utf8_general_ci NOT NULL DEFAULT ''
|
||||
AFTER arcanistProjectID;
|
|
@ -27,6 +27,7 @@
|
|||
final class PhabricatorRepositorySymbol extends PhabricatorRepositoryDAO {
|
||||
|
||||
protected $arcanistProjectID;
|
||||
protected $symbolContext;
|
||||
protected $symbolName;
|
||||
protected $symbolType;
|
||||
protected $symbolLanguage;
|
||||
|
|
|
@ -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'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue