user settings fix
[openemr.git] / phpmyadmin / sql / upgrade_column_info_4_3_0+.sql
blobb5bdc0c1fe20a6d52aa45a42f6492f9ac14f463e
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 --
11 -- --------------------------------------------------------
14 -- Database : `phpmyadmin`
16 USE `phpmyadmin`;
18 -- --------------------------------------------------------
21 -- Update table structure for table `pma__column_info`
23 UPDATE `pma__column_info`
24   SET `mimetype` = REPLACE(`mimetype`, 'octet-stream', 'octetstream');
25 UPDATE `pma__column_info`
26   SET `transformation` = REPLACE(REPLACE(`transformation`, '__', '_'), 'inc.php', 'class.php');
27 UPDATE `pma__column_info`
28   SET `transformation` = ''
29   WHERE `transformation` = '_';
30 UPDATE `pma__column_info`
31   SET `transformation` = CONCAT('output/', `transformation`)
32   WHERE `transformation` IN (
33     'application_octetstream_download.class.php',
34     'application_octetstream_hex.class.php',
35     'image_jpeg_inline.class.php',
36     'image_jpeg_link.class.php',
37     'image_png_inline.class.php',
38     'text_plain_bool2text.class.php',
39     'text_plain_dateformat.class.php',
40     'text_plain_external.class.php',
41     'text_plain_formatted.class.php',
42     'text_plain_imagelink.class.php',
43     'text_plain_sql.class.php'
44   );
45 ALTER TABLE `pma__column_info`
46   ADD `input_transformation` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
47   ADD `input_transformation_options` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';