Skip to content

Commit

Permalink
Updating schema version after updates. (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Nov 17, 2016
1 parent d40e532 commit a3af451
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions phing/tasks/blt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
<target name="blt:update-delta" description="Performs scripted updates for a specific BLT version delta." hidden="true">
<echo level="verbose">Executing scripted updates for version delta ${blt.schema-version} -> ${blt.version}...</echo>
<exec dir="${repo.root}" command="${repo.root}/vendor/bin/blt-console blt:update ${blt.schema-version} ${blt.version} ${repo.root} --yes" logoutput="true" checkreturn="true" level="${blt.exec_level}" passthru="true"/>

<exec dir="${repo.root}" command="echo ${blt.version} > ${blt.config-files.schema-version}" checkreturn="true" logoutput="true" passthru="false" level="${blt.exec_level}"/>
</target>

<target name="blt:update-composer" description="Updates project composer.json with a subset of new key value pairs from upstream. This WILL overwrite existing values." hidden="true">
Expand Down
2 changes: 1 addition & 1 deletion phing/tasks/properties.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<if>
<available file="${blt.config-files.local}" type="file" property="local.properties"/>
<then>
<property file="${blt.config-files.local}" override="true" logoutput="false"/>
<property file="${blt.config-files.local}" override="true" logoutput="${blt.verbose}"/>
</then>
</if>

Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$updater->executeUpdates($updates);
}
else {
$output->writeln("<comment>There are no scripted updates avaiable between BLT versions $starting_version and $ending_version.</comment>");
$output->writeln("<comment>There are no scripted updates available between BLT versions $starting_version and $ending_version.</comment>");
}
}
}

0 comments on commit a3af451

Please sign in to comment.