root/modules/branches/2.4/versionupgrade/install.php

Revision 6288, 462 bytes (checked in by p_lindheimer, 5 years ago)

add verisonupgrade to 2.4 for 2.4 to 2.5 upgrade

Line 
1 <?php
2 global $db;
3
4 if (! function_exists("out")) {
5     function out($text) {
6         echo $text."<br />";
7     }
8 }
9
10 if (! function_exists("outn")) {
11     function outn($text) {
12         echo $text;
13     }
14 }
15
16 outn("Converting module_xml data field to MEDIUMBLOB..");
17 $sql = "ALTER TABLE `module_xml` CHANGE `data` `data` MEDIUMBLOB NOT NULL";
18 $results = $db->query($sql);
19 if(DB::IsError($results)) {
20     out("ERROR: failed to convert table ".$results->getMessage());
21 } else {
22     out("OK");
23 }
24
25 ?>
26
Note: See TracBrowser for help on using the browser.