upgrade_column_info_4_3_0+.sql 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. -- -------------------------------------------------------------
  2. -- SQL Commands to upgrade pmadb.pma__column_info table
  3. -- for normal phpMyAdmin operation
  4. --
  5. -- This file is meant for use with phpMyAdmin 4.3.0 and above!
  6. -- For older releases, please use create_tables.sql
  7. --
  8. -- Please don't forget to set up the table names in config.inc.php
  9. --
  10. -- --------------------------------------------------------
  11. --
  12. -- Database : `phpmyadmin`
  13. --
  14. USE `phpmyadmin`;
  15. -- --------------------------------------------------------
  16. --
  17. -- Update table structure for table `pma__column_info`
  18. --
  19. UPDATE `pma__column_info`
  20. SET `mimetype` = REPLACE(`mimetype`, 'octet-stream', 'octetstream');
  21. UPDATE `pma__column_info`
  22. SET `transformation` = REPLACE(REPLACE(`transformation`, '__', '_'), 'inc.php', 'class.php');
  23. UPDATE `pma__column_info`
  24. SET `transformation` = ''
  25. WHERE `transformation` = '_';
  26. UPDATE `pma__column_info`
  27. SET `transformation` = CONCAT('output/', `transformation`)
  28. WHERE `transformation` IN (
  29. 'application_octetstream_download.class.php',
  30. 'application_octetstream_hex.class.php',
  31. 'image_jpeg_inline.class.php',
  32. 'image_jpeg_link.class.php',
  33. 'image_png_inline.class.php',
  34. 'text_plain_bool2text.class.php',
  35. 'text_plain_dateformat.class.php',
  36. 'text_plain_external.class.php',
  37. 'text_plain_formatted.class.php',
  38. 'text_plain_imagelink.class.php',
  39. 'text_plain_sql.class.php'
  40. );
  41. ALTER TABLE `pma__column_info`
  42. ADD `input_transformation` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  43. ADD `input_transformation_options` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';