Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
liquibase diffchange日志问题会重复更改集_Liquibase - Fatal编程技术网

liquibase diffchange日志问题会重复更改集

liquibase diffchange日志问题会重复更改集,liquibase,Liquibase,您好,我面临一个diffChangelog问题。我在两个MSSQL数据库之间执行了diffChangelog。我得到了更改集列表。我得到了以下信息 变更集作者=deekshith生成id=1415884590690-1734> modifyDataType columnName=lingo\u id newDataType=char36 tableName=lingo/> addNotNullConstraint columnDataType=char36 columnName=lingo\u

您好,我面临一个diffChangelog问题。我在两个MSSQL数据库之间执行了diffChangelog。我得到了更改集列表。我得到了以下信息

变更集作者=deekshith生成id=1415884590690-1734>

modifyDataType columnName=lingo\u id newDataType=char36 tableName=lingo/>

addNotNullConstraint columnDataType=char36 columnName=lingo\u id tableName=lingo/>

/变更集

我已将更改集更新到相应的数据库,并再次执行diffChangelog,我得到的结果与上面相同

变更集作者=deekshith生成id=1415884590690-1736>

modifyDataType columnName=lingo\u id newDataType=char36 tableName=lingo/>

addNotNullConstraint columnDataType=char36 columnName=lingo\u id tableName=lingo/>

/变更集


请让我知道我做错了什么

我认为您误解了Liquibase diffChangeLog命令的作用。如果在两个数据库之间运行,更改changelog不会改变输出-该命令所做的是生成一个changelog,然后您可以使用Liquibase update命令使第二个数据库与第一个数据库同步。运行diffChangeLog命令时,不会使用您已有的任何更改日志

在提交问题时,包括3件事很有用:-这是我所做的,尽可能详细-这是实际发生的-这是我预期会发生的-你的问题没有第三部分。是的,感谢steve的建议我完成了以下任务1.在更新的mssql数据库1和数据库2之间执行liquibase diffchangelog一组更改集,并对数据库2运行此操作。3.再次重复步骤1,但这次得到的是相同的集合更改集,而不是空的xml文件请参见以下问题: