[svn r10888] Added update for main.user.registration_date.

Converted main.user.active to tinyint for reasons mentioned on wiki.
skala
Yannick Warnier 18 years ago
parent dbf838d6bf
commit 3142865845
  1. 3
      main/install/migrate-db-1.6.x-1.8.0-pre.sql

@ -26,8 +26,9 @@ ALTER TABLE user CHANGE auth_source auth_source varchar(50) default 'platform';
ALTER TABLE user ADD language varchar(40) default NULL;
ALTER TABLE user ADD registration_date datetime NOT NULL default '0000-00-00 00:00:00';
ALTER TABLE user ADD expiration_date datetime NOT NULL default '0000-00-00 00:00:00';
ALTER TABLE user ADD active enum('0','1') NOT NULL default '1';
ALTER TABLE user ADD active tinyint unsigned NOT NULL default 1;
UPDATE user SET auth_source='platform' WHERE auth_source='claroline';
UPDATE user SET registration_date=NOW();
-- Rename table session into php_session
RENAME TABLE session TO php_session;

Loading…
Cancel
Save