Browse code

added default values of global attributes

Karel Kozlik authored on 10/04/2006 14:20:20
Showing 5 changed files
... ...
@@ -28,7 +28,7 @@
28 28
 	</description>
29 29
     </column>
30 30
 
31
-    <column>
31
+    <column id="global_attrs.type">
32 32
 	<name>type</name>
33 33
 	<type>int</type>
34 34
 	<default>0</default>
... ...
@@ -198,4 +198,48 @@
198 198
 	<colref linkend="global_attrs.name"/>
199 199
 	<colref linkend="global_attrs.value"/>
200 200
     </index>
201
+
202
+    <row><value col="global_attrs.name">sw_domain_default_flags</value>
203
+         <value col="global_attrs.type">0</value>
204
+         <value col="global_attrs.value">33</value>
205
+         <value col="global_attrs.flags">32</value>
206
+    </row>
207
+
208
+    <row><value col="global_attrs.name">sw_credential_default_flags</value>
209
+	<value col="global_attrs.type">0</value>
210
+	<value col="global_attrs.value">33</value>
211
+	<value col="global_attrs.flags">32</value>
212
+    </row>
213
+
214
+
215
+    <row><value col="global_attrs.name">sw_uri_default_flags</value>
216
+	<value col="global_attrs.type">0</value>
217
+	<value col="global_attrs.value">57</value>
218
+	<value col="global_attrs.flags">32</value>
219
+    </row>
220
+    
221
+    <row><value col="global_attrs.name">sw_show_status</value>
222
+	<value col="global_attrs.type">0</value>
223
+	<value col="global_attrs.value">1</value>
224
+	<value col="global_attrs.flags">32</value>
225
+    </row>
226
+    
227
+    <row><value col="global_attrs.name">sw_require_conf</value>
228
+	<value col="global_attrs.type">0</value>
229
+	<value col="global_attrs.value">1</value>
230
+	<value col="global_attrs.flags">32</value>
231
+    </row>
232
+    
233
+    <row><value col="global_attrs.name">lang</value>
234
+	<value col="global_attrs.type">2</value>
235
+	<value col="global_attrs.value">en</value>
236
+	<value col="global_attrs.flags">33</value>
237
+    </row>
238
+    
239
+    <row><value col="global_attrs.name">sw_timezone</value>
240
+	<value col="global_attrs.type">2</value>
241
+	<value col="global_attrs.value">Europe/Prague</value>
242
+	<value col="global_attrs.flags">32</value>
243
+    </row>
244
+
201 245
 </table>
... ...
@@ -1 +1,8 @@
1 1
 name(str) type(int) value(str,null) flags(int) 
2
+sw_domain_default_flags:0:33:32
3
+sw_credential_default_flags:0:33:32
4
+sw_uri_default_flags:0:57:32
5
+sw_show_status:0:1:32
6
+sw_require_conf:0:1:32
7
+lang:2:en:33
8
+sw_timezone:2:Europe/Prague:32
... ...
@@ -156,6 +156,14 @@ CREATE TABLE global_attrs (
156 156
     UNIQUE KEY global_attrs_idx (name, value)
157 157
 );
158 158
 
159
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_domain_default_flags', '0', '33', '32');
160
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_credential_default_flags', '0', '33', '32');
161
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_uri_default_flags', '0', '57', '32');
162
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_show_status', '0', '1', '32');
163
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_require_conf', '0', '1', '32');
164
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('lang', '2', 'en', '33');
165
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_timezone', '2', 'Europe/Prague', '32');
166
+
159 167
 CREATE TABLE domain_attrs (
160 168
     did VARCHAR(64),
161 169
     name VARCHAR(32) NOT NULL,
... ...
@@ -151,6 +151,14 @@ CREATE TABLE global_attrs (
151 151
     global_attrs_idx UNIQUE (name, value, )
152 152
 );
153 153
 
154
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_domain_default_flags', '0', '33', '32');
155
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_credential_default_flags', '0', '33', '32');
156
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_uri_default_flags', '0', '57', '32');
157
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_show_status', '0', '1', '32');
158
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_require_conf', '0', '1', '32');
159
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('lang', '2', 'en', '33');
160
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_timezone', '2', 'Europe/Prague', '32');
161
+
154 162
 CREATE TABLE domain_attrs (
155 163
     did string(64),
156 164
     name string(32) NOT NULL,
... ...
@@ -159,6 +159,14 @@ CREATE TABLE global_attrs (
159 159
     CONSTRAINT global_attrs_idx UNIQUE (name, value)
160 160
 );
161 161
 
162
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_domain_default_flags', '0', '33', '32');
163
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_credential_default_flags', '0', '33', '32');
164
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_uri_default_flags', '0', '57', '32');
165
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_show_status', '0', '1', '32');
166
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_require_conf', '0', '1', '32');
167
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('lang', '2', 'en', '33');
168
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_timezone', '2', 'Europe/Prague', '32');
169
+
162 170
 CREATE TABLE domain_attrs (
163 171
     did VARCHAR(64),
164 172
     name VARCHAR(32) NOT NULL,