Project

General

Profile

« Previous | Next » 

Revision 3128

Added by perry about 18 years ago

added database upgrade script to 1.7 build process

View differences:

src/upgrade-db-to-1.7.sql
1
/*
2
 * New indexes to make queries avoid full table scans.
3
 */
4
CREATE INDEX xml_documents_idx2 ON xml_documents (lower(user_owner));
5
CREATE INDEX xml_access_idx1 ON xml_access (lower(principal_name));
6
CREATE INDEX xml_access_idx2 ON xml_access (permission);
7
CREATE INDEX xml_access_idx3 ON xml_access (perm_type);
8
CREATE INDEX xml_access_idx4 ON xml_access (perm_order);
9
CREATE INDEX xml_access_idx5 ON xml_access (subtreeid);
10
CREATE INDEX xml_path_index_idx4 ON xml_path_index (upper(nodedata));
11

  
12
/** done */
0 13

  
build.xml
79 79
               value="upgrade-db-to-1.5.sql" />
80 80
     <property name="upgrade-1.6-sql"
81 81
               value="upgrade-db-to-1.6.sql" />
82
     <property name="upgrade-1.7-sql"
83
               value="upgrade-db-to-1.7.sql" />
82 84
   </target>
83 85

  
84 86
   <target name="postgresql" if="use-postgresql">
......
103 105
               value="upgrade-db-to-1.5-postgres.sql" />
104 106
     <property name="upgrade-1.6-sql"
105 107
               value="upgrade-db-to-1.6-postgres.sql" />
108
     <property name="upgrade-1.7-sql"
109
               value="upgrade-db-to-1.7-postgres.sql" />
106 110
    </target>
107 111

  
108 112
   <target name="sqlserver" if="use-sqlserver">
......
733 737
     </sql>
734 738
   </target>
735 739

  
740
   <target name="upgrade17" depends="prepare"
741
            description="Updates the database tables from version 1.6 to version 1.7">
742
     <echo/>
743
     <echo>Updating the database tables to upgrade to version 1.7...</echo>
744
     <sql driver="${dbDriver}"
745
          url="${jdbc-connect}"
746
          userid="${user}"
747
          password="${password}"
748
          src="${build.src}/${upgrade-1.7-sql}">
749
       <classpath>
750
         <path refid="compile.classpath"/>
751
       </classpath>
752
     </sql>
753
   </target>
736 754

  
737 755
   <target name="sqlupgrade15" depends="prepare">
738 756
      <echo>Updating the database tables to upgrade to version 1.5 by sql command</echo>

Also available in: Unified diff