Jelajahi Sumber

new attribute 'datetime_created'

Karel Kozlik 19 tahun lalu
induk
melakukan
678319d69e

+ 11 - 0
db/schema/attr_types.xml

@@ -144,6 +144,17 @@
 		<value col="at.d_flags">1</value>
 	</row>
     
+	<row vendor-controlled="1">
+		<value col="at.name">datetime_created</value>        
+		<value col="at.type">2</value>
+		<value col="at.rich_t">string</value>
+		<value col="at.desc">creation time</value>
+		<value col="at.d_flags">33</value>
+		<value col="at.prior">0</value>
+		<value col="at.order">0</value>
+		<value col="at.access">1</value>
+	</row>
+	
 	<row vendor-controlled="1">
 		<value col="at.name">asserted_id</value>        
 		<value col="at.type">2</value>

+ 1 - 0
scripts/dbtext/ser_db/attr_types

@@ -1,6 +1,7 @@
 name(str) rich_type(str) raw_type(int) type_spec(str,null) description(str,null) default_flags(int) flags(int) priority(int) access(int) ordering(int) 
 uid:string:2:::1:0:0:0:0
 did:string:2:::1:0:0:0:0
+datetime_created:string:2::creation time:33:0:0:1:0
 asserted_id:string:2::asserted identity:33:0:256:1:200
 fr_timer:int:0::@ff_fr_timer:33:0:1073807616:0:140
 fr_inv_timer:int:0::@ff_fr_inv_timer:33:0:1073807616:0:150

+ 2 - 0
scripts/mysql/my_data.sql

@@ -2,6 +2,8 @@ DELETE FROM attr_types WHERE name='uid';
 INSERT IGNORE INTO attr_types (name, raw_type, default_flags) VALUES ('uid', '2', '1');
 DELETE FROM attr_types WHERE name='did';
 INSERT IGNORE INTO attr_types (name, raw_type, default_flags) VALUES ('did', '2', '1');
+DELETE FROM attr_types WHERE name='datetime_created';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering, access) VALUES ('datetime_created', '2', 'string', 'creation time', '33', '0', '0', '1');
 DELETE FROM attr_types WHERE name='asserted_id';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering, access) VALUES ('asserted_id', '2', 'string', 'asserted identity', '33', '256', '200', '1');
 DELETE FROM attr_types WHERE name='fr_timer';

+ 2 - 0
scripts/oracle/or_data.sql

@@ -2,6 +2,8 @@ DELETE FROM attr_types WHERE name='uid';
 INSERT INTO attr_types (name, raw_type, default_flags) VALUES ('uid', '2', '1');
 DELETE FROM attr_types WHERE name='did';
 INSERT INTO attr_types (name, raw_type, default_flags) VALUES ('did', '2', '1');
+DELETE FROM attr_types WHERE name='datetime_created';
+INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering, access) VALUES ('datetime_created', '2', 'string', 'creation time', '33', '0', '0', '1');
 DELETE FROM attr_types WHERE name='asserted_id';
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering, access) VALUES ('asserted_id', '2', 'string', 'asserted identity', '33', '256', '200', '1');
 DELETE FROM attr_types WHERE name='fr_timer';

+ 2 - 0
scripts/postgres/pg_data.sql

@@ -2,6 +2,8 @@ DELETE FROM attr_types WHERE name='uid';
 INSERT INTO attr_types (name, raw_type, default_flags) VALUES ('uid', '2', '1');
 DELETE FROM attr_types WHERE name='did';
 INSERT INTO attr_types (name, raw_type, default_flags) VALUES ('did', '2', '1');
+DELETE FROM attr_types WHERE name='datetime_created';
+INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering, access) VALUES ('datetime_created', '2', 'string', 'creation time', '33', '0', '0', '1');
 DELETE FROM attr_types WHERE name='asserted_id';
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering, access) VALUES ('asserted_id', '2', 'string', 'asserted identity', '33', '256', '200', '1');
 DELETE FROM attr_types WHERE name='fr_timer';