Browse Source

dialog: use long_hf_len instead of hardcoded value in table defs, no actual schema change

Henning Westerholt 13 years ago
parent
commit
976f801ae2

+ 3 - 3
lib/srdb1/schema/dialog.xml

@@ -101,7 +101,7 @@
 	<column>
 	<column>
 		<name>caller_route_set</name>
 		<name>caller_route_set</name>
 		<type>string</type>
 		<type>string</type>
-		<size>512</size>
+		<size>&long_hf_len;</size>
 		<null/>
 		<null/>
 		<description>Route set on the caller side.</description>
 		<description>Route set on the caller side.</description>
 	</column>
 	</column>
@@ -109,7 +109,7 @@
 	<column>
 	<column>
 		<name>callee_route_set</name>
 		<name>callee_route_set</name>
 		<type>string</type>
 		<type>string</type>
-		<size>512</size>
+		<size>&long_hf_len;</size>
 		<null/>
 		<null/>
 		<description>Route set on on the caller side.</description>
 		<description>Route set on on the caller side.</description>
 	</column>
 	</column>
@@ -204,7 +204,7 @@
 	<column>
 	<column>
 		<name>xdata</name>
 		<name>xdata</name>
 		<type>string</type>
 		<type>string</type>
-		<size>512</size>
+		<size>&long_hf_len;</size>
 		<null/>
 		<null/>
 		<description>Extra data associated to the dialog (e.g., serialized profiles).</description>
 		<description>Extra data associated to the dialog (e.g., serialized profiles).</description>
 	</column>
 	</column>

+ 1 - 1
lib/srdb1/schema/dialog_vars.xml

@@ -54,7 +54,7 @@
 	<column>
 	<column>
 		<name>dialog_value</name>
 		<name>dialog_value</name>
 		<type>string</type>
 		<type>string</type>
-		<size>512</size>
+		<size>&long_hf_len;</size>
 		<description>The value of the dialog variable</description>
 		<description>The value of the dialog variable</description>
 	</column>
 	</column>
 
 

+ 1 - 0
lib/srdb1/schema/entities.xml

@@ -6,6 +6,7 @@
 <!ENTITY id_len "64">
 <!ENTITY id_len "64">
 <!ENTITY table_id_len "10">
 <!ENTITY table_id_len "10">
 <!ENTITY hf_len "255">
 <!ENTITY hf_len "255">
+<!ENTITY long_hf_len "512">
 <!ENTITY rule_len "255">
 <!ENTITY rule_len "255">
 <!ENTITY method_len "16">
 <!ENTITY method_len "16">
 <!ENTITY avp_name_len "32">
 <!ENTITY avp_name_len "32">