Browse Source

- access changed to attr_access for oracle

Jan Janak 19 years ago
parent
commit
8b4007ba7d
3 changed files with 4 additions and 3 deletions
  1. 1 0
      db/schema/attr_types.xml
  2. 1 1
      scripts/oracle/or_create.sql
  3. 2 2
      scripts/oracle/or_data.sql

+ 1 - 0
db/schema/attr_types.xml

@@ -101,6 +101,7 @@
 
     <column role="serweb" id="at.access">
         <name>access</name>
+	<name db="oracle">attr_access</name>
 	<type>int</type>
         <default>0</default>
         <description>

+ 1 - 1
scripts/oracle/or_create.sql

@@ -89,7 +89,7 @@ CREATE TABLE attr_types (
     default_flags INT NOT NULL DEFAULT '0',
     flags INT NOT NULL DEFAULT '0',
     priority INT NOT NULL DEFAULT '0',
-    access INT NOT NULL DEFAULT '0',
+    attr_access INT NOT NULL DEFAULT '0',
     ordering INT NOT NULL DEFAULT '0',
     UNIQUE KEY upt_idx1 (name)
 );

+ 2 - 2
scripts/oracle/or_data.sql

@@ -3,9 +3,9 @@ INSERT IGNORE INTO attr_types (name, raw_type, default_flags) VALUES ('uid', '2'
 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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering, attr_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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering, attr_access) VALUES ('asserted_id', '2', 'string', 'asserted identity', '33', '256', '200', '1');
 DELETE FROM attr_types WHERE name='fr_timer';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering) VALUES ('fr_timer', '0', 'int', '@ff_fr_timer', '33', '1073807616', '140');
 DELETE FROM attr_types WHERE name='fr_inv_timer';