-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish_postgresql.sql
executable file
·2786 lines (2485 loc) · 88.2 KB
/
publish_postgresql.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
CREATE TABLE eZAd_Ad(
ID int NOT NULL,
Name varchar(150) default NULL,
ImageID int default NULL,
URL varchar(200) default NULL,
Description text,
IsActive int not null,
ViewPrice float default 0.0,
ClickPrice float default 0.0,
HTMLBanner text default null,
UseHTML int NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZAd_AdCategoryLink (
ID int NOT NULL,
CategoryID int default NULL,
AdID int default NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZAd_Category (
ID int NOT NULL,
Name varchar(150) default NULL,
Description text,
ParentID int not NULL,
ExcludeFromSearch int default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZAd_Click (
ID int NOT NULL,
AdID int default NULL,
PageViewID int default NULL,
ClickPrice decimal(10,2) default NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZAd_View (
ID int NOT NULL,
AdID int default NULL,
ViewCount int NOT NULL,
ViewOffsetCount int NOT NULL,
ViewPrice decimal(10,2) NOT NULL,
Date int default NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZAddress_Address (
ID int NOT NULL,
Street1 varchar(50),
Street2 varchar(50),
AddressTypeID int,
Place varchar(50),
Zip varchar(10),
CountryID int,
Name varchar(50),
PRIMARY KEY (ID)
);
INSERT INTO eZAddress_Address VALUES (1,'Adminstreet1','Adminstreet2',0,'Noplace','42',0);
CREATE TABLE eZAddress_AddressDefinition (
UserID int NOT NULL,
AddressID int NOT NULL,
PRIMARY KEY (UserID,AddressID)
);
CREATE TABLE eZAddress_AddressType (
ID int NOT NULL,
Name varchar(50),
ListOrder int NOT NULL,
Removed int NOT NULL DEFAULT '0',
PRIMARY KEY (ID)
);
INSERT INTO eZAddress_AddressType VALUES (1,'Post adresse',1,0);
CREATE TABLE eZAddress_Country (
ID int NOT NULL,
ISO varchar(2),
Name varchar(100),
HasVAT int DEFAULT '0',
Removed int DEFAULT '0' NOT NULL,
PRIMARY KEY (ID)
);
INSERT INTO eZAddress_Country VALUES (2,'AF','Afghanistan',0);
INSERT INTO eZAddress_Country VALUES (3,'AL','Albania',0);
INSERT INTO eZAddress_Country VALUES (4,'DZ','Algeria',0);
INSERT INTO eZAddress_Country VALUES (5,'AS','American Samoa',0);
INSERT INTO eZAddress_Country VALUES (6,'AD','Andorra',0);
INSERT INTO eZAddress_Country VALUES (7,'AO','Angola',0);
INSERT INTO eZAddress_Country VALUES (8,'AI','Anguilla',0);
INSERT INTO eZAddress_Country VALUES (9,'AQ','Antarctica',0);
INSERT INTO eZAddress_Country VALUES (10,'AG','Antigua and Barbuda',0);
INSERT INTO eZAddress_Country VALUES (11,'AR','Argentina',0);
INSERT INTO eZAddress_Country VALUES (12,'AM','Armenia',0);
INSERT INTO eZAddress_Country VALUES (13,'AW','Aruba',0);
INSERT INTO eZAddress_Country VALUES (14,'AU','Australia',0);
INSERT INTO eZAddress_Country VALUES (15,'AT','Austria',0);
INSERT INTO eZAddress_Country VALUES (16,'AZ','Azerbaijan',0);
INSERT INTO eZAddress_Country VALUES (17,'BS','Bahamas',0);
INSERT INTO eZAddress_Country VALUES (18,'BH','Bahrain',0);
INSERT INTO eZAddress_Country VALUES (19,'BD','Bangladesh',0);
INSERT INTO eZAddress_Country VALUES (20,'BB','Barbados',0);
INSERT INTO eZAddress_Country VALUES (21,'BY','Belarus',0);
INSERT INTO eZAddress_Country VALUES (22,'BE','Belgium',0);
INSERT INTO eZAddress_Country VALUES (23,'BZ','Belize',0);
INSERT INTO eZAddress_Country VALUES (24,'BJ','Benin',0);
INSERT INTO eZAddress_Country VALUES (25,'BM','Bermuda',0);
INSERT INTO eZAddress_Country VALUES (26,'BT','Bhutan',0);
INSERT INTO eZAddress_Country VALUES (27,'BO','Bolivia',0);
INSERT INTO eZAddress_Country VALUES (28,'BA','Bosnia and Herzegovina',0);
INSERT INTO eZAddress_Country VALUES (29,'BW','Botswana',0);
INSERT INTO eZAddress_Country VALUES (30,'BV','Bouvet Island',0);
INSERT INTO eZAddress_Country VALUES (31,'BR','Brazil',0);
INSERT INTO eZAddress_Country VALUES (32,'IO','British Indian Ocean Territory',0);
INSERT INTO eZAddress_Country VALUES (33,'BN','Brunei Darussalam',0);
INSERT INTO eZAddress_Country VALUES (34,'BG','Bulgaria',0);
INSERT INTO eZAddress_Country VALUES (35,'BF','Burkina Faso',0);
INSERT INTO eZAddress_Country VALUES (36,'BI','Burundi',0);
INSERT INTO eZAddress_Country VALUES (37,'KH','Cambodia',0);
INSERT INTO eZAddress_Country VALUES (38,'CM','Cameroon',0);
INSERT INTO eZAddress_Country VALUES (39,'CA','Canada',0);
INSERT INTO eZAddress_Country VALUES (40,'CV','Cape Verde',0);
INSERT INTO eZAddress_Country VALUES (41,'KY','Cayman Islands',0);
INSERT INTO eZAddress_Country VALUES (42,'CF','Central African Republic',0);
INSERT INTO eZAddress_Country VALUES (43,'TD','Chad',0);
INSERT INTO eZAddress_Country VALUES (44,'CL','Chile',0);
INSERT INTO eZAddress_Country VALUES (45,'CN','China',0);
INSERT INTO eZAddress_Country VALUES (46,'CX','Christmas Island',0);
INSERT INTO eZAddress_Country VALUES (47,'CC','Cocos (Keeling) Islands',0);
INSERT INTO eZAddress_Country VALUES (48,'CO','Colombia',0);
INSERT INTO eZAddress_Country VALUES (49,'KM','Comoros',0);
INSERT INTO eZAddress_Country VALUES (50,'CG','Congo',0);
INSERT INTO eZAddress_Country VALUES (51,'CK','Cook Islands',0);
INSERT INTO eZAddress_Country VALUES (52,'CR','Costa Rica',0);
INSERT INTO eZAddress_Country VALUES (53,'CI','Cote d\'Ivoire',0);
INSERT INTO eZAddress_Country VALUES (54,'HR','Croatia',0);
INSERT INTO eZAddress_Country VALUES (55,'CU','Cuba',0);
INSERT INTO eZAddress_Country VALUES (56,'CY','Cyprus',0);
INSERT INTO eZAddress_Country VALUES (57,'CZ','Czech Republic',0);
INSERT INTO eZAddress_Country VALUES (58,'DK','Denmark',0);
INSERT INTO eZAddress_Country VALUES (59,'DJ','Djibouti',0);
INSERT INTO eZAddress_Country VALUES (60,'DM','Dominica',0);
INSERT INTO eZAddress_Country VALUES (61,'DO','Dominican Republic',0);
INSERT INTO eZAddress_Country VALUES (62,'TP','East Timor',0);
INSERT INTO eZAddress_Country VALUES (63,'EC','Ecuador',0);
INSERT INTO eZAddress_Country VALUES (64,'EG','Egypt',0);
INSERT INTO eZAddress_Country VALUES (65,'SV','El Salvador',0);
INSERT INTO eZAddress_Country VALUES (66,'GQ','Equatorial Guinea',0);
INSERT INTO eZAddress_Country VALUES (67,'ER','Eritrea',0);
INSERT INTO eZAddress_Country VALUES (68,'EE','Estonia',0);
INSERT INTO eZAddress_Country VALUES (69,'ET','Ethiopia',0);
INSERT INTO eZAddress_Country VALUES (70,'FK','Falkland Islands (Malvinas)',0);
INSERT INTO eZAddress_Country VALUES (71,'FO','Faroe Islands',0);
INSERT INTO eZAddress_Country VALUES (72,'FJ','Fiji',0);
INSERT INTO eZAddress_Country VALUES (73,'FI','Finland',0);
INSERT INTO eZAddress_Country VALUES (74,'FR','France',0);
INSERT INTO eZAddress_Country VALUES (75,'FX','France, Metropolitan',0);
INSERT INTO eZAddress_Country VALUES (76,'GF','French Guiana',0);
INSERT INTO eZAddress_Country VALUES (77,'PF','French Polynesia',0);
INSERT INTO eZAddress_Country VALUES (78,'TF','French Southern Territories',0);
INSERT INTO eZAddress_Country VALUES (79,'GA','Gabon',0);
INSERT INTO eZAddress_Country VALUES (80,'GM','Gambia',0);
INSERT INTO eZAddress_Country VALUES (81,'GE','Georgia',0);
INSERT INTO eZAddress_Country VALUES (82,'DE','Germany',0);
INSERT INTO eZAddress_Country VALUES (83,'GH','Ghana',0);
INSERT INTO eZAddress_Country VALUES (84,'GI','Gibraltar',0);
INSERT INTO eZAddress_Country VALUES (85,'GR','Greece',0);
INSERT INTO eZAddress_Country VALUES (86,'GL','Greenland',0);
INSERT INTO eZAddress_Country VALUES (87,'GD','Grenada',0);
INSERT INTO eZAddress_Country VALUES (88,'GP','Guadeloupe',0);
INSERT INTO eZAddress_Country VALUES (89,'GU','Guam',0);
INSERT INTO eZAddress_Country VALUES (90,'GT','Guatemala',0);
INSERT INTO eZAddress_Country VALUES (91,'GN','Guinea',0);
INSERT INTO eZAddress_Country VALUES (92,'GW','Guinea-Bissau',0);
INSERT INTO eZAddress_Country VALUES (93,'GY','Guyana',0);
INSERT INTO eZAddress_Country VALUES (94,'HT','Haiti',0);
INSERT INTO eZAddress_Country VALUES (95,'HM','Heard Island and McDonald Islands',0);
INSERT INTO eZAddress_Country VALUES (96,'HN','Honduras',0);
INSERT INTO eZAddress_Country VALUES (97,'HK','Hong Kong',0);
INSERT INTO eZAddress_Country VALUES (98,'HU','Hungary',0);
INSERT INTO eZAddress_Country VALUES (99,'IS','Iceland',0);
INSERT INTO eZAddress_Country VALUES (100,'IN','India',0);
INSERT INTO eZAddress_Country VALUES (101,'ID','Indonesia',0);
INSERT INTO eZAddress_Country VALUES (102,'IR','Iran (Islamic Republic of)',0);
INSERT INTO eZAddress_Country VALUES (103,'IQ','Iraq',0);
INSERT INTO eZAddress_Country VALUES (104,'IE','Ireland',0);
INSERT INTO eZAddress_Country VALUES (105,'IL','Israel',0);
INSERT INTO eZAddress_Country VALUES (106,'IT','Italy',0);
INSERT INTO eZAddress_Country VALUES (107,'JM','Jamaica',0);
INSERT INTO eZAddress_Country VALUES (108,'JP','Japan',0);
INSERT INTO eZAddress_Country VALUES (109,'JO','Jordan',0);
INSERT INTO eZAddress_Country VALUES (110,'KZ','Kazakhstan',0);
INSERT INTO eZAddress_Country VALUES (111,'KE','Kenya',0);
INSERT INTO eZAddress_Country VALUES (112,'KI','Kiribati',0);
INSERT INTO eZAddress_Country VALUES (113,'KP','Korea, Democratic People\'s Republic of',0);
INSERT INTO eZAddress_Country VALUES (114,'KR','Korea, Republic of',0);
INSERT INTO eZAddress_Country VALUES (115,'KW','Kuwait',0);
INSERT INTO eZAddress_Country VALUES (116,'KG','Kyrgyzstan',0);
INSERT INTO eZAddress_Country VALUES (117,'LA','Lao People\'s Democratic Republic',0);
INSERT INTO eZAddress_Country VALUES (118,'LT','Latin America',0);
INSERT INTO eZAddress_Country VALUES (119,'LV','Latvia',0);
INSERT INTO eZAddress_Country VALUES (120,'LB','Lebanon',0);
INSERT INTO eZAddress_Country VALUES (121,'LS','Lesotho',0);
INSERT INTO eZAddress_Country VALUES (122,'LR','Liberia',0);
INSERT INTO eZAddress_Country VALUES (123,'LY','Libyan Arab Jamahiriya',0);
INSERT INTO eZAddress_Country VALUES (124,'LI','Liechtenstein',0);
INSERT INTO eZAddress_Country VALUES (125,'LX','Lithuania',0);
INSERT INTO eZAddress_Country VALUES (126,'LU','Luxembourg',0);
INSERT INTO eZAddress_Country VALUES (127,'MO','Macau',0);
INSERT INTO eZAddress_Country VALUES (128,'MK','Macedonia',0);
INSERT INTO eZAddress_Country VALUES (129,'MG','Madagascar',0);
INSERT INTO eZAddress_Country VALUES (130,'MW','Malawi',0);
INSERT INTO eZAddress_Country VALUES (131,'MY','Malaysia',0);
INSERT INTO eZAddress_Country VALUES (132,'MV','Maldives',0);
INSERT INTO eZAddress_Country VALUES (133,'ML','Mali',0);
INSERT INTO eZAddress_Country VALUES (134,'MT','Malta',0);
INSERT INTO eZAddress_Country VALUES (135,'MH','Marshall Islands',0);
INSERT INTO eZAddress_Country VALUES (136,'MQ','Martinique',0);
INSERT INTO eZAddress_Country VALUES (137,'MR','Mauritania',0);
INSERT INTO eZAddress_Country VALUES (138,'MU','Mauritius',0);
INSERT INTO eZAddress_Country VALUES (139,'YT','Mayotte',0);
INSERT INTO eZAddress_Country VALUES (140,'MX','Mexico',0);
INSERT INTO eZAddress_Country VALUES (141,'FM','Micronesia (Federated States of)',0);
INSERT INTO eZAddress_Country VALUES (142,'MD','Moldova, Republic of',0);
INSERT INTO eZAddress_Country VALUES (143,'MC','Monaco',0);
INSERT INTO eZAddress_Country VALUES (144,'MN','Mongolia',0);
INSERT INTO eZAddress_Country VALUES (145,'MS','Montserrat',0);
INSERT INTO eZAddress_Country VALUES (146,'MA','Morocco',0);
INSERT INTO eZAddress_Country VALUES (147,'MZ','Mozambique',0);
INSERT INTO eZAddress_Country VALUES (148,'MM','Myanmar',0);
INSERT INTO eZAddress_Country VALUES (149,'NA','Namibia',0);
INSERT INTO eZAddress_Country VALUES (150,'NR','Nauru',0);
INSERT INTO eZAddress_Country VALUES (151,'NP','Nepal',0);
INSERT INTO eZAddress_Country VALUES (152,'NL','Netherlands',0);
INSERT INTO eZAddress_Country VALUES (153,'AN','Netherlands Antilles',0);
INSERT INTO eZAddress_Country VALUES (154,'NC','New Caledonia',0);
INSERT INTO eZAddress_Country VALUES (155,'NZ','New Zealand',0);
INSERT INTO eZAddress_Country VALUES (156,'NI','Nicaragua',0);
INSERT INTO eZAddress_Country VALUES (157,'NE','Niger',0);
INSERT INTO eZAddress_Country VALUES (158,'NG','Nigeria',0);
INSERT INTO eZAddress_Country VALUES (159,'NU','Niue',0);
INSERT INTO eZAddress_Country VALUES (160,'NF','Norfolk Island',0);
INSERT INTO eZAddress_Country VALUES (161,'MP','Northern Mariana Islands',0);
INSERT INTO eZAddress_Country VALUES (162,'NO','Norway',0);
INSERT INTO eZAddress_Country VALUES (163,'OM','Oman',0);
INSERT INTO eZAddress_Country VALUES (164,'PK','Pakistan',0);
INSERT INTO eZAddress_Country VALUES (165,'PW','Palau',0);
INSERT INTO eZAddress_Country VALUES (166,'PA','Panama',0);
INSERT INTO eZAddress_Country VALUES (167,'PG','Papua New Guinea',0);
INSERT INTO eZAddress_Country VALUES (168,'PY','Paraguay',0);
INSERT INTO eZAddress_Country VALUES (169,'PE','Peru',0);
INSERT INTO eZAddress_Country VALUES (170,'PH','Philippines',0);
INSERT INTO eZAddress_Country VALUES (171,'PN','Pitcairn',0);
INSERT INTO eZAddress_Country VALUES (172,'PL','Poland',0);
INSERT INTO eZAddress_Country VALUES (173,'PT','Portugal',0);
INSERT INTO eZAddress_Country VALUES (174,'PR','Puerto Rico',0);
INSERT INTO eZAddress_Country VALUES (175,'QA','Qatar',0);
INSERT INTO eZAddress_Country VALUES (176,'RE','Reunion',0);
INSERT INTO eZAddress_Country VALUES (177,'RO','Romania',0);
INSERT INTO eZAddress_Country VALUES (178,'RU','Russian Federation',0);
INSERT INTO eZAddress_Country VALUES (179,'RW','Rwanda',0);
INSERT INTO eZAddress_Country VALUES (180,'SH','Saint Helena',0);
INSERT INTO eZAddress_Country VALUES (181,'KN','Saint Kitts and Nevis',0);
INSERT INTO eZAddress_Country VALUES (182,'LC','Saint Lucia',0);
INSERT INTO eZAddress_Country VALUES (183,'PM','Saint Pierre and Miquelon',0);
INSERT INTO eZAddress_Country VALUES (184,'VC','Saint Vincent and the Grenadines',0);
INSERT INTO eZAddress_Country VALUES (185,'WS','Samoa',0);
INSERT INTO eZAddress_Country VALUES (186,'SM','San Marino',0);
INSERT INTO eZAddress_Country VALUES (187,'ST','Sao Tome and Principe',0);
INSERT INTO eZAddress_Country VALUES (188,'SA','Saudi Arabia',0);
INSERT INTO eZAddress_Country VALUES (189,'SN','Senegal',0);
INSERT INTO eZAddress_Country VALUES (190,'SC','Seychelles',0);
INSERT INTO eZAddress_Country VALUES (191,'SL','Sierra Leone',0);
INSERT INTO eZAddress_Country VALUES (192,'SG','Singapore',0);
INSERT INTO eZAddress_Country VALUES (193,'SK','Slovakia',0);
INSERT INTO eZAddress_Country VALUES (194,'SI','Slovenia',0);
INSERT INTO eZAddress_Country VALUES (195,'SB','Solomon Islands',0);
INSERT INTO eZAddress_Country VALUES (196,'SO','Somalia',0);
INSERT INTO eZAddress_Country VALUES (197,'ZA','South Africa',0);
INSERT INTO eZAddress_Country VALUES (198,'GS','South Georgia and the South Sandwich Island',0);
INSERT INTO eZAddress_Country VALUES (199,'ES','Spain',0);
INSERT INTO eZAddress_Country VALUES (200,'LK','Sri Lanka',0);
INSERT INTO eZAddress_Country VALUES (201,'SD','Sudan',0);
INSERT INTO eZAddress_Country VALUES (202,'SR','Suriname',0);
INSERT INTO eZAddress_Country VALUES (203,'SJ','Svalbard and Jan Mayen Islands',0);
INSERT INTO eZAddress_Country VALUES (204,'SZ','Swaziland',0);
INSERT INTO eZAddress_Country VALUES (205,'SE','Sweden',0);
INSERT INTO eZAddress_Country VALUES (206,'CH','Switzerland',0);
INSERT INTO eZAddress_Country VALUES (207,'SY','Syrian Arab Republic',0);
INSERT INTO eZAddress_Country VALUES (208,'TW','Taiwan, Republic of China',0);
INSERT INTO eZAddress_Country VALUES (209,'TJ','Tajikistan',0);
INSERT INTO eZAddress_Country VALUES (210,'TZ','Tanzania, United Republic of',0);
INSERT INTO eZAddress_Country VALUES (211,'TH','Thailand',0);
INSERT INTO eZAddress_Country VALUES (212,'TG','Togo',0);
INSERT INTO eZAddress_Country VALUES (213,'TK','Tokelau',0);
INSERT INTO eZAddress_Country VALUES (214,'TO','Tonga',0);
INSERT INTO eZAddress_Country VALUES (215,'TT','Trinidad and Tobago',0);
INSERT INTO eZAddress_Country VALUES (216,'TN','Tunisia',0);
INSERT INTO eZAddress_Country VALUES (217,'TR','Turkey',0);
INSERT INTO eZAddress_Country VALUES (218,'TM','Turkmenistan',0);
INSERT INTO eZAddress_Country VALUES (219,'TC','Turks and Caicos Islands',0);
INSERT INTO eZAddress_Country VALUES (220,'TV','Tuvalu',0);
INSERT INTO eZAddress_Country VALUES (221,'UG','Uganda',0);
INSERT INTO eZAddress_Country VALUES (222,'UA','Ukraine',0);
INSERT INTO eZAddress_Country VALUES (223,'AE','United Arab Emirates',0);
INSERT INTO eZAddress_Country VALUES (224,'GB','United Kingdom',0);
INSERT INTO eZAddress_Country VALUES (225,'UM','United States Minor Outlying Islands',0);
INSERT INTO eZAddress_Country VALUES (226,'UY','Uruguay',0);
INSERT INTO eZAddress_Country VALUES (227,'UZ','Uzbekistan',0);
INSERT INTO eZAddress_Country VALUES (228,'VU','Vanuatu',0);
INSERT INTO eZAddress_Country VALUES (229,'VA','Vatican City State (Holy See)',0);
INSERT INTO eZAddress_Country VALUES (230,'VE','Venezuela',0);
INSERT INTO eZAddress_Country VALUES (231,'VN','Viet Nam',0);
INSERT INTO eZAddress_Country VALUES (232,'VG','Virgin Islands (British)',0);
INSERT INTO eZAddress_Country VALUES (233,'VI','Virgin Islands (U.S.)',0);
INSERT INTO eZAddress_Country VALUES (234,'WF','Wallis and Futuna Islands',0);
INSERT INTO eZAddress_Country VALUES (235,'EH','Western Sahara',0);
INSERT INTO eZAddress_Country VALUES (236,'YE','Yemen',0);
INSERT INTO eZAddress_Country VALUES (237,'YU','Yugoslavia',0);
INSERT INTO eZAddress_Country VALUES (238,'ZR','Zaire',0);
INSERT INTO eZAddress_Country VALUES (239,'ZM','Zambia',0);
INSERT INTO eZAddress_Country VALUES (240,'US','United States of America',0);
CREATE TABLE eZAddress_Online (
ID int NOT NULL,
URL varchar(255),
OnlineTypeID int,
PRIMARY KEY (ID)
);
CREATE TABLE eZAddress_OnlineType (
ID int DEFAULT '0' NOT NULL,
Name varchar(50),
ListOrder int DEFAULT '0' NOT NULL,
URLPrefix varchar(30) DEFAULT '' NOT NULL,
PrefixLink int DEFAULT '0' NOT NULL,
PrefixVisual int DEFAULT '0' NOT NULL,
Removed int DEFAULT '0' NOT NULL,
PRIMARY KEY (ID)
);
INSERT INTO eZAddress_OnlineType VALUES (1,'Email',1,'mailto:',1,0,0);
CREATE TABLE eZAddress_Phone (
ID int NOT NULL,
Number varchar(22),
PhoneTypeID int,
PRIMARY KEY (ID)
);
CREATE TABLE eZAddress_PhoneType (
ID int NOT NULL,
Name varchar(50),
ListOrder int DEFAULT '0' NOT NULL,
Removed int DEFAULT '0' NOT NULL,
PRIMARY KEY (ID)
);
INSERT INTO eZAddress_PhoneType VALUES (1,'Telefon',1,0);
CREATE TABLE eZArticle_Article (
ID int NOT NULL,
Name varchar(100) default NULL,
Contents text,
ContentsWriterID int default NULL,
LinkText varchar(50) default NULL,
AuthorID int NOT NULL default '0',
Modified int NOT NULL,
Created int NOT NULL,
Published int NOT NULL,
PageCount int default NULL,
IsPublished int default '0',
Keywords text,
Discuss int default '0',
TopicID int NOT NULL default '0',
StartDate int NOT NULL,
StopDate int NOT NULL,
ImportID varchar(255) default NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_ArticleCategoryDefinition (
ID int NOT NULL,
ArticleID int NOT NULL default '0',
CategoryID int NOT NULL default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_ArticleCategoryLink (
ID int NOT NULL,
ArticleID int NOT NULL default '0',
CategoryID int NOT NULL default '0',
Placement int NOT NULL default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_ArticleFileLink (
ID int NOT NULL,
ArticleID int NOT NULL default '0',
FileID int NOT NULL default '0',
Created int NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_ArticleFormDict (
ID int NOT NULL,
ArticleID int default NULL,
FormID int default NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_ArticleForumLink (
ID int NOT NULL,
ArticleID int NOT NULL default '0',
ForumID int NOT NULL default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_ArticleImageDefinition (
ArticleID int NOT NULL default '0',
ThumbnailImageID int default NULL,
PRIMARY KEY (ArticleID )
);
CREATE TABLE eZArticle_ArticleImageLink (
ID int NOT NULL,
ArticleID int NOT NULL default '0',
ImageID int NOT NULL default '0',
Created int NOT NULL,
Placement int NOT NULL default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_ArticleKeyword (
ID int NOT NULL,
ArticleID int NOT NULL default '0',
Keyword varchar(50) NOT NULL default '',
Automatic int NOT NULL default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_ArticlePermission (
ID int NOT NULL,
ObjectID int default NULL,
GroupID int default NULL,
ReadPermission int default '0',
WritePermission int default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_ArticleTypeLink (
ID int NOT NULL,
ArticleID int default NULL,
TypeID int default NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_Attribute (
ID int NOT NULL,
TypeID int default NULL,
Name varchar(150) default NULL,
Placement int default NULL,
Created int NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_AttributeValue (
ID int NOT NULL,
ArticleID int default NULL,
AttributeID int default NULL,
Value text,
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_BulkMailCategoryLink (
ArticleCategoryID int NOT NULL default '0',
BulkMailCategoryID int NOT NULL default '0',
PRIMARY KEY (ArticleCategoryID,BulkMailCategoryID)
);
CREATE TABLE eZArticle_Category (
ID int NOT NULL,
Name varchar(100) default NULL,
Description text,
ParentID int default '0',
ExcludeFromSearch int default '0',
SortMode int NOT NULL default '1',
OwnerID int default '0',
Placement int default '0',
SectionID int NOT NULL default '0',
ImageID int default NULL,
EditorGroupID int default '0',
ListLimit int default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_CategoryPermission (
ID int NOT NULL,
ObjectID int default NULL,
GroupID int default NULL,
ReadPermission int default '0',
WritePermission int default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_CategoryReaderLink (
ID int NOT NULL,
CategoryID int NOT NULL default '0',
GroupID int NOT NULL default '0',
Created int NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_Log (
ID int NOT NULL,
ArticleID int NOT NULL default '0',
Created int NOT NULL,
Message text NOT NULL,
UserID int NOT NULL default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_Topic (
ID int NOT NULL,
Name varchar(255) default NULL,
Description text,
Created int NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_Type (
ID int NOT NULL,
Name varchar(150) default NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_ArticleMediaLink (
ID int NOT NULL,
ArticleID int NOT NULL default '0',
MediaID int NOT NULL default '0',
Created int default NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZArticle_ArticleWordLink (
ArticleID int NOT NULL default '0',
Frequency float default 0.2,
WordID int NOT NULL default '0'
);
CREATE TABLE eZArticle_Word (
ID int NOT NULL default '0',
Frequency float default 0.2,
Word varchar(50) NOT NULL default ''
);
CREATE TABLE eZArticle_ArticleKeywordFirstLetter (
ID int NOT NULL default '0',
Letter char(1) NOT NULL default ''
);
CREATE INDEX Article_Name ON eZArticle_Article (Name);
CREATE INDEX Article_Published ON eZArticle_Article (Published);
CREATE INDEX Link_ArticleID ON eZArticle_ArticleCategoryLink (ArticleID);
CREATE INDEX Link_CategoryID ON eZArticle_ArticleCategoryLink (CategoryID);
CREATE INDEX Link_Placement ON eZArticle_ArticleCategoryLink (Placement);
CREATE INDEX WordLink_ArticleID ON eZArticle_ArticleWordLink (ArticleID);
CREATE INDEX WordLink_WordID ON eZArticle_ArticleWordLink (WordID);
CREATE INDEX Word_Word ON eZArticle_Word (Word);
CREATE UNIQUE INDEX Word_ID ON eZArticle_Word (ID);
CREATE INDEX ArticlePermission_ObjectID ON eZArticle_ArticlePermission (ObjectID);
CREATE INDEX ArticlePermission_GroupID ON eZArticle_ArticlePermission (GroupID);
CREATE INDEX Def_ArticleID ON eZArticle_ArticleCategoryDefinition (ArticleID);
CREATE INDEX Def_CategoryID ON eZArticle_ArticleCategoryDefinition (CategoryID);
CREATE TABLE eZBug_Bug (
ID int NOT NULL,
Name varchar(150),
Description text,
UserID int DEFAULT '0' NOT NULL,
Created int,
IsHandled int DEFAULT '0' NOT NULL,
PriorityID int DEFAULT '0' NOT NULL,
StatusID int DEFAULT '0' NOT NULL,
IsClosed int DEFAULT '0',
Version varchar(150) DEFAULT '',
UserEmail varchar(100) DEFAULT '',
OwnerID int default NULL,
IsPrivate int default '0',
PRIMARY KEY (ID)
);
INSERT INTO eZBug_Bug VALUES (1,'Help!','It dosent work!',33,997357856,0,0,0,'','','','','0');
CREATE TABLE eZBug_BugCategoryLink (
ID int NOT NULL,
CategoryID int,
BugID int,
PRIMARY KEY (ID)
);
INSERT INTO eZBug_BugCategoryLink VALUES (1,2,1);
CREATE TABLE eZBug_BugFileLink (
ID int NOT NULL,
BugID int NOT NULL default '0',
FileID int NOT NULL default '0',
Created int NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZBug_BugImageLink (
ID int NOT NULL,
BugID int NOT NULL default '0',
ImageID int NOT NULL default '0',
Created int NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZBug_BugModuleLink (
ID int NOT NULL,
ModuleID int,
BugID int,
PRIMARY KEY (ID)
);
INSERT INTO eZBug_BugModuleLink VALUES (1,1,1);
CREATE TABLE eZBug_Category (
ID int NOT NULL,
Name varchar(150),
Description text,
PRIMARY KEY (ID)
);
INSERT INTO eZBug_Category VALUES (1,'GUI','');
INSERT INTO eZBug_Category VALUES (2,'Feature request','');
INSERT INTO eZBug_Category VALUES (3,'Suggestion','');
INSERT INTO eZBug_Category VALUES (4,'Enhancement','');
INSERT INTO eZBug_Category VALUES (5,'Bug','');
CREATE TABLE eZBug_Log (
ID int NOT NULL,
BugID int DEFAULT '0' NOT NULL,
UserID int DEFAULT '0' NOT NULL,
Description text,
Created int NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZBug_Module (
ID int NOT NULL,
ParentID int,
Name varchar(150),
Description text,
OwnerGroupID int default '0',
PRIMARY KEY (ID)
);
INSERT INTO eZBug_Module VALUES (1,0,'My program',1);
CREATE TABLE eZBug_Priority (
ID int NOT NULL,
Name varchar(150) DEFAULT '' NOT NULL,
Value int,
PRIMARY KEY (ID)
);
INSERT INTO eZBug_Priority VALUES (1,'High',NULL);
INSERT INTO eZBug_Priority VALUES (2,'Medium',NULL);
INSERT INTO eZBug_Priority VALUES (3,'Low',NULL);
INSERT INTO eZBug_Priority VALUES (4,'Critical',NULL);
CREATE TABLE eZBug_Status (
ID int NOT NULL,
Name varchar(150) DEFAULT '' NOT NULL,
PRIMARY KEY (ID)
);
INSERT INTO eZBug_Status VALUES (1,'Fixed');
INSERT INTO eZBug_Status VALUES (2,'Duplicate');
INSERT INTO eZBug_Status VALUES (3,'Invalid');
INSERT INTO eZBug_Status VALUES (4,'Will not fix');
INSERT INTO eZBug_Status VALUES (5,'Works here');
INSERT INTO eZBug_Status VALUES (6,'Future addition');
CREATE TABLE eZBug_ModulePermission (
ID int NOT NULL,
ObjectID int default NULL,
GroupID int default NULL,
ReadPermission int default '0',
WritePermission int default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZBulkMail_Category (
ID int NOT NULL,
Name varchar(200) default NULL,
Description text,
IsPublic int NOT NULL,
IsSingleCategory int default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZBulkMail_Mail (
ID int NOT NULL,
UserID int default '0',
FromField varchar(100) default NULL,
FromName varchar(100) default NULL,
ReplyTo varchar(100) default NULL,
Subject varchar(255) default NULL,
BodyText text,
SentDate int default 0,
IsDraft int NOT NULL default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZBulkMail_MailCategoryLink (
MailID int NOT NULL default '0',
CategoryID int NOT NULL default '0',
PRIMARY KEY (MailID,CategoryID)
);
CREATE TABLE eZBulkMail_MailTemplateLink (
MailID int NOT NULL default '0',
TemplateID int NOT NULL default '0',
PRIMARY KEY (MailID)
);
CREATE TABLE eZBulkMail_SentLog (
ID int NOT NULL,
MailID int NOT NULL default '0',
Mail varchar(255) default NULL,
SentDate int default NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZBulkMail_SubscriptionAddress (
ID int NOT NULL,
Password varchar(50) NOT NULL,
EMail varchar(255) default NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZBulkMail_SubscriptionLink (
CategoryID int NOT NULL default '0',
AddressID int NOT NULL default '0',
PRIMARY KEY (AddressID,CategoryID)
);
CREATE TABLE eZBulkMail_Template (
ID int NOT NULL,
Name varchar(200) default NULL,
Description varchar default NULL,
Header text,
Footer text,
PRIMARY KEY (ID)
);
CREATE TABLE eZBulkMail_GroupCategoryLink (
CategoryID int NOT NULL,
GroupID int NOT NULL,
PRIMARY KEY (CategoryID, GroupID)
);
CREATE TABLE eZBulkMail_Forgot (
ID int NOT NULL,
Mail varchar(255) NOT NULL,
Password varchar(50) NOT NULL,
Hash varchar(33),
Time int,
PRIMARY KEY (ID)
);
CREATE TABLE eZBulkMail_CategoryDelay (
ID int NOT NULL default '0',
CategoryID int NOT NULL default '0',
AddressID int NOT NULL default '0',
Delay int default '0',
MailID int default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZBulkMail_Offset (
ID int NOT NULL,
Hour int default NULL,
Daily int default NULL,
Weekly int default NULL,
Monthly int default NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZBulkMail_SubscriptionCategorySettings (
ID int NOT NULL,
CategoryID int NOT NULL default '0',
AddressID int NOT NULL default '0',
Delay int default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZBulkMail_UserCategoryDelay (
ID int NOT NULL,
CategoryID int default '0',
UserID int default '0',
Delay int default '0',
MailID int default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZBulkMail_UserCategoryLink (
UserID int NOT NULL default '0',
CategoryID int NOT NULL default '0',
PRIMARY KEY (UserID, CategoryID)
);
CREATE TABLE eZBulkMail_UserCategorySettings (
ID int NOT NULL,
CategoryID int default '0',
UserID int default '0',
Delay int default '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZCalendar_Appointment (
ID int NOT NULL,
UserID int DEFAULT '0' NOT NULL,
Date int,
Duration int,
AllDay int,
AppointmentTypeID int DEFAULT '0' NOT NULL,
EMailNotice int DEFAULT '0',
IsPrivate int,
Name varchar(200),
Description text,
Priority int DEFAULT '1' NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZCalendar_AppointmentType (
ID int NOT NULL,
ParentID int DEFAULT '0' NOT NULL,
Description varchar(200) DEFAULT NULL,
Name varchar(200),
PRIMARY KEY (ID)
);
CREATE TABLE eZContact_Company (
ID int NOT NULL,
CreatorID int DEFAULT '0' NOT NULL,
Name varchar(50) DEFAULT '' NOT NULL,
Comment text,
ContactType int DEFAULT '0' NOT NULL,
CompanyNo varchar(20) DEFAULT '' NOT NULL,
ContactID int DEFAULT '0',
PRIMARY KEY (ID)
);
CREATE TABLE eZContact_CompanyAddressDict (
CompanyID int NOT NULL,
AddressID int NOT NULL,
PRIMARY KEY (CompanyID,AddressID)
);
CREATE TABLE eZContact_CompanyImageDefinition (
CompanyID int NOT NULL,
CompanyImageID int DEFAULT '0' NOT NULL,
LogoImageID int DEFAULT '0' NOT NULL,
PRIMARY KEY (CompanyID)
);
CREATE TABLE eZContact_CompanyIndex (
CompanyID int NOT NULL default '0',
Value varchar(255) NOT NULL default '',
Type int NOT NULL default '0',
PRIMARY KEY (CompanyID,Value)
);
CREATE TABLE eZContact_CompanyOnlineDict (
CompanyID int NOT NULL,
OnlineID int NOT NULL,
PRIMARY KEY (CompanyID,OnlineID)
);
CREATE TABLE eZContact_CompanyPersonDict (
CompanyID int NOT NULL,
PersonID int NOT NULL,
PRIMARY KEY (CompanyID,PersonID)
);
CREATE TABLE eZContact_CompanyPhoneDict (
CompanyID int NOT NULL,
PhoneID int DEFAULT '0' NOT NULL,
PRIMARY KEY (CompanyID,PhoneID)
);
CREATE TABLE eZContact_CompanyProjectDict (
CompanyID int NOT NULL,
ProjectID int NOT NULL,
PRIMARY KEY (CompanyID,ProjectID)
);
CREATE TABLE eZContact_CompanyType (
ID int NOT NULL,
Name varchar(50) DEFAULT '' NOT NULL,
Description text,
ParentID int DEFAULT '0' NOT NULL,
ImageID int DEFAULT '0' NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZContact_CompanyTypeDict (
CompanyTypeID int NOT NULL,
CompanyID int NOT NULL,
PRIMARY KEY (CompanyTypeID,CompanyID)
);
CREATE TABLE eZContact_Consultation (
ID int NOT NULL,
ShortDesc varchar(100) DEFAULT '' NOT NULL,
Description text NOT NULL,
Date int,
StateID int DEFAULT '0' NOT NULL,
EmailNotifications varchar(255) DEFAULT '' NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZContact_ConsultationCompanyDict (
ConsultationID int DEFAULT '0' NOT NULL,
CompanyID int DEFAULT '0' NOT NULL,
PRIMARY KEY (ConsultationID,CompanyID)
);
CREATE TABLE eZContact_ConsultationCompanyUserDict (
ConsultationID int NOT NULL,
CompanyID int DEFAULT '0' NOT NULL,
UserID int DEFAULT '0' NOT NULL,
PRIMARY KEY (ConsultationID,CompanyID,UserID)
);
CREATE TABLE eZContact_ConsultationGroupsDict (
ConsultationID int NOT NULL,
GroupID int DEFAULT '0' NOT NULL,
PRIMARY KEY (ConsultationID,GroupID)
);
CREATE TABLE eZContact_ConsultationPersonUserDict (
ConsultationID int NOT NULL,
PersonID int DEFAULT '0' NOT NULL,
UserID int DEFAULT '0' NOT NULL,
PRIMARY KEY (ConsultationID,PersonID,UserID)
);
CREATE TABLE eZContact_ConsultationType (
ID int NOT NULL,
Name varchar(50),
ListOrder int DEFAULT '0' NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZContact_ContactType (
ID int NOT NULL,
Name varchar(50) DEFAULT '' NOT NULL,
Description text,
PRIMARY KEY (ID)
);
CREATE TABLE eZContact_Person (
ID int NOT NULL,
FirstName varchar(50),
LastName varchar(50),
BirthDate int,
Comment text,
ContactTypeID int,
ImageID int NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE eZContact_PersonAddressDict (
PersonID int NOT NULL,
AddressID int NOT NULL,
PRIMARY KEY (PersonID,AddressID)
);
CREATE TABLE eZContact_PersonIndex (
PersonID int NOT NULL default '0',
Value varchar(255) NOT NULL default '',
Type int NOT NULL default '0',
PRIMARY KEY (PersonID,Value)
);