1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 09:48:47 +02:00
phorge-phorge/resources/sql/patches/042.commentmetadata.sql
epriestley 2e8990e9e0 Store metadata with Differential and Maniphest comments, and store added
reviewers as metadata

Summary:
The "Add reviewer" implementation is super lazy right now since I didn't want to
do a schema change. Man up and add a column. I also plan to store "via"
information here (e.g., via email or via mobile).

NOTE: This schema change may take a while since the comment table is pretty big
in Facebook's install.

This needs a little CSS work but I think it's reasonable for now.

Test Plan:
Made comments on revisions and tasks. Added reviewers to a revision, got linked
names instead of a blob of text.

Reviewed By: aran
Reviewers: tomo, jungejason, tuomaspelkonen, aran
Commenters: tomo
CC: aran, tomo, epriestley
Differential Revision: 394
2011-06-09 10:43:25 -07:00

11 lines
375 B
SQL

ALTER TABLE phabricator_differential.differential_comment
ADD metadata LONGBLOB NOT NULL;
UPDATE phabricator_differential.differential_comment
SET metadata = '{}' WHERE metadata = '';
ALTER TABLE phabricator_maniphest.maniphest_transaction
ADD metadata LONGBLOB NOT NULL;
UPDATE phabricator_maniphest.maniphest_transaction
SET metadata = '{}' WHERE metadata = '';