databaseChangeLogTableName

Hi there,

I am running liquibase in a webapp and using the the spring integration.

I need to change the databaseChangeLogTableName/LockTableName for my app, as I have two different apps running liquibase in the same database/ schema.

Don’t ask.

Anyway, I am looking for a practical way of configuring the names, but all I found was:

It looks for liquibase.databaseChangeLogTableName and liquibase.databaseChangeLogLockTableName system properties and will use those rather than the default if passed. 

You can also specify your own Database implementation (how varies between 1.9 and 2.0) and override the getDatabaseChangeLogTableName() and getDatabaseChangeLogLockTableName() methods.


Creating a database implementation looks like an ugly workaround. I would love to see this settings in the databaseChangeLog, e.G.:

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <databaseChangeLog xmlns=“http://www.liquibase.org/xml/ns/dbchangelog
        xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance
        xsi:schemaLocation=“http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd
        >

        <property
            name=“liquibase.databaseChangeLogTableName”
            value=“DOCCACHE_DBCHANGELOG”
        />

Any tips?