Skip to content

Commit

Permalink
LPS-57298 Split out drop.sql to avoid the missing database dropping e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
shuyangzhou authored and brianchandotcom committed Jul 22, 2015
1 parent 096297d commit 6a6bc23
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2210,6 +2210,12 @@ create database lportal${database.index} character set utf8;</echo>
<replacetoken>create database lportal;</replacetoken>
<replacevalue>create database lportal pagesize 8192;</replacevalue>
</replace>
<replace file="create.sql">
<replacetoken>drop database lportal;</replacetoken>
<replacevalue></replacevalue>
</replace>

<echo file="drop.sql">drop database lportal;</echo>
</then>
<elseif>
<equals arg1="${database.type}" arg2="sybase" />
Expand Down Expand Up @@ -5322,6 +5328,10 @@ cluster.link.bind.addr["cluster-link-udp"]=127.0.0.1</echo>
<if>
<equals arg1="${database.type}" arg2="db2" />
<then>
<exec executable="${db2.executable}">
<arg value="-fdrop.sql" />
<arg value="-t" />
</exec>
<exec executable="${db2.executable}" failonerror="true">
<arg value="-fcreate.sql" />
<arg value="-t" />
Expand Down Expand Up @@ -5425,6 +5435,7 @@ cluster.link.bind.addr["cluster-link-udp"]=127.0.0.1</echo>
</if>

<delete file="create.sql" />
<delete file="drop.sql" />
</target>

<target name="rebuild-legacy-database">
Expand Down

0 comments on commit 6a6bc23

Please sign in to comment.