]> git.mjollnir.org Git - moodle.git/commitdiff
Changed glossary_alias->alias from text to varchar(255).
authorstronk7 <stronk7>
Fri, 23 Jul 2004 17:37:21 +0000 (17:37 +0000)
committerstronk7 <stronk7>
Fri, 23 Jul 2004 17:37:21 +0000 (17:37 +0000)
Not mandatory but...
See Bug 1398
(http://moodle.org/bugs/bug.php?op=show&bugid=1398)

mod/glossary/db/mysql.php
mod/glossary/db/mysql.sql
mod/glossary/db/postgres7.php
mod/glossary/db/postgres7.sql
mod/glossary/version.php

index ef49c95d2e013ac5b291973ef5ce514b88fdbedc..3d12b0411595a94d3e7ad327652797b2b1d1cded 100644 (file)
@@ -270,6 +270,10 @@ function glossary_upgrade($oldversion) {
             }
         }
   }
+
+  if ( $oldversion < 2004072300) {
+      table_column("glossary_alias", "alias", "alias", "VARCHAR", "255", "", "", "NOT NULL");
+  }
     
   return true;
 }
index 260d4e66e42a79eeb5920bd4d88c68d8ea9c76a9..6fd23f6a262ef9249735981e503bb1e2b662172d 100644 (file)
@@ -66,7 +66,7 @@ CREATE TABLE prefix_glossary_entries (
 CREATE TABLE prefix_glossary_alias (
      id int(10) unsigned NOT NULL auto_increment,
      entryid int(10) unsigned NOT NULL default '0',
-     alias text NOT NULL,
+     alias varchar(255) NOT NULL,
      PRIMARY KEY  (id)
 ) TYPE=MyISAM COMMENT='entries alias';
 
index 16693ca8125d28fbab20d6958fc3b7ae130dc6d6..afa4ba491b78058029eadb2c5cbc0ae239e35ffd 100644 (file)
@@ -33,6 +33,10 @@ function glossary_upgrade($oldversion) {
         }
   }
 
+  if ( $oldversion < 2004072300) {
+      table_column("glossary_alias", "alias", "alias", "VARCHAR", "255", "", "", "NOT NULL");
+  }
+
     return true;
 }
 
index a6e6f9788ec52c9d1b25dc1273b14ed72aaaa784..8d7a61f08525741854c6b732eacca66804151e95 100644 (file)
@@ -78,7 +78,7 @@ CREATE TABLE prefix_glossary_categories (
 CREATE TABLE prefix_glossary_alias (
      id SERIAL,
      entryid int4 NOT NULL default '0',
-     alias TEXT NOT NULL,
+     alias varchar(255) NOT NULL,
      PRIMARY KEY  (id)
 );
 
index bda21b868bd5d050d8ddcb11796a2bd66f7aa263..4778508f1f28cc2a376fd8ff5837b4deb423a2fd 100644 (file)
@@ -5,10 +5,10 @@
 ///  This fragment is called by moodle_needs_upgrading() and /admin/index.php
 /////////////////////////////////////////////////////////////////////////////////
 
-$module->version  = 2004060400;  // The current module version (Date: YYYYMMDDXX)
+$module->version  = 2004072300;  // The current module version (Date: YYYYMMDDXX)
 $module->requires = 2004052501;  // Requires this Moodle version
 $module->cron     = 0;           // Period for cron to check this module (secs)
 
-$release = "0.5 development";   // User-friendly version number
+$release = "1.4 development";   // User-friendly version number
 
 ?>