1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-27 16:00:59 +01:00
phorge-phorge/resources/sql/autopatches/20141119.commitpedge.sql
Bob Trahan a414fc497f Diffusion - make projects work properly with commits
Summary: Fixes T3189. Now if you say #projects in a commit message they will associate nicely with the commit. Also we record transactions about all this project editing fun.

Test Plan: tested migration by associating some projects with commits and verifying they still showed up post migration. tested adding / removing projects by doing so from the UI, noting transactions written nicely as well

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Projects: #projects

Maniphest Tasks: T3189

Differential Revision: https://secure.phabricator.com/D10877
2014-11-19 14:43:59 -08:00

11 lines
355 B
SQL

INSERT IGNORE INTO {$NAMESPACE}_repository.edge
(src, type, dst, dateCreated, seq)
SELECT src, 41, dst, dateCreated, seq
FROM {$NAMESPACE}_repository.edge
WHERE type = 15;
INSERT IGNORE INTO {$NAMESPACE}_project.edge
(src, type, dst, dateCreated, seq)
SELECT src, 42, dst, dateCreated, seq
FROM {$NAMESPACE}_project.edge
WHERE type = 16;