mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Adding extra field to mdl_user table: dstpreset
This commit is contained in:
parent
07b538bd52
commit
41b7678df3
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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',
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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',
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user