Adding extra field to mdl_user table: dstpreset

This commit is contained in:
defacer 2005-02-17 21:00:54 +00:00
parent 07b538bd52
commit 41b7678df3
5 changed files with 11 additions and 1 deletions

View File

@ -1194,6 +1194,10 @@ function main_upgrade($oldversion=0) {
table_column('course', 'idnumber', 'idnumber', 'varchar', '100', '', '', '', '');
}
if ($oldversion < 2005021700) {
table_column('user', '', 'dstpreset', 'int', '10', '', '0', 'not null', 'timezone');
}
return $result;
}

View File

@ -436,6 +436,7 @@ CREATE TABLE `prefix_user` (
`lang` varchar(10) default 'en',
`theme` varchar(50) NOT NULL default '',
`timezone` float NOT NULL default '99',
`dstpreset` int(10) NOT NULL default '0',
`firstaccess` int(10) unsigned NOT NULL default '0',
`lastaccess` int(10) unsigned NOT NULL default '0',
`lastlogin` int(10) unsigned NOT NULL default '0',

View File

@ -917,6 +917,10 @@ function main_upgrade($oldversion=0) {
table_column('user', '', 'theme', 'varchar', '50', '', '', '', 'lang');
}
if ($oldversion < 2005021700) {
table_column('user', '', 'dstpreset', 'int', '10', '', '0', 'not null', 'timezone');
}
return $result;
}

View File

@ -306,6 +306,7 @@ CREATE TABLE prefix_user (
lang varchar(10) NOT NULL default '',
theme varchar(50) NOT NULL default '',
timezone float NOT NULL default '99',
dstpreset integer NOT NULL default '0',
firstaccess integer NOT NULL default '0',
lastaccess integer NOT NULL default '0',
lastlogin integer NOT NULL default '0',

View File

@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2005021601; // YYYYMMDD = date
$version = 2005021700; // YYYYMMDD = date
// XY = increments within a single day
$release = '1.5 UNSTABLE DEVELOPMENT'; // Human-friendly version name