Project

General

Profile

« Previous | Next » 

Revision 3335

Added by Jing Tao over 17 years ago

Add a target to run db upgrade script.

View differences:

build.xml
107 107
               value="upgrade-db-to-1.6-postgres.sql" />
108 108
     <property name="upgrade-1.7-sql"
109 109
               value="upgrade-db-to-1.7-postgres.sql" />
110
   	<property name="upgrade-1.7.1-sql"
111
   	               value="upgrade-db-to-1.7.1-postgres.sql" />
110 112
    </target>
111 113

  
112 114
   <target name="sqlserver" if="use-sqlserver">
......
754 756
       </classpath>
755 757
     </sql>
756 758
   </target>
759
	
760
   <target name="upgrade171" depends="prepare"
761
	            description="Updates the database tables from version 1.7 to version 1.7.1">
762
	     <echo/>
763
	     <echo>Updating the database tables to upgrade to version 1.7.1...</echo>
764
	     <sql driver="${dbDriver}"
765
	          url="${jdbc-connect}"
766
	          userid="${user}"
767
	          password="${password}"
768
	          src="${build.src}/${upgrade-1.7.1-sql}">
769
	       <classpath>
770
	         <path refid="compile.classpath"/>
771
	       </classpath>
772
	     </sql>
773
   </target>
757 774

  
758 775
   <target name="sqlupgrade15" depends="prepare">
759 776
      <echo>Updating the database tables to upgrade to version 1.5 by sql command</echo>

Also available in: Unified diff