1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 23:32:40 +01:00
phorge-phorge/resources/sql/patches/20130403.conpherencecache.sql
Bob Trahan 754705df4e Conpherence - get back-end prepped for loading less transactions all the time
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
2013-04-04 16:57:38 -07:00

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;