Skip to content
Permalink
Browse files

mdl_user.dstpreset becomes mdl_user.timezonename

  • Loading branch information...
defacer
defacer committed Mar 23, 2005
1 parent 22c0091 commit 1789c54824b1e6a6420a4c4cd072e8ef1e45828d
Showing with 13 additions and 3 deletions.
  1. +5 −0 lib/db/mysql.php
  2. +1 −1 lib/db/mysql.sql
  3. +5 −0 lib/db/postgres7.php
  4. +1 −1 lib/db/postgres7.sql
  5. +1 −1 version.php
@@ -1225,6 +1225,11 @@ function main_upgrade($oldversion=0) {
table_column('user', '', 'skype', 'varchar', '50', '', '', '', 'icq');
}
if ($oldversion < 2005032300) {
table_column('user', 'dstpreset', 'timezonename', 'varchar', '100');
execute_sql('UPDATE `'.$CFG->prefix.'user` SET timezonename = \'\'');
}
return $result;
}
@@ -457,7 +457,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',
`timezonename` varchar(100) NOT NULL default '',
`firstaccess` int(10) unsigned NOT NULL default '0',
`lastaccess` int(10) unsigned NOT NULL default '0',
`lastlogin` int(10) unsigned NOT NULL default '0',
@@ -944,6 +944,11 @@ function main_upgrade($oldversion=0) {
table_column('user', '', 'skype', 'varchar', '50', '', '', '', 'icq');
}
if ($oldversion < 2005032300) {
table_column('user', 'dstpreset', 'timezonename', 'varchar', '100');
execute_sql('UPDATE `'.$CFG->prefix.'user` SET timezonename = \'\'');
}
return $result;
}
@@ -321,7 +321,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',
timezonename varchar(100) NOT NULL default '',
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 = 2005031000; // YYYYMMDD = date
$version = 2005032300; // YYYYMMDD = date
// XY = increments within a single day
$release = '1.5 UNSTABLE DEVELOPMENT'; // Human-friendly version name

0 comments on commit 1789c54

Please sign in to comment.
You can’t perform that action at this time.