-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdatabase.xml
More file actions
140 lines (130 loc) · 5.97 KB
/
database.xml
File metadata and controls
140 lines (130 loc) · 5.97 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<sql>
<name>Ionize Event Calender Module Database Creation</name>
<version>0.9.9</version>
<license>Open Source MIT license</license>
<!--
Module's tables
Prefixed by module_<module name> to avoid collision
-->
<tables>
<!--
Event Calendar Table
-->
<query>
CREATE TABLE IF NOT EXISTS module_eventcalendar (
id_event INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(255) DEFAULT NULL,
start_date DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
end_date DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
author VARCHAR(255) NOT NULL,
updater VARCHAR(255) NULL,
created DATETIME NOT NULL,
updated DATETIME NOT NULL,
id_category INT(11) UNSIGNED DEFAULT NULL,
id_article INT(11) UNSIGNED DEFAULT NULL,
PRIMARY KEY (id_event)
)
ENGINE = InnoDB
AUTO_INCREMENT = 1
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
</query>
<!--
<table name="module_eventcalendar" if_not_exists="true" engine="InnoDB" default_charset="utf8" collate="utf8_unicode_ci" auto_increment="1">
<primary_key>id_event</primary_key>
<column name="id_event" type="int" length="11" attributes="UNSIGNED" zerofill="NOT NULL" auto_increment="true" ></column>
<column name="name" type="varchar" length="255" zerofill="NOT NULL"></column>
<column name="start_date" type="datetime" zerofill="NOT NULL"></column>
<column name="end_date" type="datetime" default="0000-00-00 00-00-00" zerofill="NOT NULL"></column>
<column name="author" type="varchar" length="255" zerofill="NOT NULL"></column>
<column name="updater" type="varchar" length="255"></column>
<column name="created" type="datetime" zerofill="NOT NULL"></column>
<column name="updated" type="datetime"></column>
<column name="id_category" type="int" length="11" attributes="UNSIGNED"></column>
<column name="id_article" type="int" length="11" attributes="UNSIGNED"></column>
</table>
-->
<!--
Event Calendar Lang Table
-->
<query>
CREATE TABLE IF NOT EXISTS module_eventcalendar_lang (
id_event INT UNSIGNED NOT NULL,
lang VARCHAR(3) NOT NULL,
url VARCHAR(255) NOT NULL,
title VARCHAR(255) NULL,
subtitle VARCHAR(255) NULL,
description TEXT(0) NULL,
PRIMARY KEY (id_event,lang)
)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
</query>
<!--
<table name="module_eventcalendar_lang" if_not_exists="true" engine="InnoDB" default_charset="utf8" collate="utf8_unicode_ci" auto_increment="0">
<primary_key>id_event,lang</primary_key>
<column name="id_event" type="int" length="11" attributes="UNSIGNED" zerofill="NOT NULL" ></column>
<column name="url" type="varchar" length="255"></column>
<column name="lang" type="char" length="3" zerofill="NOT NULL"></column>
<column name="title" type="varchar" length="255" zerofill="NOT NULL"></column>
<column name="subtitle" type="varchar" length="255" zerofill="NOT NULL"></column>
<column name="description" type="text" zerofill="NOT NULL"></column>
</table>
-->
<!--
Event Calendar Category Table
-->
<query>
CREATE TABLE IF NOT EXISTS module_eventcalendar_category (
id_category INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(255) DEFAULT NULL,
color VARCHAR(7) DEFAULT '#FFFFFF',
PRIMARY KEY (id_category)
)
ENGINE = InnoDB
AUTO_INCREMENT = 1
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
</query>
<!--
<table name="module_eventcalendar_category" if_not_exists="true" engine="InnoDB" default_charset="utf8" collate="utf8_unicode_ci" auto_increment="0">
<primary_key>id_category</primary_key>
<column name="id_category" type="int" length="11" attributes="UNSIGNED" zerofill="NOT NULL" auto_increment="true"></column>
<column name="name" type="varchar" length="255" zerofill="NOT NULL"></column>
<column name="color" type="varchar" length="25" zerofill="NOT NULL"></column>
</table>
-->
<!--
Event Calendar Category Lang Table
-->
<query>
CREATE TABLE IF NOT EXISTS module_eventcalendar_category_lang (
id_category INT UNSIGNED NOT NULL,
lang VARCHAR(3) NOT NULL,
title VARCHAR(255) NULL,
subtitle VARCHAR(255) NULL,
description VARCHAR(3000) NULL,
PRIMARY KEY (id_category,lang)
)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
</query>
<!--
<table name="module_eventcalendar_category_lang" if_not_exists="true" engine="InnoDB" default_charset="utf8" collate="utf8_unicode_ci" auto_increment="0">
<primary_key>id_category,lang</primary_key>
<column name="id_category" type="int" length="11" attributes="UNSIGNED" zerofill="NOT NULL" ></column>
<column name="lang" type="char" length="3" zerofill="NOT NULL"></column>
<column name="title" type="varchar" length="255" zerofill="NOT NULL"></column>
<column name="subtitle" type="varchar" length="255" zerofill="NOT NULL"></column>
<column name="description" type="text" zerofill="NOT NULL"></column>
</table>
-->
</tables>
<!-- Content inserted at module's installation
<content>
</content>
-->
</sql>