upgrade_tables_mysql_4_1_2+.sql 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. -- -------------------------------------------------------------
  2. -- SQL Commands to upgrade pmadb for normal phpMyAdmin operation
  3. -- with MySQL 4.1.2 and above.
  4. --
  5. -- This file is meant for use with MySQL 4.1.2 and above!
  6. -- For older MySQL releases, please use create_tables.sql
  7. --
  8. -- If you are running one MySQL 4.1.0 or 4.1.1, please create the tables using
  9. -- create_tables.sql, then use this script.
  10. --
  11. -- Please don't forget to set up the tablenames in config.inc.php
  12. --
  13. -- --------------------------------------------------------
  14. --
  15. -- Database : `phpmyadmin`
  16. --
  17. ALTER DATABASE `phpmyadmin`
  18. DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
  19. USE phpmyadmin;
  20. -- --------------------------------------------------------
  21. --
  22. -- Table structure for table `pma__bookmark`
  23. --
  24. ALTER TABLE `pma__bookmark`
  25. DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
  26. ALTER TABLE `pma__bookmark`
  27. CHANGE `dbase` `dbase` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  28. ALTER TABLE `pma__bookmark`
  29. CHANGE `user` `user` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  30. ALTER TABLE `pma__bookmark`
  31. CHANGE `label` `label` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';
  32. ALTER TABLE `pma__bookmark`
  33. CHANGE `query` `query` TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL;
  34. -- --------------------------------------------------------
  35. --
  36. -- Table structure for table `pma__column_info`
  37. --
  38. ALTER TABLE `pma__column_info`
  39. DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
  40. ALTER TABLE `pma__column_info`
  41. CHANGE `db_name` `db_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  42. ALTER TABLE `pma__column_info`
  43. CHANGE `table_name` `table_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  44. ALTER TABLE `pma__column_info`
  45. CHANGE `column_name` `column_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  46. ALTER TABLE `pma__column_info`
  47. CHANGE `comment` `comment` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';
  48. ALTER TABLE `pma__column_info`
  49. CHANGE `mimetype` `mimetype` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';
  50. ALTER TABLE `pma__column_info`
  51. CHANGE `transformation` `transformation` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  52. ALTER TABLE `pma__column_info`
  53. CHANGE `transformation_options` `transformation_options` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  54. -- --------------------------------------------------------
  55. --
  56. -- Table structure for table `pma__history`
  57. --
  58. ALTER TABLE `pma__history`
  59. DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
  60. ALTER TABLE `pma__history`
  61. CHANGE `username` `username` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  62. ALTER TABLE `pma__history`
  63. CHANGE `db` `db` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  64. ALTER TABLE `pma__history`
  65. CHANGE `table` `table` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  66. ALTER TABLE `pma__history`
  67. CHANGE `sqlquery` `sqlquery` TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL;
  68. -- --------------------------------------------------------
  69. --
  70. -- Table structure for table `pma__pdf_pages`
  71. --
  72. ALTER TABLE `pma__pdf_pages`
  73. DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
  74. ALTER TABLE `pma__pdf_pages`
  75. CHANGE `db_name` `db_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  76. ALTER TABLE `pma__pdf_pages`
  77. CHANGE `page_descr` `page_descr` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default '';
  78. -- --------------------------------------------------------
  79. --
  80. -- Table structure for table `pma__relation`
  81. --
  82. ALTER TABLE `pma__relation`
  83. DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
  84. ALTER TABLE `pma__relation`
  85. CHANGE `master_db` `master_db` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  86. ALTER TABLE `pma__relation`
  87. CHANGE `master_table` `master_table` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  88. ALTER TABLE `pma__relation`
  89. CHANGE `master_field` `master_field` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  90. ALTER TABLE `pma__relation`
  91. CHANGE `foreign_db` `foreign_db` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  92. ALTER TABLE `pma__relation`
  93. CHANGE `foreign_table` `foreign_table` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  94. ALTER TABLE `pma__relation`
  95. CHANGE `foreign_field` `foreign_field` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  96. -- --------------------------------------------------------
  97. --
  98. -- Table structure for table `pma__table_coords`
  99. --
  100. ALTER TABLE `pma__table_coords`
  101. DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
  102. ALTER TABLE `pma__table_coords`
  103. CHANGE `db_name` `db_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  104. ALTER TABLE `pma__table_coords`
  105. CHANGE `table_name` `table_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  106. -- --------------------------------------------------------
  107. --
  108. -- Table structure for table `pma__table_info`
  109. --
  110. ALTER TABLE `pma__table_info`
  111. DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
  112. ALTER TABLE `pma__table_info`
  113. CHANGE `db_name` `db_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  114. ALTER TABLE `pma__table_info`
  115. CHANGE `table_name` `table_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
  116. ALTER TABLE `pma__table_info`
  117. CHANGE `display_field` `display_field` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';