[sr-dev] git:master: Adding record for 'gattr_timestamp' attribute into attr_types table.

Karel Kozlik karel at iptel.org
Thu Oct 22 17:12:05 CEST 2009


Module: sip-router
Branch: master
Commit: c11c94a4d341d34c5fd02dd7a1ddd571460168cb
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c11c94a4d341d34c5fd02dd7a1ddd571460168cb

Author: Karel Kozlik <karel at iptel.org>
Committer: Karel Kozlik <karel at iptel.org>
Date:   Thu Oct 22 17:09:58 2009 +0200

Adding record for 'gattr_timestamp' attribute into attr_types table.

---

 lib/srdb2/schema/attr_types.xml  |   11 +++++++++++
 scripts/dbtext/ser_db/attr_types |    1 +
 scripts/mysql/my_data.sql        |    2 ++
 scripts/oracle/or_data.sql       |    2 ++
 scripts/postgres/pg_data.sql     |    2 ++
 5 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/lib/srdb2/schema/attr_types.xml b/lib/srdb2/schema/attr_types.xml
index 8e6b77b..4ddf60e 100644
--- a/lib/srdb2/schema/attr_types.xml
+++ b/lib/srdb2/schema/attr_types.xml
@@ -566,4 +566,15 @@
 	<value col="at.order">0</value>
   </row>
 
+  <row vendor-controlled="1">
+	<value col="at.name">gattr_timestamp</value>
+	<value col="at.type">0</value>
+	<value col="at.rich_t">int</value>
+	<value col="at.desc">Version of global attrs data</value>
+	<value col="at.d_flags">33</value>
+	<value col="at.flags">0</value>
+	<value col="at.prior">0</value>
+	<value col="at.order">0</value>
+  </row>
+
 </table>
diff --git a/scripts/dbtext/ser_db/attr_types b/scripts/dbtext/ser_db/attr_types
index bdb5c47..9214fb8 100644
--- a/scripts/dbtext/ser_db/attr_types
+++ b/scripts/dbtext/ser_db/attr_types
@@ -38,3 +38,4 @@ fwd_noanswer_target:sip_adr:2::@attr_fwd_noanswer_target:33:0:256:0:55:other
 fwd_always_target:sip_adr:2::@attr_fwd_always_target:33:0:256:0:60:other
 domain_data_version:int:0::Version of data in domain table:33:0:0:0:0:other
 sw_highest_alias_number:int:0::highest assigned alias number:32:0:0:0:0:other
+gattr_timestamp:int:0::Version of global attrs data:33:0:0:0:0:other
diff --git a/scripts/mysql/my_data.sql b/scripts/mysql/my_data.sql
index 57cb18f..52a8786 100644
--- a/scripts/mysql/my_data.sql
+++ b/scripts/mysql/my_data.sql
@@ -76,6 +76,8 @@ DELETE FROM attr_types WHERE name='domain_data_version';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('domain_data_version', '0', 'int', 'Version of data in domain table', '33', '0', '0', '0');
 DELETE FROM attr_types WHERE name='sw_highest_alias_number';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_highest_alias_number', '0', 'int', 'highest assigned alias number', '32', '0', '0', '0');
+DELETE FROM attr_types WHERE name='gattr_timestamp';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('gattr_timestamp', '0', 'int', 'Version of global attrs data', '33', '0', '0', '0');
 
 DELETE FROM global_attrs WHERE name='sw_domain_default_flags';
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_domain_default_flags', '0', '33', '32');
diff --git a/scripts/oracle/or_data.sql b/scripts/oracle/or_data.sql
index 83f3dff..fc1f7e2 100644
--- a/scripts/oracle/or_data.sql
+++ b/scripts/oracle/or_data.sql
@@ -76,6 +76,8 @@ DELETE FROM attr_types WHERE name='domain_data_version';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('domain_data_version', '0', 'int', 'Version of data in domain table', '33', '0', '0', '0');
 DELETE FROM attr_types WHERE name='sw_highest_alias_number';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_highest_alias_number', '0', 'int', 'highest assigned alias number', '32', '0', '0', '0');
+DELETE FROM attr_types WHERE name='gattr_timestamp';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('gattr_timestamp', '0', 'int', 'Version of global attrs data', '33', '0', '0', '0');
 
 DELETE FROM global_attrs WHERE name='sw_domain_default_flags';
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_domain_default_flags', '0', '33', '32');
diff --git a/scripts/postgres/pg_data.sql b/scripts/postgres/pg_data.sql
index fc1585d..aa3b480 100644
--- a/scripts/postgres/pg_data.sql
+++ b/scripts/postgres/pg_data.sql
@@ -76,6 +76,8 @@ DELETE FROM attr_types WHERE name='domain_data_version';
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('domain_data_version', '0', 'int', 'Version of data in domain table', '33', '0', '0', '0');
 DELETE FROM attr_types WHERE name='sw_highest_alias_number';
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_highest_alias_number', '0', 'int', 'highest assigned alias number', '32', '0', '0', '0');
+DELETE FROM attr_types WHERE name='gattr_timestamp';
+INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('gattr_timestamp', '0', 'int', 'Version of global attrs data', '33', '0', '0', '0');
 
 DELETE FROM global_attrs WHERE name='sw_domain_default_flags';
 INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_domain_default_flags', '0', '33', '32');




More information about the sr-dev mailing list