2011031600-1.8_svn-datalist_grows_up-0b8aec5a55cc1e1c.php 500 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Elgg 1.8-svn upgrade 2011031600
  4. * datalist_grows_up
  5. *
  6. * Ups the varchar to 256 for the datalist and config table.
  7. *
  8. * Keeping it as a varchar because of the trailing whitespace trimming it apparently does:
  9. * http://dev.mysql.com/doc/refman/5.0/en/char.html
  10. */
  11. $db_prefix = elgg_get_config('dbprefix');
  12. $q = "ALTER TABLE {$db_prefix}datalists CHANGE name name VARCHAR(255)";
  13. update_data($q);
  14. $q = "ALTER TABLE {$db_prefix}config CHANGE name name VARCHAR(255)";
  15. update_data($q);