- Major change in LOAD_EMAIL_TEMPLATE(). The deprecated switch() block has
[mailer.git] / install / tables.sql
1 DROP TABLE IF EXISTS `mxchange_admin_menu`;\r
2 CREATE TABLE `mxchange_admin_menu` (\r
3   `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
4   `action` VARCHAR(255) NOT NULL DEFAULT '',\r
5   `what` VARCHAR(255) NOT NULL DEFAULT '',\r
6   `title` VARCHAR(50) NOT NULL DEFAULT '',\r
7   `sort` BIGINT(20) NOT NULL DEFAULT '0',\r
8   `descr` blob NOT NULL,\r
9   PRIMARY KEY  (`id`)\r
10 ) TYPE=MyISAM;\r
11 \r
12 DROP TABLE IF EXISTS `mxchange_admins`;\r
13 CREATE TABLE `mxchange_admins` (\r
14   `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
15   `login` VARCHAR(100) NOT NULL DEFAULT '',\r
16   `password` VARCHAR(40) NOT NULL DEFAULT '',\r
17   PRIMARY KEY  (`id`)\r
18 ) TYPE=MyISAM;\r
19 \r
20 DROP TABLE IF EXISTS `mxchange_cats`;\r
21 CREATE TABLE `mxchange_cats` (\r
22   `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
23   `cat` VARCHAR(255) NOT NULL DEFAULT '',\r
24   `visible` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
25   `sort` BIGINT(20) NOT NULL DEFAULT '0',\r
26   PRIMARY KEY  (`id`)\r
27 ) TYPE=MyISAM;\r
28 \r
29 DROP TABLE IF EXISTS `mxchange_config`;\r
30 CREATE TABLE `mxchange_config` (\r
31   `config` tinyint(1) NOT NULL DEFAULT '0',\r
32   `pass_len` TINYINT(3) NOT NULL DEFAULT '5',\r
33   `points_register` BIGINT(20) NOT NULL DEFAULT '0',\r
34   `points_ref` BIGINT(20) NOT NULL DEFAULT '0',\r
35   `least_cats` TINYINT(3) NOT NULL DEFAULT '5',\r
36   `check_double_email` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
37   `check_double_pass` ENUM('Y','N') NOT NULL DEFAULT 'N',\r
38   `admin_notify` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
39   `url_tlock` BIGINT(20) NOT NULL DEFAULT '86400',\r
40   `test_text` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
41   `max_tlength` BIGINT(20) NOT NULL DEFAULT '1000',\r
42   `test_subj` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
43   `autosend_active` ENUM('Y','N') NOT NULL DEFAULT 'N',\r
44   PRIMARY KEY  (`config`)\r
45 ) TYPE=MyISAM;\r
46 \r
47 INSERT INTO `mxchange_config` VALUES (0,5,2000,200,5,'Y','N','Y',86400,'Y',1000,'Y','N');\r
48 \r
49 DROP TABLE IF EXISTS `mxchange_guest_menu`;\r
50 CREATE TABLE `mxchange_guest_menu` (\r
51   `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
52   `action` VARCHAR(20) NOT NULL DEFAULT '',\r
53   `what` VARCHAR(20) NOT NULL DEFAULT '',\r
54   `title` VARCHAR(50) NOT NULL DEFAULT '',\r
55   `sort` BIGINT(20) NOT NULL DEFAULT '0',\r
56   `visible` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
57   `locked` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
58   `counter` BIGINT(20) NOT NULL DEFAULT '0',\r
59   PRIMARY KEY  (`id`)\r
60 ) TYPE=MyISAM;\r
61 \r
62 DROP TABLE IF EXISTS `mxchange_max_receive`;\r
63 CREATE TABLE `mxchange_max_receive` (\r
64   `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
65   `value` MEDIUMINT(9) NOT NULL DEFAULT '0',\r
66   `comment` VARCHAR(255) NOT NULL DEFAULT '',\r
67   PRIMARY KEY  (`id`)\r
68 ) TYPE=MyISAM;\r
69 \r
70 DROP TABLE IF EXISTS `mxchange_member_menu`;\r
71 CREATE TABLE `mxchange_member_menu` (\r
72   `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
73   `action` VARCHAR(20) NOT NULL DEFAULT '',\r
74   `what` VARCHAR(20) NOT NULL DEFAULT '',\r
75   `title` VARCHAR(50) NOT NULL DEFAULT '',\r
76   `sort` BIGINT(20) NOT NULL DEFAULT '0',\r
77   `visible` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
78   `locked` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
79   `descr` blob NOT NULL,\r
80   `counter` BIGINT(20) NOT NULL DEFAULT '0',\r
81   PRIMARY KEY  (`id`)\r
82 ) TYPE=MyISAM;\r
83 \r
84 DROP TABLE IF EXISTS `mxchange_mod_reg`;\r
85 CREATE TABLE `mxchange_mod_reg` (\r
86   `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
87   `module` VARCHAR(50) NOT NULL DEFAULT '',\r
88   `locked` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
89   `hidden` ENUM('Y','N') NOT NULL DEFAULT 'N',\r
90   `admin_only` ENUM('Y','N') NOT NULL DEFAULT 'N',\r
91   `title` VARCHAR(200) NOT NULL DEFAULT '',\r
92   `mem_only` ENUM('Y','N') NOT NULL DEFAULT 'N',\r
93   `clicks` BIGINT(20) NOT NULL DEFAULT '0',\r
94   PRIMARY KEY  (`id`)\r
95 ) TYPE=MyISAM;\r
96 \r
97 INSERT INTO `mxchange_mod_reg` VALUES (1,'admin','N','N','Y','','N',0);\r
98 INSERT INTO `mxchange_mod_reg` VALUES (2,'index','N','N','N','','N',0);\r
99 INSERT INTO `mxchange_mod_reg` VALUES (3,'frameset','Y','N','N','','N',0);\r
100 INSERT INTO `mxchange_mod_reg` VALUES (4,'login','N','N','N','','Y',0);\r
101 INSERT INTO `mxchange_mod_reg` VALUES (6,'frametester','N','Y','N','','N',0);\r
102 INSERT INTO `mxchange_mod_reg` VALUES (7,'loader','N','Y','N','','N',0);\r
103 INSERT INTO `mxchange_mod_reg` VALUES (8,'order','N','N','N','','N',0);\r
104 \r
105 DROP TABLE IF EXISTS `mxchange_payments`;\r
106 CREATE TABLE `mxchange_payments` (\r
107   `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
108   `time` INT(7) NOT NULL DEFAULT '0',\r
109   `payment` FLOAT(5,3) NOT NULL DEFAULT '0.000',\r
110   `mail_title` VARCHAR(255) NOT NULL DEFAULT '',\r
111   `price` FLOAT(5,3) NOT NULL DEFAULT '0.000',\r
112   PRIMARY KEY  (`id`)\r
113 ) TYPE=MyISAM;\r
114 \r
115 DROP TABLE IF EXISTS `mxchange_pool`;\r
116 CREATE TABLE `mxchange_pool` (\r
117   `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
118   `sender` BIGINT(20) NOT NULL DEFAULT '0',\r
119   `subject` VARCHAR(200) NOT NULL DEFAULT '',\r
120   `text` LONGBLOB NOT NULL,\r
121   `receivers` LONGBLOB NOT NULL,\r
122   `payment_id` TINYINT(3) NOT NULL DEFAULT '0',\r
123   `data_type` ENUM('TEMP','SEND','NEW','ADMIN') NOT NULL DEFAULT 'TEMP',\r
124   `timestamp` VARCHAR(10) NOT NULL DEFAULT '0',\r
125   `url` tinytext NOT NULL,\r
126   `target_send` BIGINT(20) NOT NULL DEFAULT '0',\r
127   `cat_id` BIGINT(20) NOT NULL DEFAULT '0',\r
128   PRIMARY KEY  (`id`)\r
129 ) TYPE=MyISAM;\r
130 \r
131 DROP TABLE IF EXISTS `mxchange_refbanner`;\r
132 CREATE TABLE `mxchange_refbanner` (\r
133   `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
134   `url` TEXT NOT NULL,\r
135   `alternate` TEXT NOT NULL,\r
136   `visible` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
137   `counter` BIGINT(22) NOT NULL DEFAULT '0',\r
138   PRIMARY KEY  (`id`)\r
139 ) TYPE=MyISAM;\r
140 \r
141 DROP TABLE IF EXISTS `mxchange_refdepths`;\r
142 CREATE TABLE `mxchange_refdepths` (\r
143   `id` TINYINT(3) NOT NULL AUTO_INCREMENT,\r
144   `level` TINYINT(3) NOT NULL DEFAULT '0',\r
145   `percents` TINYINT(3) NOT NULL DEFAULT '0',\r
146   PRIMARY KEY  (`id`)\r
147 ) TYPE=MyISAM;\r
148 \r
149 INSERT INTO `mxchange_refdepths` VALUES (1,0,100);\r
150 INSERT INTO `mxchange_refdepths` VALUES (2,1,30);\r
151 INSERT INTO `mxchange_refdepths` VALUES (3,2,15);\r
152 INSERT INTO `mxchange_refdepths` VALUES (4,3,10);\r
153 INSERT INTO `mxchange_refdepths` VALUES (5,4,8);\r
154 INSERT INTO `mxchange_refdepths` VALUES (6,5,5);\r
155 \r
156 DROP TABLE IF EXISTS `mxchange_refsystem`;\r
157 CREATE TABLE `mxchange_refsystem` (\r
158   `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
159   `userid` BIGINT(20) NOT NULL DEFAULT '0',\r
160   `level` TINYINT(3) NOT NULL DEFAULT '0',\r
161   `counter` BIGINT(20) NOT NULL DEFAULT '0',\r
162   PRIMARY KEY  (`id`)\r
163 ) TYPE=MyISAM;\r
164 \r
165 DROP TABLE IF EXISTS `mxchange_user_cats`;\r
166 CREATE TABLE `mxchange_user_cats` (\r
167   `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
168   `userid` BIGINT(20) NOT NULL DEFAULT '0',\r
169   `cat_id` TINYINT(3) NOT NULL DEFAULT '0',\r
170   PRIMARY KEY  (`id`)\r
171 ) TYPE=MyISAM;\r
172 \r
173 DROP TABLE IF EXISTS `mxchange_user_data`;\r
174 CREATE TABLE `mxchange_user_data` (\r
175   `userid` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
176   `surname` VARCHAR(255) NOT NULL DEFAULT '',\r
177   `family` VARCHAR(255) NOT NULL DEFAULT '',\r
178   `street_nr` VARCHAR(255) NOT NULL DEFAULT '',\r
179   `country` VARCHAR(4) NOT NULL DEFAULT '',\r
180   `zip` VARCHAR(6) NOT NULL DEFAULT '',\r
181   `city` VARCHAR(255) NOT NULL DEFAULT '',\r
182   `email` VARCHAR(255) NOT NULL DEFAULT '',\r
183   `birth_day` CHAR(2) NOT NULL DEFAULT '01',\r
184   `birth_month` CHAR(2) NOT NULL DEFAULT '01',\r
185   `birth_year` VARCHAR(4) NOT NULL DEFAULT '1970',\r
186   `password` VARCHAR(32) NOT NULL DEFAULT '',\r
187   `max_mails` INT(7) NOT NULL DEFAULT '0',\r
188   `receive_mails` INT(7) NOT NULL DEFAULT '0',\r
189   `refid` BIGINT(22) NOT NULL DEFAULT '0',\r
190   `status` ENUM('UNCONFIRMED','CONFIRMED','LOCKED') NOT NULL DEFAULT 'UNCONFIRMED',\r
191   `user_hash` VARCHAR(32) NOT NULL DEFAULT '',\r
192   `REMOTE_ADDR` VARCHAR(15) NOT NULL DEFAULT '0.0.0.0',\r
193   `last_online` VARCHAR(10) NOT NULL DEFAULT '0',\r
194   `last_module` VARCHAR(20) NOT NULL DEFAULT '',\r
195   `ref_clicks` BIGINT(20) NOT NULL DEFAULT '0',\r
196   `total_logins` BIGINT(20) NOT NULL DEFAULT '0',\r
197   `gender` ENUM('M','F') NOT NULL DEFAULT 'M',\r
198   `used_points` DOUBLE(22,3) NOT NULL DEFAULT '0.000',\r
199   `emails_sent` BIGINT(20) NOT NULL DEFAULT '0',\r
200   PRIMARY KEY  (`userid`)\r
201 ) TYPE=MyISAM;\r
202 \r
203 DROP TABLE IF EXISTS `mxchange_user_points`;\r
204 CREATE TABLE `mxchange_user_points` (\r
205   `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
206   `userid` BIGINT(22) NOT NULL DEFAULT '0',\r
207   `ref_depth` TINYINT(3) NOT NULL DEFAULT '0',\r
208   `points` DOUBLE(22,3) NOT NULL DEFAULT '0.000',\r
209   PRIMARY KEY  (`id`)\r
210 ) TYPE=MyISAM;\r
211 \r
212 alter table `mxchange_config` add `max_send` TINYINT(3) NOT NULL DEFAULT '100';\r
213 alter table `mxchange_config` add `url_blacklist` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
214 alter table `mxchange_config` add `auto_purge` TINYINT(3) NOT NULL DEFAULT '14';\r
215 alter table `mxchange_config` add `auto_purge_active` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
216 \r
217 alter table `mxchange_pool` modify `url` tinytext NOT NULL;\r
218 alter table `mxchange_pool` change `url` `url` tinyblob NOT NULL;\r
219 alter table `mxchange_pool` modify `data_type` ENUM('TEMP','SEND','NEW','ADMIN','ACTIVE') NOT NULL DEFAULT 'TEMP';\r
220 \r
221 DROP TABLE IF EXISTS `mxchange_user_links`;\r
222 CREATE TABLE `mxchange_user_links` (\r
223   `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
224   `stats_id` BIGINT(20) NOT NULL DEFAULT '0',\r
225   `userid` BIGINT(20) NOT NULL DEFAULT '0',\r
226   `link_type` ENUM('NORMAL') NOT NULL DEFAULT 'NORMAL',\r
227   PRIMARY KEY  (`id`)\r
228 ) TYPE=MyISAM;\r
229 \r
230 DROP TABLE IF EXISTS `mxchange_user_stats`;\r
231 CREATE TABLE `mxchange_user_stats` (\r
232   `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
233   `userid` BIGINT(20) NOT NULL DEFAULT '0',\r
234   `cat_id` BIGINT(20) NOT NULL DEFAULT '0',\r
235   `payment_id` BIGINT(20) NOT NULL DEFAULT '0',\r
236   `subject` VARCHAR(200) NOT NULL DEFAULT '',\r
237   `url` tinyblob NOT NULL,\r
238   `max_rec` BIGINT(20) NOT NULL DEFAULT '0',\r
239   `timestamp_ordered` VARCHAR(10) NOT NULL DEFAULT '',\r
240   `pool_id` BIGINT(20) NOT NULL DEFAULT '0',\r
241   `timestamp_sstart` VARCHAR(10) NOT NULL DEFAULT '',\r
242   `timestamp_send` VARCHAR(10) NOT NULL DEFAULT '',\r
243   PRIMARY KEY  (`id`)\r
244 ) TYPE=MyISAM;\r
245 \r
246 alter table `mxchange_user_data` add `joined` VARCHAR(10) NOT NULL DEFAULT '0';\r
247 alter table `mxchange_config` add `last_update` VARCHAR(10) NOT NULL DEFAULT '0';\r
248 \r
249 UPDATE `mxchange_member_menu` SET `locked` = 'N' WHERE 'id'='12' OR 'id'='11' LIMIT 1;\r
250 \r
251 UPDATE `mxchange_guest_menu` SET `counter`=0;\r
252 UPDATE `mxchange_member_menu` SET `counter`=0;\r
253 \r
254 INSERT INTO `mxchange_mod_reg` VALUES (NULL,'chk_login','N','N','N','','N',0);\r
255 alter table `mxchange_pool` modify `data_type` ENUM('TEMP','SEND','NEW','ADMIN','ACTIVE') NOT NULL DEFAULT 'TEMP';\r
256 alter table `mxchange_config` add `unconfirmed` BIGINT(20) NOT NULL DEFAULT '100';\r
257 alter table `mxchange_config` add `profile_lock` BIGINT(20) NOT NULL DEFAULT '86400';\r
258 alter table `mxchange_user_data` add `last_update` VARCHAR(10) NOT NULL DEFAULT '0';\r
259 alter table `mxchange_refbanner` add `clicks` BIGINT(20) NOT NULL DEFAULT '0';\r
260 alter table `mxchange_config` add `online_timeout` BIGINT(20) NOT NULL DEFAULT '1800';\r
261 \r
262 alter table `mxchange_config` add `mad_timestamp` VARCHAR(10) NOT NULL DEFAULT '0';\r
263 alter table `mxchange_config` add `mad_count` BIGINT(20) NOT NULL;\r
264 alter table `mxchange_config` add `profile_update` BIGINT(20) NOT NULL DEFAULT '15768000';\r
265 alter table `mxchange_config` add `send_prof_update` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
266 alter table `mxchange_config` add `resend_profile_update` BIGINT(20) NOT NULL DEFAULT '172800';\r
267 \r
268 alter table `mxchange_user_data` add `last_profile_sent` VARCHAR(10) NOT NULL DEFAULT '0';\r
269 alter table `mxchange_user_data` add `notified` ENUM('Y','N') NOT NULL DEFAULT 'N';\r
270 \r
271 alter table `mxchange_config` add `patch_level` VARCHAR(100) NOT NULL DEFAULT '78';\r
272 alter table `mxchange_config` add `patch_ctime` VARCHAR(10) NOT NULL DEFAULT '0';\r
273 \r
274 alter table `mxchange_admins` add `email` VARCHAR(255) NOT NULL;\r
275 \r
276 DROP TABLE IF EXISTS `mxchange_task_system`;\r
277 CREATE TABLE `mxchange_task_system` (\r
278   `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
279   `assigned_admin` BIGINT(20) NOT NULL DEFAULT '0',\r
280   `userid` BIGINT(20) NOT NULL DEFAULT '0',\r
281   `status` ENUM('NEW','OPEN','SOLVED','CLOSED','DELETED') NOT NULL DEFAULT 'NEW',\r
282   `task_type` ENUM('FIRST_USER','SUPPORT_MEMBER','SUPPORT_ADMIN','OTHERS', 'EXTENSION', 'EXTENSION_UPDATE') NOT NULL DEFAULT 'FIRST_USER',\r
283   `subject` VARCHAR(255) NOT NULL DEFAULT '',\r
284   `text` LONGBLOB NOT NULL,\r
285   `task_created` VARCHAR(10) NOT NULL DEFAULT '0',\r
286   KEY (`assigned_admin`),\r
287   PRIMARY KEY  (`id`)\r
288 ) TYPE=MyISAM;\r
289 \r
290 ALTER TABLE `mxchange_pool` ADD INDEX (`sender`);\r
291 ALTER TABLE `mxchange_pool` ADD INDEX (`payment_id`);\r
292 ALTER TABLE `mxchange_pool` ADD INDEX (`cat_id`);\r
293 ALTER TABLE `mxchange_refsystem` ADD INDEX (`userid`);\r
294 ALTER TABLE `mxchange_task_system` ADD INDEX (`assigned_admin`);\r
295 ALTER TABLE `mxchange_task_system` ADD INDEX (`userid`);\r
296 ALTER TABLE `mxchange_user_cats` ADD INDEX (`userid`);\r
297 ALTER TABLE `mxchange_user_cats` ADD INDEX (`cat_id`);\r
298 ALTER TABLE `mxchange_user_data` ADD INDEX (`refid`);\r
299 ALTER TABLE `mxchange_user_links` ADD INDEX (`userid`);\r
300 ALTER TABLE `mxchange_user_links` ADD INDEX (`stats_id`);\r
301 ALTER TABLE `mxchange_user_points` ADD INDEX (`userid`);\r
302 ALTER TABLE `mxchange_user_stats` ADD INDEX (`userid`);\r
303 ALTER TABLE `mxchange_user_stats` ADD INDEX (`cat_id`);\r
304 ALTER TABLE `mxchange_user_stats` ADD INDEX (`payment_id`);\r
305 ALTER TABLE `mxchange_user_stats` ADD INDEX (`pool_id`);\r
306 \r
307 alter table `mxchange_user_stats` add `clicks` BIGINT(20) NOT NULL;\r
308 alter table `mxchange_config` add `code_length` TINYINT(3) NOT NULL DEFAULT '5';\r
309 alter table `mxchange_config` add `guest_stats` ENUM('MEMBERS','MODULES','INACTIVE') NOT NULL DEFAULT 'MEMBERS';\r
310 alter table `mxchange_config` add `ref_payout` TINYINT(3) NOT NULL DEFAULT '5';\r
311 alter table `mxchange_user_data` add `ref_payout` TINYINT(3) NOT NULL DEFAULT '0';\r
312 alter table `mxchange_user_points` add `locked_points` BIGINT(20) NOT NULL DEFAULT '0';\r
313 \r
314 DROP TABLE IF EXISTS `mxchange_extensions`;\r
315 CREATE TABLE `mxchange_extensions` (\r
316   `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
317   `ext_name` VARCHAR(255) NOT NULL DEFAULT '',\r
318   `ext_lang_file` VARCHAR(255) NOT NULL DEFAULT '',\r
319   `ext_active` ENUM('Y','N') NOT NULL DEFAULT 'N',\r
320   `ext_version` VARCHAR(255) NOT NULL DEFAULT '0.',\r
321   PRIMARY KEY  (`id`)\r
322 ) TYPE=MyISAM;\r
323 \r
324 DROP TABLE IF EXISTS `mxchange_jackpot`;\r
325 CREATE TABLE `mxchange_jackpot` (\r
326   `ok` CHAR(2) NOT NULL DEFAULT 'ok',\r
327   `points` DOUBLE(23,3) NOT NULL DEFAULT '0.000',\r
328   PRIMARY KEY  (`ok`)\r
329 ) TYPE=MyISAM;\r
330 \r
331 alter table `mxchange_config` add `activate_xchange` BIGINT(20) NOT NULL DEFAULT '100';\r
332 alter table `mxchange_config` add `order_multi_page` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
333 alter table `mxchange_config` add `display_refid` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
334 alter table `mxchange_config` add `ip_timeout` BIGINT(20) NOT NULL DEFAULT '86400';\r
335 alter table `mxchange_pool` add `zip` VARCHAR(6) NOT NULL DEFAULT '';\r
336 \r
337 alter table `mxchange_task_system` change `task_type` `task_type` VARCHAR(255)  NOT NULL DEFAULT 'FIRST_USER';\r
338 alter table `mxchange_user_data` modify `zip` VARCHAR(6) NOT NULL DEFAULT '';\r
339 alter table `mxchange_admin_menu` modify `action` VARCHAR(255) NOT NULL DEFAULT '';\r
340 alter table `mxchange_admin_menu` modify `what` VARCHAR(255) NOT NULL DEFAULT '';\r
341 alter table `mxchange_user_data` modify `last_module` VARCHAR(255) NOT NULL DEFAULT '';\r
342 alter table `mxchange_config` add `allow_direct_pay` ENUM('N', 'Y') NOT NULL DEFAULT 'N';\r
343 alter table `mxchange_user_data` modify `last_profile_sent` VARCHAR(10)  NOT NULL DEFAULT '0';\r
344 alter table `mxchange_user_data` modify `last_update` VARCHAR(10)  NOT NULL DEFAULT '0';\r
345 alter table `mxchange_user_data` modify `joined` VARCHAR(10)  NOT NULL DEFAULT '0';\r
346 alter table `mxchange_user_data` modify `last_online` VARCHAR(10)  NOT NULL DEFAULT '0';\r