Liquibase是否需要写入权限才能获得锁定?

时间:2014-06-18 18:08:04

标签: java database liquibase

考虑到这个

INFO 8/4/12 7:16 AM:liquibase: Successfully acquired change log lock
INFO 8/4/12 7:16 AM:liquibase: Creating database history table with name: `DATABASECHANGELOG`
INFO 8/4/12 7:16 AM:liquibase: Reading from `DATABASECHANGELOG`
INFO 8/4/12 7:16 AM:liquibase: Reading from `DATABASECHANGELOG`
INFO 8/4/12 7:16 AM:liquibase: ChangeSet db.changelog.xml::1::shameer ran successfully in 74ms
INFO 8/4/12 7:16 AM:liquibase: Successfully released change log lock
Liquibase Update Successful

我不确定liquibase是否需要写入数据库才能

Successfully acquired change log lock

原因是暂时我没有read-write密码,只有read-only密码与我一起部署到生产

我想检查liquibase是否能够锁定数据库。

P.S。由于数据库状态未更改,因此不需要应用任何新的更改集

1 个答案:

答案 0 :(得分:3)

据我所知,Liquibase在表DATABASECHANGELOGLOCK中插入一行来锁定模式。 它会删除该行以解锁架构。