恢复的数据库抛出Liquibase错误

时间:2019-11-01 13:45:07

标签: sql database reporting-services

尝试在Powershell中使用此命令还原数据库:

.\update-db.ps -d myDataBase -r

首先,它说Liquibase已成功更新,但是在下一步,它抛出了一个关于它的错误:

Stopping IIS ...
IIS Stopped

Restoring myDataBase using myDataBase.bak ...
Checking if \\...\Database\myDataBase .bak is newer than X:\Source\...\
myDataBase.bak
X:\Source\...\myDataBase .bak does not exist. Copying...
Copying \\...\Database\myDataBase .bak to X:\Source\...\myDataBase .bak ...
Copy done!
Copy time: 00:00:00.3834114

jdbc:sqlserver://localhost;databaseName=master;
Invoking Liquibase (command=update) ...
Liquibase Update Successful
Liquibase done!
Restore time: 00:00:21.8554144

> Updating myDataBase ...
> jdbc:sqlserver://localhost;databaseName=myDataBase ; Invoking
> Liquibase (command=update) ... Unexpected error running Liquibase:
> com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near
> the keyword 'OR'.



For more information, use the --logLevel flag

Starting IIS ...
IIS Started
> Invoke-Liquibase Failed! Liquibase exit code: -1 At
> X:\source\...\Update-Db-Functions.psm1:371
> char:6
> +         Throw "Invoke-Liquibase Failed! Liquibase exit code: $exitCode"
> +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : OperationStopped: (Invoke-Liquibas...e exit code: -1:String) [], RuntimeException
>     + FullyQualifiedErrorId : Invoke-Liquibase Failed! Liquibase exit code: -1

尝试完全还原-f -r和简单还原-r并获得相同的输出。有什么想法吗?

0 个答案:

没有答案