1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 02:32:42 +01:00
phorge-phorge/resources/sql/patches/20130507.releephrqsimplifycols.sql
Edward Speyer 5b2fc6a184 Simplify ReleephRequest schema
Summary:
Removing a bunch of cache-style columns from `ReleephRequest`, where it's actually much easier to just load the information at runtime.

This makes sense for migrating to `PhabricatorApplicationTransactions`, where each xaction changes one aspect of a `ReleephRequest` at a time (rather than multiple columns at once.)

Test Plan: Request something, run `arc releeph` and watch the picks, pass on some RQs, run `arc releeph` and watch the reverts.

Reviewers: wez, epriestley

Reviewed By: epriestley

CC: epriestley, aran

Maniphest Tasks: T2720

Differential Revision: https://secure.phabricator.com/D5851
2013-05-08 10:27:20 +01:00

8 lines
312 B
SQL

ALTER TABLE {$NAMESPACE}_releeph.releeph_request
DROP COLUMN requestCommitIdentifier,
DROP COLUMN requestCommitOrdinal,
DROP COLUMN status,
DROP COLUMN committedByUserPHID,
DROP KEY `requestIdentifierBranch`,
ADD CONSTRAINT
UNIQUE KEY `requestIdentifierBranch` (`requestCommitPHID`, `branchID`);