X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=upgrade%2Faccount%2F01_profiles.sql;h=040e3ee153dc7b4241c75dd8ca12faac9972966e;hb=843a2191e4c76f0beb00c754f06974de76791238;hp=294026c74191dfdb56a38bd6fe1e955c4fb25467;hpb=cde4fb1dcd81f986b8c93532ea7e2a648414f27c;p=platal.git diff --git a/upgrade/account/01_profiles.sql b/upgrade/account/01_profiles.sql index 294026c..040e3ee 100644 --- a/upgrade/account/01_profiles.sql +++ b/upgrade/account/01_profiles.sql @@ -1,3 +1,4 @@ +drop table if exists profiles; create table profiles ( # Profile identifiers pid int(6) not null auto_increment, @@ -11,12 +12,35 @@ create table profiles ( # birthdate and birthdate given by reference directory (library, school...) birthdate date default null, birthdate_ref date default null, + next_birthday date default null, deathdate date default null, + deathdate_rec date default null, + + sex enum('female', 'male') not null default 'male', + section tinyint(2) unsigned default null, + cv text default null, + freetext mediumtext default null, + freetext_pub enum('private', 'public') not null default 'private', + medals_pub enum('private', 'public') not null default 'private', + alias_pub enum('private', 'public') not null default 'private', + + nationality1 char(2) default null, + nationality2 char(2) default null, + nationality3 char(2) default null, + + # Directory informations + email_directory varchar(255) default null, + + # Last modification date (for notifications) + last_change date not null, primary key pid (pid), unique key hrpid (hrpid), unique key xorg_id (xorg_id), - key ax_id (ax_id) -); + key ax_id (ax_id), + key nationality1 (nationality1), + key nationality2 (nationality2), + key nationality3 (nationality3) +) ENGINE=InnoDB, CHARSET=utf8; # vim:set syntax=mysql: