Not mandatory but...
See Bug 1398
(http://moodle.org/bugs/bug.php?op=show&bugid=1398)
}
}
}
+
+ if ( $oldversion < 2004072300) {
+ table_column("glossary_alias", "alias", "alias", "VARCHAR", "255", "", "", "NOT NULL");
+ }
return true;
}
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';
}
}
+ if ( $oldversion < 2004072300) {
+ table_column("glossary_alias", "alias", "alias", "VARCHAR", "255", "", "", "NOT NULL");
+ }
+
return true;
}
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)
);
/// 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
?>