1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-16 03:42:41 +01:00
phorge-phorge/resources/sql/patches/072.blamerevert.sql

21 lines
746 B
MySQL
Raw Normal View History

INSERT INTO {$NAMESPACE}_differential.differential_auxiliaryfield
(revisionPHID, name, value, dateCreated, dateModified)
SELECT phid, 'phabricator:blame-revision', blameRevision,
dateCreated, dateModified
FROM {$NAMESPACE}_differential.differential_revision
WHERE blameRevision != '';
ALTER TABLE {$NAMESPACE}_differential.differential_revision
DROP blameRevision;
INSERT INTO {$NAMESPACE}_differential.differential_auxiliaryfield
(revisionPHID, name, value, dateCreated, dateModified)
SELECT phid, 'phabricator:revert-plan', revertPlan,
dateCreated, dateModified
FROM {$NAMESPACE}_differential.differential_revision
WHERE revertPlan != '';
ALTER TABLE {$NAMESPACE}_differential.differential_revision
DROP revertPlan;