2013010200-1.9.0_dev-river_target_guid-66cbcae057cfa3ad.php 471 B

123456789101112131415
  1. <?php
  2. /**
  3. * Elgg 1.9.0-dev upgrade 2013010200
  4. * river_target_guid
  5. *
  6. * Adds target_guid field to river table so river items can be saved like
  7. * "Lisa (subject) posted (action) a comment (object) on John's blog (target)".
  8. */
  9. $db_prefix = elgg_get_config('dbprefix');
  10. $q1 = "ALTER TABLE {$db_prefix}river ADD target_guid INT(11) NOT NULL AFTER object_guid";
  11. update_data($q1);
  12. $q2 = "ALTER TABLE {$db_prefix}river ADD KEY target_guid (target_guid)";
  13. update_data($q2);