0
這裏是錯誤說liquibase不是在cmd中LIQUIBASE:如何安裝liquibase。我在與我創建
http://animobile.info/upload/1/error.bmp
識別爲一個內部/外部 命令lb_update.bat代碼1批處理文件中的錯誤:
@echo off call Liquibase --changeLogFile=update.xml
update.xml coode:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.Liquibase.org/xml/ns/dbchangelog/1.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.Liquibase.org/xml/ns/dbchangelog/1.9 http://www.Liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
<include file="v000/master.xml" />
</databaseChangeLog>
master.xml代碼:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.Liquibase.org/xml/ns/dbchangelog/1.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.Liquibase.org/xml/ns/dbchangelog/1.9 http://www.Liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
<preConditions>
<!-- These changes should only be run against a schema with major version 0 -->
<sqlCheck expectedResult="0">
SELECT NVL(MAX(id),0)
FROM databasechangelog
WHERE author='MajorVersion '
</sqlCheck>
</preConditions >
<include file="v000/2009-10-15-73.xml" />
</databaseChangeLog>
執行lb_update.bat時的預期結果是,將顯示一條確認消息:遷移成功。
我該如何解決這個問題,請大家幫忙!謝謝!
liquibase.bat在PATH中嗎?如果沒有,當您在呼叫命令中引用它時,可能有助於使用完整路徑。 –
「call」是否需要.bat擴展名?就像「@echo off call Liquibase.bat --changeLogFile = update.xml」 –
@NathanVoxland先生,我正在學習這個教程,但是我在執行lb_update.bat http:// www .liquibase.org /教程使用Oracle的 – Chad