Browse code

- modifications for postgres

Jan Janak authored on 26/08/2005 21:25:42
Showing 22 changed files
... ...
@@ -88,22 +88,22 @@
88 88
     <column>
89 89
 	<name>time</name>
90 90
 	<type>datetime</type>
91
-	<default>0000-00-00 00:00:00</default>
91
+	<default>1970-01-01 00:00:00</default>
92 92
     </column>
93 93
     <column>
94 94
 	<name>timestamp</name>
95 95
 	<type>datetime</type>
96
-	<default></default>
96
+	<default>1970-01-01 00:00:00</default>
97 97
     </column>
98 98
     <column>
99 99
 	<name>caller_deleted</name>
100 100
 	<type>char</type>
101
-	<default></default>
101
+	<default>0</default>
102 102
     </column>
103 103
     <column>
104 104
 	<name>callee_deleted</name>
105 105
 	<type>char</type>
106
-	<default></default>
106
+	<default>0</default>
107 107
     </column>
108 108
     <index>
109 109
 	<name>acc_user</name>
... ...
@@ -36,6 +36,7 @@
36 36
 	<size>64</size>
37 37
     </column>
38 38
     <index>
39
+	<name>adminpriv_idx1</name>
39 40
 	<colref linkend="username"/>
40 41
 	<colref linkend="priv_name"/>
41 42
 	<colref linkend="priv_value"/>
... ...
@@ -39,7 +39,7 @@
39 39
     <column>
40 40
 	<name>expires</name>
41 41
 	<type>datetime</type>
42
-	<default>1234</default>
42
+	<default>1970-01-01 00:00:00</default>
43 43
     </column>
44 44
     <column>
45 45
 	<name>q</name>
... ...
@@ -60,7 +60,7 @@
60 60
     <column>
61 61
 	<name>last_modified</name>
62 62
 	<type>datetime</type>
63
-	<default></default>
63
+	<default>1970-01-01 00:00:00</default>
64 64
     </column>
65 65
     <column>
66 66
 	<name>replicate</name>
... ...
@@ -20,9 +20,10 @@
20 20
     <column>
21 21
 	<name>last_modified</name>
22 22
 	<type>datetime</type>
23
-	<default>0</default>
23
+	<default>1970-01-01 00:00:00</default>
24 24
     </column>
25 25
     <index>
26
+	<name>domain_idx1</name>
26 27
 	<colref linkend="domain"/>
27 28
     </index>
28 29
 </table>
... ...
@@ -40,6 +40,7 @@
40 40
 	<size>128</size>
41 41
     </column>
42 42
     <index>
43
+	<name>id</name>
43 44
 	<colref linkend="id"/>
44 45
     </index>
45 46
 </table>
... ...
@@ -32,9 +32,10 @@
32 32
     <column>
33 33
 	<name>last_modified</name>
34 34
 	<type>datetime</type>
35
-	<default></default>
35
+	<default>1970-01-01 00:00:00</default>
36 36
     </column>
37 37
     <index>
38
+	<name>grp_idx</name>
38 39
 	<colref linkend="username"/>
39 40
 	<colref linkend="domain"/>
40 41
 	<colref linkend="grp"/>
... ...
@@ -39,9 +39,11 @@
39 39
 	<type>int</type>
40 40
     </column>
41 41
     <index>
42
+	<name>gw_idx1</name>
42 43
 	<colref linkend="gw_name"/>
43 44
     </index>
44 45
     <index>
46
+	<name>gw_idx2</name>
45 47
 	<colref linkend="grp_id"/>
46 48
     </index>
47 49
 </table>
... ...
@@ -17,7 +17,7 @@
17 17
     </column>
18 18
     <column id="from_uri">
19 19
 	<name>from_uri</name>
20
-	<type>int</type>
20
+	<type>string</type>
21 21
 	<default>%</default>
22 22
 	<size>&uri_len;</size>
23 23
     </column>
... ...
@@ -32,12 +32,15 @@
32 32
 	<null/>
33 33
     </column>
34 34
     <index>
35
+	<name>lcr_idx1</name>
35 36
 	<colref linkend="prefix"/>
36 37
     </index>
37 38
     <index>
39
+	<name>lcr_idx2</name>
38 40
 	<colref linkend="from_uri"/>
39 41
     </index>
40 42
     <index>
43
+	<name>lcr_idx3</name>
41 44
 	<colref linkend="grp_id"/>
42 45
     </index>
43 46
 </table>
... ...
@@ -38,7 +38,7 @@
38 38
     <column>
39 39
 	<name>expires</name>
40 40
 	<type>datetime</type>
41
-	<default>1234</default>
41
+	<default>1970-01-01 00:00:00</default>
42 42
     </column>
43 43
     <column>
44 44
 	<name>q</name>
... ...
@@ -59,7 +59,7 @@
59 59
     <column>
60 60
 	<name>last_modified</name>
61 61
 	<type>datetime</type>
62
-	<default></default>
62
+	<default>1970-01-01 00:00:00</default>
63 63
     </column>
64 64
     <column>
65 65
 	<name>replicate</name>
... ...
@@ -83,13 +83,13 @@
83 83
 	<size>64</size>
84 84
     </column>
85 85
     <index>
86
-	<name>main_key</name>
86
+	<name>location_key</name>
87 87
 	<colref linkend="username"/>
88 88
 	<colref linkend="domain"/>
89 89
 	<colref linkend="contact"/>
90 90
     </index>
91 91
     <index>
92
-	<name>aliases_contact</name>
92
+	<name>location_contact</name>
93 93
 	<colref linkend="contact"/>
94 94
     </index>
95 95
 </table>
... ...
@@ -91,12 +91,12 @@
91 91
     <column>
92 92
 	<name>time</name>
93 93
 	<type>datetime</type>
94
-	<default>0</default>
94
+	<default>1970-01-01 00:00:00</default>
95 95
     </column>
96 96
     <column>
97 97
 	<name>timestamp</name>
98 98
 	<type>datetime</type>
99
-	<default></default>
99
+	<default>1970-01-01 00:00:00</default>
100 100
     </column>
101 101
     <index>
102 102
 	<name>mc_user</name>
... ...
@@ -62,12 +62,12 @@
62 62
     <column>
63 63
 	<name>datetime_created</name>
64 64
 	<type>datetime</type>
65
-	<default>0</default>
65
+	<default>1970-01-01 00:00:00</default>
66 66
     </column>
67 67
     <column>
68 68
 	<name>datetime_modified</name>
69 69
 	<type>datetime</type>
70
-	<default>0</default>
70
+	<default>1970-01-01 00:00:00</default>
71 71
     </column>
72 72
     <column>
73 73
 	<name>confirmation</name>
... ...
@@ -126,7 +126,7 @@
126 126
     <column>
127 127
 	<name>domn</name>
128 128
 	<type>unsigned int</type>
129
-	<default></default>
129
+	<default>0</default>
130 130
 	<size>10</size>
131 131
     </column>
132 132
     <column>
... ...
@@ -136,6 +136,7 @@
136 136
 	<size>&uuid_len;</size>
137 137
     </column>
138 138
     <index>
139
+	<name>pending_idx1</name>
139 140
 	<colref linkend="username"/>
140 141
 	<colref linkend="domain"/>
141 142
     </index>
... ...
@@ -144,7 +145,7 @@
144 145
 	<colref linkend="username"/>
145 146
     </index>
146 147
     <index>
147
-	<name>phplib_id</name>
148
+	<name>php</name>
148 149
 	<colref linkend="phplib_id"/>
149 150
     </index>
150 151
 </table>
... ...
@@ -14,7 +14,7 @@
14 14
     <column id="id">
15 15
 	<name>id</name>
16 16
 	<type>unsigned int</type>
17
-	<default></default>
17
+	<default>0</default>
18 18
     </column>
19 19
     <column>
20 20
 	<name>username</name>
... ...
@@ -47,6 +47,7 @@
47 47
 	<size>&uri_len;</size>
48 48
     </column>
49 49
     <index>
50
+	<name>pb_idx</name>
50 51
 	<colref linkend="id"/>
51 52
     </index>
52 53
 </table>
... ...
@@ -14,7 +14,7 @@
14 14
     <column>
15 15
 	<name>time</name>
16 16
 	<type>datetime</type>
17
-	<default>0</default>
17
+	<default>1970-01-01 00:00:00</default>
18 18
     </column>
19 19
     <column id="id">
20 20
 	<name>id</name>
... ...
@@ -38,6 +38,7 @@
38 38
 	<default>0</default>
39 39
     </column>
40 40
     <index>
41
+	<name>sm_idx1</name>
41 42
 	<colref linkend="id"/>
42 43
 	<colref linkend="param"/>
43 44
     </index>
... ...
@@ -75,9 +75,10 @@
75 75
     <column>
76 76
 	<name>lastupdate</name>
77 77
 	<type>datetime</type>
78
-	<default>0</default>
78
+	<default>1970-01-01 00:00:00</default>
79 79
     </column>
80 80
     <index>
81
+	<name>smagg_idx1</name>
81 82
 	<colref linkend="param"/>
82 83
     </index>
83 84
 </table>
... ...
@@ -48,12 +48,12 @@
48 48
     <column>
49 49
 	<name>inc_time</name>
50 50
 	<type>datetime</type>
51
-	<default>0</default>
51
+	<default>1970-01-01 00:00:00</default>
52 52
     </column>
53 53
     <column>
54 54
 	<name>exp_time</name>
55 55
 	<type>datetime</type>
56
-	<default>0</default>
56
+	<default>1970-01-01 00:00:00</default>
57 57
     </column>
58 58
     <column>
59 59
 	<name>ctype</name>
... ...
@@ -67,6 +67,7 @@
67 67
 	<default></default>
68 68
     </column>
69 69
     <index>
70
+	<name>silo_idx1</name>
70 71
 	<colref linkend="mid"/>
71 72
     </index>
72 73
 </table>
... ...
@@ -66,6 +66,7 @@
66 66
 	<size>64</size>
67 67
     </column>
68 68
     <index>
69
+	<name>speeddial_idx1</name>
69 70
 	<colref linkend="username"/>
70 71
 	<colref linkend="domain"/>
71 72
 	<colref linkend="sd_username"/>
... ...
@@ -62,12 +62,12 @@
62 62
     <column>
63 63
 	<name>datetime_created</name>
64 64
 	<type>datetime</type>
65
-	<default>0</default>
65
+	<default>1970-01-01 00:00:00</default>
66 66
     </column>
67 67
     <column>
68 68
 	<name>datetime_modified</name>
69 69
 	<type>datetime</type>
70
-	<default>0</default>
70
+	<default>1970-01-01 00:00:00</default>
71 71
     </column>
72 72
     <column>
73 73
 	<name>confirmation</name>
... ...
@@ -126,7 +126,7 @@
126 126
     <column>
127 127
 	<name>domn</name>
128 128
 	<type>unsigned int</type>
129
-	<default></default>
129
+	<default>0</default>
130 130
 	<size>10</size>
131 131
     </column>
132 132
     <column>
... ...
@@ -141,7 +141,7 @@
141 141
 	<colref linkend="domain"/>
142 142
     </index>
143 143
     <index>
144
-	<name>user_2</name>
144
+	<name>sub_idx1</name>
145 145
 	<colref linkend="username"/>
146 146
     </index>
147 147
     <index>
... ...
@@ -26,6 +26,7 @@
26 26
 	<size>64</size>
27 27
     </column>
28 28
     <index>
29
+	<name>trusted_idx</name>
29 30
 	<colref linkend="src_ip"/>
30 31
 	<colref linkend="proto"/>
31 32
 	<colref linkend="from_pattern"/>
... ...
@@ -31,9 +31,10 @@
31 31
     <column>
32 32
 	<name>last_modified</name>
33 33
 	<type>datetime</type>
34
-	<default></default>
34
+	<default>1970-01-01 00:00:00</default>
35 35
     </column>
36 36
     <index>
37
+	<name>uri_idx1</name>
37 38
 	<colref linkend="username"/>
38 39
 	<colref linkend="domain"/>
39 40
 	<colref linkend="uri_user"/>
... ...
@@ -50,6 +50,7 @@
50 50
 	<type>datetime</type>
51 51
     </column>
52 52
     <index>
53
+	<name>up_idx</name>
53 54
 	<colref linkend="attribute"/>
54 55
 	<colref linkend="username"/>
55 56
 	<colref linkend="domain"/>
... ...
@@ -40,6 +40,7 @@
40 40
 	<size>100</size>
41 41
     </column>
42 42
     <index>
43
+	<name>upt_idx1</name>
43 44
 	<colref linkend="att_name"/>
44 45
     </index>
45 46
 </table>
... ...
@@ -2,7 +2,9 @@
2 2
 <!DOCTYPE table PUBLIC "-//iptel.org//DTD DBSchema V1.0//EN"
3 3
   "http://iptel.org/dbschema/dtd/1.0/dbschema.dtd">
4 4
 
5
-<table id="version" xmlns:xi="http://www.w3.org/2001/XInclude">
5
+<table id="version" xmlns:xi="http://www.w3.org/2001/XInclude"
6
+   xmlns:pg="http://iptel.org/dbschema/postgres"
7
+>
6 8
     <name>
7 9
 	version
8 10
     </name>