... | ... |
@@ -10,7 +10,7 @@ |
10 | 10 |
<table xmlns:my="http://iptel.org/dbschema/mysql" role="serweb"> |
11 | 11 |
<name>attr_types</name> |
12 | 12 |
<version>1</version> |
13 |
- <column id="name"> |
|
13 |
+ <column id="at.name"> |
|
14 | 14 |
<name>name</name> |
15 | 15 |
<type>string</type> |
16 | 16 |
<size>32</size> |
... | ... |
@@ -21,7 +21,7 @@ |
21 | 21 |
<default>string</default> |
22 | 22 |
<size>32</size> |
23 | 23 |
</column> |
24 |
- <column> |
|
24 |
+ <column id="at.type"> |
|
25 | 25 |
<name>raw_type</name> |
26 | 26 |
<type>int</type> |
27 | 27 |
<default>2</default> |
... | ... |
@@ -30,10 +30,19 @@ |
30 | 30 |
<name>type_spec</name> |
31 | 31 |
<type>string</type> |
32 | 32 |
<size>255</size> |
33 |
+ <default><null/></default> |
|
33 | 34 |
<null/> |
34 | 35 |
</column> |
35 | 36 |
<index> |
36 | 37 |
<name>upt_idx1</name> |
37 |
- <colref linkend="name"/> |
|
38 |
+ <colref linkend="at.name"/> |
|
38 | 39 |
</index> |
40 |
+ |
|
41 |
+ <row><value col="at.name">uid</value> <value col="at.type">2</value></row> |
|
42 |
+ <row><value col="at.name">did</value> <value col="at.type">2</value></row> |
|
43 |
+ <row><value col="at.name">digest_realm</value><value col="at.type">2</value></row> |
|
44 |
+ <row><value col="at.name">rpid</value> <value col="at.type">2</value></row> |
|
45 |
+ <row><value col="at.name">fr_timer</value> <value col="at.type">0</value></row> |
|
46 |
+ <row><value col="at.name">fr_inv_timer</value><value col="at.type">2</value></row> |
|
47 |
+ <row><value col="at.name">flags</value> <value col="at.type">0</value></row> |
|
39 | 48 |
</table> |
... | ... |
@@ -104,10 +104,18 @@ CREATE TABLE attr_types ( |
104 | 104 |
name VARCHAR(32) NOT NULL, |
105 | 105 |
rich_type VARCHAR(32) NOT NULL DEFAULT 'string', |
106 | 106 |
raw_type INT NOT NULL DEFAULT '2', |
107 |
- type_spec VARCHAR(255), |
|
107 |
+ type_spec VARCHAR(255) DEFAULT NULL, |
|
108 | 108 |
KEY upt_idx1 (name) |
109 | 109 |
); |
110 | 110 |
|
111 |
+INSERT INTO attr_types (name, raw_type) VALUES ('uid', '2'); |
|
112 |
+INSERT INTO attr_types (name, raw_type) VALUES ('did', '2'); |
|
113 |
+INSERT INTO attr_types (name, raw_type) VALUES ('digest_realm', '2'); |
|
114 |
+INSERT INTO attr_types (name, raw_type) VALUES ('rpid', '2'); |
|
115 |
+INSERT INTO attr_types (name, raw_type) VALUES ('fr_timer', '0'); |
|
116 |
+INSERT INTO attr_types (name, raw_type) VALUES ('fr_inv_timer', '2'); |
|
117 |
+INSERT INTO attr_types (name, raw_type) VALUES ('flags', '0'); |
|
118 |
+ |
|
111 | 119 |
CREATE TABLE global_attrs ( |
112 | 120 |
name VARCHAR(32) NOT NULL, |
113 | 121 |
type INT NOT NULL DEFAULT '0', |