-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_2-0_mysql.sql
1912 lines (1748 loc) · 59.8 KB
/
install_2-0_mysql.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#### ATTENTION: You do not need to run or use this file! The install.php script does everything for you!
#### Install script for MySQL 4.0.18+
#
# Table structure for table `admin_info_files`
#
CREATE TABLE {$db_prefix}admin_info_files (
id_file tinyint(4) unsigned NOT NULL auto_increment,
filename varchar(255) NOT NULL default '',
path varchar(255) NOT NULL default '',
parameters varchar(255) NOT NULL default '',
data text NOT NULL,
filetype varchar(255) NOT NULL default '',
PRIMARY KEY (id_file),
KEY filename (filename(30))
) ENGINE=MyISAM;
#
# Dumping data for table `admin_info_files`
#
INSERT INTO {$db_prefix}admin_info_files
(id_file, filename, path, parameters, data, filetype)
VALUES
(1, 'current-version.js', '/smf/', 'version=%3$s', '', 'text/javascript'),
(2, 'detailed-version.js', '/smf/', 'language=%1$s&version=%3$s', '', 'text/javascript'),
(3, 'latest-news.js', '/smf/', 'language=%1$s&format=%2$s', '', 'text/javascript'),
(4, 'latest-packages.js', '/smf/', 'language=%1$s&version=%3$s', '', 'text/javascript'),
(5, 'latest-smileys.js', '/smf/', 'language=%1$s&version=%3$s', '', 'text/javascript'),
(6, 'latest-support.js', '/smf/', 'language=%1$s&version=%3$s', '', 'text/javascript'),
(7, 'latest-themes.js', '/smf/', 'language=%1$s&version=%3$s', '', 'text/javascript');
# --------------------------------------------------------
#
# Table structure for table `approval_queue`
#
CREATE TABLE {$db_prefix}approval_queue (
id_msg int(10) unsigned NOT NULL default '0',
id_attach int(10) unsigned NOT NULL default '0',
id_event smallint(5) unsigned NOT NULL default '0'
) ENGINE=MyISAM;
#
# Table structure for table `attachments`
#
CREATE TABLE {$db_prefix}attachments (
id_attach int(10) unsigned NOT NULL auto_increment,
id_thumb int(10) unsigned NOT NULL default '0',
id_msg int(10) unsigned NOT NULL default '0',
id_member mediumint(8) unsigned NOT NULL default '0',
id_folder tinyint(3) NOT NULL default '1',
attachment_type tinyint(3) unsigned NOT NULL default '0',
filename varchar(255) NOT NULL default '',
file_hash varchar(40) NOT NULL default '',
fileext varchar(8) NOT NULL default '',
size int(10) unsigned NOT NULL default '0',
downloads mediumint(8) unsigned NOT NULL default '0',
width mediumint(8) unsigned NOT NULL default '0',
height mediumint(8) unsigned NOT NULL default '0',
mime_type varchar(20) NOT NULL default '',
approved tinyint(3) NOT NULL default '1',
PRIMARY KEY (id_attach),
UNIQUE id_member (id_member, id_attach),
KEY id_msg (id_msg),
KEY attachment_type (attachment_type)
) ENGINE=MyISAM;
#
# Table structure for table `ban_groups`
#
CREATE TABLE {$db_prefix}ban_groups (
id_ban_group mediumint(8) unsigned NOT NULL auto_increment,
name varchar(20) NOT NULL default '',
ban_time int(10) unsigned NOT NULL default '0',
expire_time int(10) unsigned,
cannot_access tinyint(3) unsigned NOT NULL default '0',
cannot_register tinyint(3) unsigned NOT NULL default '0',
cannot_post tinyint(3) unsigned NOT NULL default '0',
cannot_login tinyint(3) unsigned NOT NULL default '0',
reason varchar(255) NOT NULL default '',
notes text NOT NULL,
PRIMARY KEY (id_ban_group)
) ENGINE=MyISAM;
#
# Table structure for table `ban_items`
#
CREATE TABLE {$db_prefix}ban_items (
id_ban mediumint(8) unsigned NOT NULL auto_increment,
id_ban_group smallint(5) unsigned NOT NULL default '0',
ip_low1 tinyint(3) unsigned NOT NULL default '0',
ip_high1 tinyint(3) unsigned NOT NULL default '0',
ip_low2 tinyint(3) unsigned NOT NULL default '0',
ip_high2 tinyint(3) unsigned NOT NULL default '0',
ip_low3 tinyint(3) unsigned NOT NULL default '0',
ip_high3 tinyint(3) unsigned NOT NULL default '0',
ip_low4 tinyint(3) unsigned NOT NULL default '0',
ip_high4 tinyint(3) unsigned NOT NULL default '0',
hostname varchar(255) NOT NULL default '',
email_address varchar(255) NOT NULL default '',
id_member mediumint(8) unsigned NOT NULL default '0',
hits mediumint(8) unsigned NOT NULL default '0',
PRIMARY KEY (id_ban),
KEY id_ban_group (id_ban_group)
) ENGINE=MyISAM;
#
# Table structure for table `board_permissions`
#
CREATE TABLE {$db_prefix}board_permissions (
id_group smallint(5) NOT NULL default '0',
id_profile smallint(5) unsigned NOT NULL default '0',
permission varchar(30) NOT NULL default '',
add_deny tinyint(4) NOT NULL default '1',
PRIMARY KEY (id_group, id_profile, permission)
) ENGINE=MyISAM;
#
# Dumping data for table `board_permissions`
#
INSERT INTO {$db_prefix}board_permissions
(id_group, id_profile, permission)
VALUES (-1, 1, 'poll_view'),
(0, 1, 'remove_own'),
(0, 1, 'lock_own'),
(0, 1, 'mark_any_notify'),
(0, 1, 'mark_notify'),
(0, 1, 'modify_own'),
(0, 1, 'poll_add_own'),
(0, 1, 'poll_edit_own'),
(0, 1, 'poll_lock_own'),
(0, 1, 'poll_post'),
(0, 1, 'poll_view'),
(0, 1, 'poll_vote'),
(0, 1, 'post_attachment'),
(0, 1, 'post_new'),
(0, 1, 'post_reply_any'),
(0, 1, 'post_reply_own'),
(0, 1, 'post_unapproved_topics'),
(0, 1, 'post_unapproved_replies_any'),
(0, 1, 'post_unapproved_replies_own'),
(0, 1, 'post_unapproved_attachments'),
(0, 1, 'delete_own'),
(0, 1, 'report_any'),
(0, 1, 'send_topic'),
(0, 1, 'view_attachments'),
(2, 1, 'moderate_board'),
(2, 1, 'post_new'),
(2, 1, 'post_reply_own'),
(2, 1, 'post_reply_any'),
(2, 1, 'post_unapproved_topics'),
(2, 1, 'post_unapproved_replies_any'),
(2, 1, 'post_unapproved_replies_own'),
(2, 1, 'post_unapproved_attachments'),
(2, 1, 'poll_post'),
(2, 1, 'poll_add_any'),
(2, 1, 'poll_remove_any'),
(2, 1, 'poll_view'),
(2, 1, 'poll_vote'),
(2, 1, 'poll_lock_any'),
(2, 1, 'poll_edit_any'),
(2, 1, 'report_any'),
(2, 1, 'lock_own'),
(2, 1, 'send_topic'),
(2, 1, 'mark_any_notify'),
(2, 1, 'mark_notify'),
(2, 1, 'delete_own'),
(2, 1, 'modify_own'),
(2, 1, 'make_sticky'),
(2, 1, 'lock_any'),
(2, 1, 'remove_any'),
(2, 1, 'move_any'),
(2, 1, 'merge_any'),
(2, 1, 'split_any'),
(2, 1, 'delete_any'),
(2, 1, 'modify_any'),
(2, 1, 'approve_posts'),
(2, 1, 'post_attachment'),
(2, 1, 'view_attachments'),
(3, 1, 'moderate_board'),
(3, 1, 'post_new'),
(3, 1, 'post_reply_own'),
(3, 1, 'post_reply_any'),
(3, 1, 'post_unapproved_topics'),
(3, 1, 'post_unapproved_replies_any'),
(3, 1, 'post_unapproved_replies_own'),
(3, 1, 'post_unapproved_attachments'),
(3, 1, 'poll_post'),
(3, 1, 'poll_add_any'),
(3, 1, 'poll_remove_any'),
(3, 1, 'poll_view'),
(3, 1, 'poll_vote'),
(3, 1, 'poll_lock_any'),
(3, 1, 'poll_edit_any'),
(3, 1, 'report_any'),
(3, 1, 'lock_own'),
(3, 1, 'send_topic'),
(3, 1, 'mark_any_notify'),
(3, 1, 'mark_notify'),
(3, 1, 'delete_own'),
(3, 1, 'modify_own'),
(3, 1, 'make_sticky'),
(3, 1, 'lock_any'),
(3, 1, 'remove_any'),
(3, 1, 'move_any'),
(3, 1, 'merge_any'),
(3, 1, 'split_any'),
(3, 1, 'delete_any'),
(3, 1, 'modify_any'),
(3, 1, 'approve_posts'),
(3, 1, 'post_attachment'),
(3, 1, 'view_attachments'),
(-1, 2, 'poll_view'),
(0, 2, 'remove_own'),
(0, 2, 'lock_own'),
(0, 2, 'mark_any_notify'),
(0, 2, 'mark_notify'),
(0, 2, 'modify_own'),
(0, 2, 'poll_view'),
(0, 2, 'poll_vote'),
(0, 2, 'post_attachment'),
(0, 2, 'post_new'),
(0, 2, 'post_reply_any'),
(0, 2, 'post_reply_own'),
(0, 2, 'post_unapproved_topics'),
(0, 2, 'post_unapproved_replies_any'),
(0, 2, 'post_unapproved_replies_own'),
(0, 2, 'post_unapproved_attachments'),
(0, 2, 'delete_own'),
(0, 2, 'report_any'),
(0, 2, 'send_topic'),
(0, 2, 'view_attachments'),
(2, 2, 'moderate_board'),
(2, 2, 'post_new'),
(2, 2, 'post_reply_own'),
(2, 2, 'post_reply_any'),
(2, 2, 'post_unapproved_topics'),
(2, 2, 'post_unapproved_replies_any'),
(2, 2, 'post_unapproved_replies_own'),
(2, 2, 'post_unapproved_attachments'),
(2, 2, 'poll_post'),
(2, 2, 'poll_add_any'),
(2, 2, 'poll_remove_any'),
(2, 2, 'poll_view'),
(2, 2, 'poll_vote'),
(2, 2, 'poll_lock_any'),
(2, 2, 'poll_edit_any'),
(2, 2, 'report_any'),
(2, 2, 'lock_own'),
(2, 2, 'send_topic'),
(2, 2, 'mark_any_notify'),
(2, 2, 'mark_notify'),
(2, 2, 'delete_own'),
(2, 2, 'modify_own'),
(2, 2, 'make_sticky'),
(2, 2, 'lock_any'),
(2, 2, 'remove_any'),
(2, 2, 'move_any'),
(2, 2, 'merge_any'),
(2, 2, 'split_any'),
(2, 2, 'delete_any'),
(2, 2, 'modify_any'),
(2, 2, 'approve_posts'),
(2, 2, 'post_attachment'),
(2, 2, 'view_attachments'),
(3, 2, 'moderate_board'),
(3, 2, 'post_new'),
(3, 2, 'post_reply_own'),
(3, 2, 'post_reply_any'),
(3, 2, 'post_unapproved_topics'),
(3, 2, 'post_unapproved_replies_any'),
(3, 2, 'post_unapproved_replies_own'),
(3, 2, 'post_unapproved_attachments'),
(3, 2, 'poll_post'),
(3, 2, 'poll_add_any'),
(3, 2, 'poll_remove_any'),
(3, 2, 'poll_view'),
(3, 2, 'poll_vote'),
(3, 2, 'poll_lock_any'),
(3, 2, 'poll_edit_any'),
(3, 2, 'report_any'),
(3, 2, 'lock_own'),
(3, 2, 'send_topic'),
(3, 2, 'mark_any_notify'),
(3, 2, 'mark_notify'),
(3, 2, 'delete_own'),
(3, 2, 'modify_own'),
(3, 2, 'make_sticky'),
(3, 2, 'lock_any'),
(3, 2, 'remove_any'),
(3, 2, 'move_any'),
(3, 2, 'merge_any'),
(3, 2, 'split_any'),
(3, 2, 'delete_any'),
(3, 2, 'modify_any'),
(3, 2, 'approve_posts'),
(3, 2, 'post_attachment'),
(3, 2, 'view_attachments'),
(-1, 3, 'poll_view'),
(0, 3, 'remove_own'),
(0, 3, 'lock_own'),
(0, 3, 'mark_any_notify'),
(0, 3, 'mark_notify'),
(0, 3, 'modify_own'),
(0, 3, 'poll_view'),
(0, 3, 'poll_vote'),
(0, 3, 'post_attachment'),
(0, 3, 'post_reply_any'),
(0, 3, 'post_reply_own'),
(0, 3, 'post_unapproved_replies_any'),
(0, 3, 'post_unapproved_replies_own'),
(0, 3, 'post_unapproved_attachments'),
(0, 3, 'delete_own'),
(0, 3, 'report_any'),
(0, 3, 'send_topic'),
(0, 3, 'view_attachments'),
(2, 3, 'moderate_board'),
(2, 3, 'post_new'),
(2, 3, 'post_reply_own'),
(2, 3, 'post_reply_any'),
(2, 3, 'post_unapproved_topics'),
(2, 3, 'post_unapproved_replies_any'),
(2, 3, 'post_unapproved_replies_own'),
(2, 3, 'post_unapproved_attachments'),
(2, 3, 'poll_post'),
(2, 3, 'poll_add_any'),
(2, 3, 'poll_remove_any'),
(2, 3, 'poll_view'),
(2, 3, 'poll_vote'),
(2, 3, 'poll_lock_any'),
(2, 3, 'poll_edit_any'),
(2, 3, 'report_any'),
(2, 3, 'lock_own'),
(2, 3, 'send_topic'),
(2, 3, 'mark_any_notify'),
(2, 3, 'mark_notify'),
(2, 3, 'delete_own'),
(2, 3, 'modify_own'),
(2, 3, 'make_sticky'),
(2, 3, 'lock_any'),
(2, 3, 'remove_any'),
(2, 3, 'move_any'),
(2, 3, 'merge_any'),
(2, 3, 'split_any'),
(2, 3, 'delete_any'),
(2, 3, 'modify_any'),
(2, 3, 'approve_posts'),
(2, 3, 'post_attachment'),
(2, 3, 'view_attachments'),
(3, 3, 'moderate_board'),
(3, 3, 'post_new'),
(3, 3, 'post_reply_own'),
(3, 3, 'post_reply_any'),
(3, 3, 'post_unapproved_topics'),
(3, 3, 'post_unapproved_replies_any'),
(3, 3, 'post_unapproved_replies_own'),
(3, 3, 'post_unapproved_attachments'),
(3, 3, 'poll_post'),
(3, 3, 'poll_add_any'),
(3, 3, 'poll_remove_any'),
(3, 3, 'poll_view'),
(3, 3, 'poll_vote'),
(3, 3, 'poll_lock_any'),
(3, 3, 'poll_edit_any'),
(3, 3, 'report_any'),
(3, 3, 'lock_own'),
(3, 3, 'send_topic'),
(3, 3, 'mark_any_notify'),
(3, 3, 'mark_notify'),
(3, 3, 'delete_own'),
(3, 3, 'modify_own'),
(3, 3, 'make_sticky'),
(3, 3, 'lock_any'),
(3, 3, 'remove_any'),
(3, 3, 'move_any'),
(3, 3, 'merge_any'),
(3, 3, 'split_any'),
(3, 3, 'delete_any'),
(3, 3, 'modify_any'),
(3, 3, 'approve_posts'),
(3, 3, 'post_attachment'),
(3, 3, 'view_attachments'),
(-1, 4, 'poll_view'),
(0, 4, 'mark_any_notify'),
(0, 4, 'mark_notify'),
(0, 4, 'poll_view'),
(0, 4, 'poll_vote'),
(0, 4, 'report_any'),
(0, 4, 'send_topic'),
(0, 4, 'view_attachments'),
(2, 4, 'moderate_board'),
(2, 4, 'post_new'),
(2, 4, 'post_reply_own'),
(2, 4, 'post_reply_any'),
(2, 4, 'post_unapproved_topics'),
(2, 4, 'post_unapproved_replies_any'),
(2, 4, 'post_unapproved_replies_own'),
(2, 4, 'post_unapproved_attachments'),
(2, 4, 'poll_post'),
(2, 4, 'poll_add_any'),
(2, 4, 'poll_remove_any'),
(2, 4, 'poll_view'),
(2, 4, 'poll_vote'),
(2, 4, 'poll_lock_any'),
(2, 4, 'poll_edit_any'),
(2, 4, 'report_any'),
(2, 4, 'lock_own'),
(2, 4, 'send_topic'),
(2, 4, 'mark_any_notify'),
(2, 4, 'mark_notify'),
(2, 4, 'delete_own'),
(2, 4, 'modify_own'),
(2, 4, 'make_sticky'),
(2, 4, 'lock_any'),
(2, 4, 'remove_any'),
(2, 4, 'move_any'),
(2, 4, 'merge_any'),
(2, 4, 'split_any'),
(2, 4, 'delete_any'),
(2, 4, 'modify_any'),
(2, 4, 'approve_posts'),
(2, 4, 'post_attachment'),
(2, 4, 'view_attachments'),
(3, 4, 'moderate_board'),
(3, 4, 'post_new'),
(3, 4, 'post_reply_own'),
(3, 4, 'post_reply_any'),
(3, 4, 'post_unapproved_topics'),
(3, 4, 'post_unapproved_replies_any'),
(3, 4, 'post_unapproved_replies_own'),
(3, 4, 'post_unapproved_attachments'),
(3, 4, 'poll_post'),
(3, 4, 'poll_add_any'),
(3, 4, 'poll_remove_any'),
(3, 4, 'poll_view'),
(3, 4, 'poll_vote'),
(3, 4, 'poll_lock_any'),
(3, 4, 'poll_edit_any'),
(3, 4, 'report_any'),
(3, 4, 'lock_own'),
(3, 4, 'send_topic'),
(3, 4, 'mark_any_notify'),
(3, 4, 'mark_notify'),
(3, 4, 'delete_own'),
(3, 4, 'modify_own'),
(3, 4, 'make_sticky'),
(3, 4, 'lock_any'),
(3, 4, 'remove_any'),
(3, 4, 'move_any'),
(3, 4, 'merge_any'),
(3, 4, 'split_any'),
(3, 4, 'delete_any'),
(3, 4, 'modify_any'),
(3, 4, 'approve_posts'),
(3, 4, 'post_attachment'),
(3, 4, 'view_attachments');
# --------------------------------------------------------
#
# Table structure for table `boards`
#
CREATE TABLE {$db_prefix}boards (
id_board smallint(5) unsigned NOT NULL auto_increment,
id_cat tinyint(4) unsigned NOT NULL default '0',
child_level tinyint(4) unsigned NOT NULL default '0',
id_parent smallint(5) unsigned NOT NULL default '0',
board_order smallint(5) NOT NULL default '0',
id_last_msg int(10) unsigned NOT NULL default '0',
id_msg_updated int(10) unsigned NOT NULL default '0',
member_groups varchar(255) NOT NULL default '-1,0',
id_profile smallint(5) unsigned NOT NULL default '1',
name varchar(255) NOT NULL default '',
description text NOT NULL,
num_topics mediumint(8) unsigned NOT NULL default '0',
num_posts mediumint(8) unsigned NOT NULL default '0',
count_posts tinyint(4) NOT NULL default '0',
id_theme tinyint(4) unsigned NOT NULL default '0',
override_theme tinyint(4) unsigned NOT NULL default '0',
unapproved_posts smallint(5) NOT NULL default '0',
unapproved_topics smallint(5) NOT NULL default '0',
redirect varchar(255) NOT NULL default '',
PRIMARY KEY (id_board),
UNIQUE categories (id_cat, id_board),
KEY id_parent (id_parent),
KEY id_msg_updated (id_msg_updated),
KEY member_groups (member_groups(48))
) ENGINE=MyISAM;
#
# Dumping data for table `boards`
#
INSERT INTO {$db_prefix}boards
(id_board, id_cat, board_order, id_last_msg, id_msg_updated, name, description, num_topics, num_posts, member_groups)
VALUES (1, 1, 1, 1, 1, '{$default_board_name}', '{$default_board_description}', 1, 1, '-1,0,2');
# --------------------------------------------------------
#
# Table structure for table `calendar`
#
CREATE TABLE {$db_prefix}calendar (
id_event smallint(5) unsigned NOT NULL auto_increment,
start_date date NOT NULL default '0001-01-01',
end_date date NOT NULL default '0001-01-01',
id_board smallint(5) unsigned NOT NULL default '0',
id_topic mediumint(8) unsigned NOT NULL default '0',
title varchar(255) NOT NULL default '',
id_member mediumint(8) unsigned NOT NULL default '0',
PRIMARY KEY (id_event),
KEY start_date (start_date),
KEY end_date (end_date),
KEY topic (id_topic, id_member)
) ENGINE=MyISAM;
#
# Table structure for table `calendar_holidays`
#
CREATE TABLE {$db_prefix}calendar_holidays (
id_holiday smallint(5) unsigned NOT NULL auto_increment,
event_date date NOT NULL default '0001-01-01',
title varchar(255) NOT NULL default '',
PRIMARY KEY (id_holiday),
KEY event_date (event_date)
) ENGINE=MyISAM;
#
# Dumping data for table `calendar_holidays`
#
INSERT INTO {$db_prefix}calendar_holidays
(title, event_date)
VALUES ('Новый год', '0004-01-01'),
('Рождество', '0004-01-07'),
('День защитника Отечества', '0004-02-23'),
('Международный женский день', '0004-03-08'),
('День смеха', '0004-04-01'),
('День космонавтики', '0004-04-12'),
('Международный день охраны труда', '0004-04-28'),
('День пожарной охраны', '0004-04-30'),
('Праздник Весны и Труда', '0004-05-01'),
('День радио', '0004-05-07'),
('День Победы', '0004-05-09'),
('Международный день защиты детей', '0004-06-01'),
('День России', '0004-06-12'),
('День молодёжи', '0004-06-27'),
('День Воздушно-десантных войск', '0004-08-02'),
('День знаний', '0004-09-01'),
('Всемирный день туризма', '0004-09-27'),
('День учителя', '0004-10-05'),
('День народного единства', '0004-11-04'),
('День Конституции Российской Федерации', '0004-12-12');
# --------------------------------------------------------
#
# Table structure for table `categories`
#
CREATE TABLE {$db_prefix}categories (
id_cat tinyint(4) unsigned NOT NULL auto_increment,
cat_order tinyint(4) NOT NULL default '0',
name varchar(255) NOT NULL default '',
can_collapse tinyint(1) NOT NULL default '1',
PRIMARY KEY (id_cat)
) ENGINE=MyISAM;
#
# Dumping data for table `categories`
#
INSERT INTO {$db_prefix}categories
VALUES (1, 0, '{$default_category_name}', 1);
# --------------------------------------------------------
#
# Table structure for table `collapsed_categories`
#
CREATE TABLE {$db_prefix}collapsed_categories (
id_cat tinyint(4) unsigned NOT NULL default '0',
id_member mediumint(8) unsigned NOT NULL default '0',
PRIMARY KEY (id_cat, id_member)
) ENGINE=MyISAM;
#
# Table structure for table `custom_fields`
#
CREATE TABLE {$db_prefix}custom_fields (
id_field smallint(5) NOT NULL auto_increment,
col_name varchar(12) NOT NULL default '',
field_name varchar(40) NOT NULL default '',
field_desc varchar(255) NOT NULL default '',
field_type varchar(8) NOT NULL default 'text',
field_length smallint(5) NOT NULL default '255',
field_options text NOT NULL,
mask varchar(255) NOT NULL default '',
show_reg tinyint(3) NOT NULL default '0',
show_display tinyint(3) NOT NULL default '0',
show_profile varchar(20) NOT NULL default 'forumprofile',
private tinyint(3) NOT NULL default '0',
active tinyint(3) NOT NULL default '1',
bbc tinyint(3) NOT NULL default '0',
can_search tinyint(3) NOT NULL default '0',
default_value varchar(255) NOT NULL default '',
enclose text NOT NULL,
placement tinyint(3) NOT NULL default '0',
PRIMARY KEY (id_field),
UNIQUE col_name (col_name)
) ENGINE=MyISAM;
#
# Table structure for table `group_moderators`
#
CREATE TABLE {$db_prefix}group_moderators (
id_group smallint(5) unsigned NOT NULL default '0',
id_member mediumint(8) unsigned NOT NULL default '0',
PRIMARY KEY (id_group, id_member)
) ENGINE=MyISAM;
#
# Table structure for table `log_actions`
#
CREATE TABLE {$db_prefix}log_actions (
id_action int(10) unsigned NOT NULL auto_increment,
id_log tinyint(3) unsigned NOT NULL default '1',
log_time int(10) unsigned NOT NULL default '0',
id_member mediumint(8) unsigned NOT NULL default '0',
ip char(16) NOT NULL default ' ',
action varchar(30) NOT NULL default '',
id_board smallint(5) unsigned NOT NULL default '0',
id_topic mediumint(8) unsigned NOT NULL default '0',
id_msg int(10) unsigned NOT NULL default '0',
extra text NOT NULL,
PRIMARY KEY (id_action),
KEY id_log (id_log),
KEY log_time (log_time),
KEY id_member (id_member),
KEY id_board (id_board),
KEY id_msg (id_msg)
) ENGINE=MyISAM;
#
# Table structure for table `log_activity`
#
CREATE TABLE {$db_prefix}log_activity (
date date NOT NULL default '0001-01-01',
hits mediumint(8) unsigned NOT NULL default '0',
topics smallint(5) unsigned NOT NULL default '0',
posts smallint(5) unsigned NOT NULL default '0',
registers smallint(5) unsigned NOT NULL default '0',
most_on smallint(5) unsigned NOT NULL default '0',
PRIMARY KEY (date),
KEY most_on (most_on)
) ENGINE=MyISAM;
#
# Table structure for table `log_banned`
#
CREATE TABLE {$db_prefix}log_banned (
id_ban_log mediumint(8) unsigned NOT NULL auto_increment,
id_member mediumint(8) unsigned NOT NULL default '0',
ip char(16) NOT NULL default ' ',
email varchar(255) NOT NULL default '',
log_time int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id_ban_log),
KEY log_time (log_time)
) ENGINE=MyISAM;
#
# Table structure for table `log_boards`
#
CREATE TABLE {$db_prefix}log_boards (
id_member mediumint(8) unsigned NOT NULL default '0',
id_board smallint(5) unsigned NOT NULL default '0',
id_msg int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id_member, id_board)
) ENGINE=MyISAM;
#
# Table structure for table `log_comments`
#
CREATE TABLE {$db_prefix}log_comments (
id_comment mediumint(8) unsigned NOT NULL auto_increment,
id_member mediumint(8) unsigned NOT NULL default '0',
member_name varchar(80) NOT NULL default '',
comment_type varchar(8) NOT NULL default 'warning',
id_recipient mediumint(8) unsigned NOT NULL default '0',
recipient_name varchar(255) NOT NULL default '',
log_time int(10) NOT NULL default '0',
id_notice mediumint(8) unsigned NOT NULL default '0',
counter tinyint(3) NOT NULL default '0',
body text NOT NULL,
PRIMARY KEY (id_comment),
KEY id_recipient (id_recipient),
KEY log_time (log_time),
KEY comment_type (comment_type(8))
) ENGINE=MyISAM;
#
# Table structure for table `log_digest`
#
CREATE TABLE {$db_prefix}log_digest (
id_topic mediumint(8) unsigned NOT NULL,
id_msg int(10) unsigned NOT NULL,
note_type varchar(10) NOT NULL default 'post',
daily tinyint(3) unsigned NOT NULL default '0',
exclude mediumint(8) unsigned NOT NULL default '0'
) ENGINE=MyISAM;
#
# Table structure for table `log_errors`
#
CREATE TABLE {$db_prefix}log_errors (
id_error mediumint(8) unsigned NOT NULL auto_increment,
log_time int(10) unsigned NOT NULL default '0',
id_member mediumint(8) unsigned NOT NULL default '0',
ip char(16) NOT NULL default ' ',
url text NOT NULL,
message text NOT NULL,
session char(32) NOT NULL default ' ',
error_type char(15) NOT NULL default 'general',
file varchar(255) NOT NULL default '',
line mediumint(8) unsigned NOT NULL default '0',
PRIMARY KEY (id_error),
KEY log_time (log_time),
KEY id_member (id_member),
KEY ip (ip(16))
) ENGINE=MyISAM;
#
# Table structure for table `log_floodcontrol`
#
CREATE TABLE {$db_prefix}log_floodcontrol (
ip char(16) NOT NULL default ' ',
log_time int(10) unsigned NOT NULL default '0',
log_type varchar(8) NOT NULL default 'post',
PRIMARY KEY (ip(16), log_type(8))
) ENGINE=MyISAM;
#
# Table structure for table `log_group_requests`
#
CREATE TABLE {$db_prefix}log_group_requests (
id_request mediumint(8) unsigned NOT NULL auto_increment,
id_member mediumint(8) unsigned NOT NULL default '0',
id_group smallint(5) unsigned NOT NULL default '0',
time_applied int(10) unsigned NOT NULL default '0',
reason text NOT NULL,
PRIMARY KEY (id_request),
UNIQUE id_member (id_member, id_group)
) ENGINE=MyISAM;
#
# Table structure for table `log_karma`
#
CREATE TABLE {$db_prefix}log_karma (
id_target mediumint(8) unsigned NOT NULL default '0',
id_executor mediumint(8) unsigned NOT NULL default '0',
log_time int(10) unsigned NOT NULL default '0',
action tinyint(4) NOT NULL default '0',
PRIMARY KEY (id_target, id_executor),
KEY log_time (log_time)
) ENGINE=MyISAM;
#
# Table structure for table `log_mark_read`
#
CREATE TABLE {$db_prefix}log_mark_read (
id_member mediumint(8) unsigned NOT NULL default '0',
id_board smallint(5) unsigned NOT NULL default '0',
id_msg int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id_member, id_board)
) ENGINE=MyISAM;
#
# Table structure for table `log_member_notices`
#
CREATE TABLE {$db_prefix}log_member_notices (
id_notice mediumint(8) unsigned NOT NULL auto_increment,
subject varchar(255) NOT NULL default '',
body text NOT NULL,
PRIMARY KEY (id_notice)
) ENGINE=MyISAM;
#
# Table structure for table `log_notify`
#
CREATE TABLE {$db_prefix}log_notify (
id_member mediumint(8) unsigned NOT NULL default '0',
id_topic mediumint(8) unsigned NOT NULL default '0',
id_board smallint(5) unsigned NOT NULL default '0',
sent tinyint(1) unsigned NOT NULL default '0',
PRIMARY KEY (id_member, id_topic, id_board),
KEY id_topic (id_topic, id_member)
) ENGINE=MyISAM;
#
# Table structure for table `log_online`
#
CREATE TABLE {$db_prefix}log_online (
session varchar(32) NOT NULL default '',
log_time int(10) NOT NULL default '0',
id_member mediumint(8) unsigned NOT NULL default '0',
id_spider smallint(5) unsigned NOT NULL default '0',
ip int(10) unsigned NOT NULL default '0',
url text NOT NULL,
PRIMARY KEY (session),
KEY log_time (log_time),
KEY id_member (id_member)
) ENGINE=MyISAM;
#
# Table structure for table `log_packages`
#
CREATE TABLE {$db_prefix}log_packages (
id_install int(10) NOT NULL auto_increment,
filename varchar(255) NOT NULL default '',
package_id varchar(255) NOT NULL default '',
name varchar(255) NOT NULL default '',
version varchar(255) NOT NULL default '',
id_member_installed mediumint(8) NOT NULL default '0',
member_installed varchar(255) NOT NULL default '',
time_installed int(10) NOT NULL default '0',
id_member_removed mediumint(8) NOT NULL default '0',
member_removed varchar(255) NOT NULL default '',
time_removed int(10) NOT NULL default '0',
install_state tinyint(3) NOT NULL default '1',
failed_steps text NOT NULL,
themes_installed varchar(255) NOT NULL default '',
db_changes text NOT NULL,
PRIMARY KEY (id_install),
KEY filename (filename(15))
) ENGINE=MyISAM;
#
# Table structure for table `log_polls`
#
CREATE TABLE {$db_prefix}log_polls (
id_poll mediumint(8) unsigned NOT NULL default '0',
id_member mediumint(8) unsigned NOT NULL default '0',
id_choice tinyint(3) unsigned NOT NULL default '0',
KEY id_poll (id_poll, id_member, id_choice)
) ENGINE=MyISAM;
#
# Table structure for table `log_reported`
#
CREATE TABLE {$db_prefix}log_reported (
id_report mediumint(8) unsigned NOT NULL auto_increment,
id_msg int(10) unsigned NOT NULL default '0',
id_topic mediumint(8) unsigned NOT NULL default '0',
id_board smallint(5) unsigned NOT NULL default '0',
id_member mediumint(8) unsigned NOT NULL default '0',
membername varchar(255) NOT NULL default '',
subject varchar(255) NOT NULL default '',
body text NOT NULL,
time_started int(10) NOT NULL default '0',
time_updated int(10) NOT NULL default '0',
num_reports mediumint(6) NOT NULL default '0',
closed tinyint(3) NOT NULL default '0',
ignore_all tinyint(3) NOT NULL default '0',
PRIMARY KEY (id_report),
KEY id_member (id_member),
KEY id_topic (id_topic),
KEY closed (closed),
KEY time_started (time_started),
KEY id_msg (id_msg)
) ENGINE=MyISAM;
#
# Table structure for table `log_reported_comments`
#
CREATE TABLE {$db_prefix}log_reported_comments (
id_comment mediumint(8) unsigned NOT NULL auto_increment,
id_report mediumint(8) NOT NULL default '0',
id_member mediumint(8) NOT NULL,
membername varchar(255) NOT NULL default '',
email_address varchar(255) NOT NULL default '',
member_ip varchar(255) NOT NULL default '',
comment varchar(255) NOT NULL default '',
time_sent int(10) NOT NULL,
PRIMARY KEY (id_comment),
KEY id_report (id_report),
KEY id_member (id_member),
KEY time_sent (time_sent)
) ENGINE=MyISAM;
#
# Table structure for table `log_scheduled_tasks`
#
CREATE TABLE {$db_prefix}log_scheduled_tasks (
id_log mediumint(8) NOT NULL auto_increment,
id_task smallint(5) NOT NULL default '0',
time_run int(10) NOT NULL default '0',
time_taken float NOT NULL default '0',
PRIMARY KEY (id_log)
) ENGINE=MyISAM;
#
# Table structure for table `log_search_messages`
#
CREATE TABLE {$db_prefix}log_search_messages (
id_search tinyint(3) unsigned NOT NULL default '0',
id_msg int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id_search, id_msg)
) ENGINE=MyISAM;
#
# Table structure for table `log_search_results`
#
CREATE TABLE {$db_prefix}log_search_results (
id_search tinyint(3) unsigned NOT NULL default '0',
id_topic mediumint(8) unsigned NOT NULL default '0',
id_msg int(10) unsigned NOT NULL default '0',
relevance smallint(5) unsigned NOT NULL default '0',
num_matches smallint(5) unsigned NOT NULL default '0',
PRIMARY KEY (id_search, id_topic)
) ENGINE=MyISAM;
#
# Table structure for table `log_search_subjects`
#
CREATE TABLE {$db_prefix}log_search_subjects (
word varchar(20) NOT NULL default '',
id_topic mediumint(8) unsigned NOT NULL default '0',
PRIMARY KEY (word, id_topic),
KEY id_topic (id_topic)
) ENGINE=MyISAM;
#
# Table structure for table `log_search_topics`
#
CREATE TABLE {$db_prefix}log_search_topics (
id_search tinyint(3) unsigned NOT NULL default '0',
id_topic mediumint(8) unsigned NOT NULL default '0',
PRIMARY KEY (id_search, id_topic)
) ENGINE=MyISAM;
#
# Table structure for table `log_spider_hits`
#
CREATE TABLE {$db_prefix}log_spider_hits (
id_hit int(10) unsigned NOT NULL auto_increment,
id_spider smallint(5) unsigned NOT NULL default '0',
log_time int(10) unsigned NOT NULL default '0',
url varchar(255) NOT NULL default '',
processed tinyint(3) NOT NULL default '0',
PRIMARY KEY (id_hit),
KEY id_spider(id_spider),
KEY log_time(log_time),
KEY processed (processed)
) ENGINE=MyISAM;
#
# Table structure for table `log_spider_stats`
#
CREATE TABLE {$db_prefix}log_spider_stats (
id_spider smallint(5) unsigned NOT NULL default '0',
page_hits smallint(5) unsigned NOT NULL default '0',
last_seen int(10) unsigned NOT NULL default '0',
stat_date date NOT NULL default '0001-01-01',
PRIMARY KEY (stat_date, id_spider)
) ENGINE=MyISAM;