1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 16:22:43 +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:
vrana 2012-08-15 17:32:43 -07:00
parent fbf8328d96
commit f770900983
2 changed files with 14 additions and 0 deletions

View 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;

View file

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