使用unitils / dbMaintain维护数据库,如何从运行中排除脚本?

问题描述

| 我正在使用unitils(及其dbMaintain模块)来维护本地数据库的状态。 dbMaintain具有基于限定符排除/包括脚本的选项。请参阅http://www.dbmaintain.org/tutorial.html#Qualifier_inclusion__exclusion。 在我的项目中,从Unitils测试中以“ 0”运行时,排除/包含不起作用。 我的脚本层次结构:
unitils/ 
    01_create/ <lots of scripts here> 
    02_lkups/ <lots of scripts here> 
    03_#testdata/01_#testdata_master/05_#testdata_master_rate_offer.sql 
我的unitils.properties文件具有:
updateDataBaseSchema.enabled=true
dbMaintainer.script.locations=unitils
dbMaintainer.qualifiers=testdata 
dbMaintainer.excludedQualifiers=testdata 
我希望排除05_#testdata_master_rate_offer.sql。但是它正在运行。 在此先感谢您的帮助。     

解决方法

在此处的unitils论坛上,由unitils开发人员之一回答:http://sourceforge.net/projects/unitils/forums/forum/570578/topic/4546980   限定词是   dbmaintain。 Unitils 3.1仍然包含   它自己的dbmaintainer仍然会日期   从分离之前   dbmaintain。 Unitils 4.0具有此功能   模块替换为对   dbmaintain,但此版本不是   发布了。我建议   直到4.0发布,您才致电   dbmaintain直接从Java   码。希望这会有所帮助,菲利普     

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...