mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-09 16:32:39 +01:00
754705df4e
Summary: this just does the back-end migration. I realized that we don't need to keep track of cacheTitle and cachePhoto since those are based off recent participation handles and dynamic relative to who is viewing it. Also kept the "last seen phid" as I think that will be useful to have auto-scroll to where you last read. Ref T2867. Test Plan: did the migration. observed sensical values in the database. created a new conpherence - again sensical values. updated a conpherence - more sensical values. Reviewers: epriestley, chad Reviewed By: epriestley CC: aran, Korvin, AnhNhan Maniphest Tasks: T2867 Differential Revision: https://secure.phabricator.com/D5567
6 lines
329 B
SQL
6 lines
329 B
SQL
ALTER TABLE {$NAMESPACE}_conpherence.conpherence_thread
|
|
ADD recentParticipantPHIDs LONGTEXT NOT NULL COLLATE utf8_bin AFTER title,
|
|
ADD messageCount BIGINT UNSIGNED NOT NULL AFTER title;
|
|
|
|
ALTER TABLE {$NAMESPACE}_conpherence.conpherence_participant
|
|
ADD seenMessageCount BIGINT UNSIGNED NOT NULL AFTER behindTransactionPHID;
|