mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 19:22:42 +01:00
Save edge type as number
Summary: We use numbers here and I see no reason for strings. Test Plan: $ bin/storage upgrade Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3303
This commit is contained in:
parent
fbf8328d96
commit
f770900983
2 changed files with 14 additions and 0 deletions
10
resources/sql/patches/edgetype.sql
Normal file
10
resources/sql/patches/edgetype.sql
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
ALTER TABLE {$NAMESPACE}_phame.edge MODIFY type int unsigned NOT NULL;
|
||||||
|
ALTER TABLE {$NAMESPACE}_maniphest.edge MODIFY type int unsigned NOT NULL;
|
||||||
|
ALTER TABLE {$NAMESPACE}_repository.edge MODIFY type int unsigned NOT NULL;
|
||||||
|
ALTER TABLE {$NAMESPACE}_differential.edge MODIFY type int unsigned NOT NULL;
|
||||||
|
ALTER TABLE {$NAMESPACE}_file.edge MODIFY type int unsigned NOT NULL;
|
||||||
|
ALTER TABLE {$NAMESPACE}_user.edge MODIFY type int unsigned NOT NULL;
|
||||||
|
ALTER TABLE {$NAMESPACE}_project.edge MODIFY type int unsigned NOT NULL;
|
||||||
|
ALTER TABLE {$NAMESPACE}_metamta.edge MODIFY type int unsigned NOT NULL;
|
||||||
|
ALTER TABLE {$NAMESPACE}_harbormaster.edge MODIFY type int unsigned NOT NULL;
|
||||||
|
ALTER TABLE {$NAMESPACE}_ponder.edge MODIFY type int unsigned NOT NULL;
|
|
@ -968,6 +968,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
|
||||||
'type' => 'sql',
|
'type' => 'sql',
|
||||||
'name' => $this->getPatchPath('daemonstatuskey.sql'),
|
'name' => $this->getPatchPath('daemonstatuskey.sql'),
|
||||||
),
|
),
|
||||||
|
'edgetype.sql' => array(
|
||||||
|
'type' => 'sql',
|
||||||
|
'name' => $this->getPatchPath('edgetype.sql'),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue