Index: trunk/extensions/Wikimania/sql/tables.sql |
— | — | @@ -19,13 +19,6 @@ |
20 | 20 | reg_lname varchar(255) not null, |
21 | 21 | reg_sex varchar(1) not null, |
22 | 22 | reg_country varchar(4) not null, |
23 | | - reg_langn varchar(4) not null, |
24 | | - reg_lang1 varchar(4), |
25 | | - reg_lang1_level enum('1','2','3','4'), |
26 | | - reg_lang2 varchar(4), |
27 | | - reg_lang2_level enum('1','2','3','4'), |
28 | | - reg_lang2 varchar(4), |
29 | | - reg_lang2_level enum('1','2','3','4'), |
30 | 23 | reg_wiki_id varchar(255) not null, |
31 | 24 | reg_wiki_language varchar(12) not null, |
32 | 25 | reg_wiki_project varchar(12) not null, |
— | — | @@ -72,4 +65,13 @@ |
73 | 66 | rh_occupancy int(1) not null, |
74 | 67 | rh_partner varchar(255), |
75 | 68 | rh_notes blob |
76 | | -) /**$wgDBTableOptions*/; |
| 69 | +) /**$wgDBTableOptions*/; |
| 70 | + |
| 71 | +-- Table to handle languages a registrant can communicat in |
| 72 | +CREATE TABLE /*_*/registration_languages ( |
| 73 | + rl_reg_id unsigned int not null, |
| 74 | + rl_lang varchar(4), |
| 75 | + rl_level enum('1','2','3','4'), |
| 76 | + |
| 77 | + PRIMARY KEY(rl_reg_id, rl_lang) |
| 78 | +)/**$wgDBTableOptions*/; |