1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00
phorge-phorge/resources/sql/patches/20130310.xactionmeta.sql
epriestley 696498934c Support edge transactions in ApplicationTransactions
Summary: Fixes T2655. Adds generic support for edge edits (e.g., membership or attached objects).

Test Plan: See next diff.

Reviewers: chad, btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2655

Differential Revision: https://secure.phabricator.com/D5434
2013-03-28 08:34:34 -07:00

24 lines
999 B
SQL

ALTER TABLE `{$NAMESPACE}_file`.`macro_transaction`
ADD metadata LONGTEXT NOT NULL COLLATE utf8_bin;
UPDATE `{$NAMESPACE}_file`.macro_transaction SET metadata = '{}'
WHERE metadata = '';
ALTER TABLE `{$NAMESPACE}_pholio`.`pholio_transaction`
ADD metadata LONGTEXT NOT NULL COLLATE utf8_bin;
UPDATE `{$NAMESPACE}_pholio`.pholio_transaction SET metadata = '{}'
WHERE metadata = '';
ALTER TABLE `{$NAMESPACE}_config`.`config_transaction`
ADD metadata LONGTEXT NOT NULL COLLATE utf8_bin;
UPDATE `{$NAMESPACE}_config`.config_transaction SET metadata = '{}'
WHERE metadata = '';
ALTER TABLE `{$NAMESPACE}_conpherence`.`conpherence_transaction`
ADD metadata LONGTEXT NOT NULL COLLATE utf8_bin;
UPDATE `{$NAMESPACE}_conpherence`.conpherence_transaction SET metadata = '{}'
WHERE metadata = '';
ALTER TABLE `{$NAMESPACE}_phlux`.`phlux_transaction`
ADD metadata LONGTEXT NOT NULL COLLATE utf8_bin;
UPDATE `{$NAMESPACE}_phlux`.phlux_transaction SET metadata = '{}'
WHERE metadata = '';