sqlFile을 사용하여 oracle 특정 명령 (NOCACHE, NO PARALLEL 등)을 사용하여 테이블을 만드는 sql 스크립트를 포함하고 있습니다. master.xml 파일에는 모든 sql 스크립트가 포함되어 있으며 실행됩니다. 그러나 태그를 발견하면 실패하고이 오류 메시지를 인쇄합니다.Liquibase noob가 다시 공격 - sqlFile 태그에 오류가 발생했습니다.
C:\update.bat master.xml
Migration Failed: cvc-complex-type.2.4.a: Invalid content was found starting with element 'sqlFile'.
One of '{
"http://www.liquibase.org/xml/ns/dbchangelog/1.9":preConditions,
"http://www.liquibase.org/xml/ns/dbchangelog/1.9":property,
"http://www.liquibase.org/xml/ns/dbchangelog/1.9":changeSet,
"http://www.liquibase.org/xml/ns/dbchangelog/1.9":include,
"http://www.liquibase.org/xml/ns/dbchangelog/1.9":includeAll
}' is expected.
내 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">
<sqlFile path="createUsers.sql"/>
</databaseChangeLog>
매우 간단합니다. 미리 감사드립니다.
감사합니다. xsd를 읽는 것이 이제는 "sh * t가 발생했을 때 할 일"에 있습니다. – Tom
changeSet 태그에 "id"및 "author"속성이 필요합니다. 좋아요 : –