I am attempting to generate a change log from my existing database using the generatechangelog command, However the resulting changelog is blank. running the command with the debug logging turned on I can see that the command is running the sql statement SELECT SEQUENCE_NAME FROM ALL_SEQUENCES WHERE SEQUENCE_OWNER = ‘DBUSER’. The issue is that the user that I have in my database is “dbuser”. How can I set liquibase to not capitalize the username field when running the generateChangeLog command. This also appears to be an issue with the diff commands as well. when I run the sql command directly in oracle, due to the case mismatch it returns no results.
I am running liquibase 3.1.1 to support the spatial plugin, but I tested it on 3.2.2 and the issue is still present there.
The command and properties that I am running:
- liquibase --changeLogFile="origChangeLog.xml" --logLevel="debug" generateChangeLog
- #Liquibase.properties
- driver: oracle.jdbc.OracleDriver
- url: jdbc:oracle:thin:@localhost:1521:XE
- username: "dbuser"
- password: ***
I have tried both this and username: dbuser both produce the same results.
the debug log results:
- liquibase --changeLogFile="origChangeLog.xml" --logLevel="debug" generateChangeLog
- DEBUG 9/16/14 1:26 PM:liquibase: Connected to "dbuser"@jdbc:oracle:thin:@localhost:1521:XE
- DEBUG 9/16/14 1:26 PM:liquibase: Setting auto commit to false
from true
- DEBUG 9/16/14 1:26 PM:liquibase: Executing QUERY database
command: SELECT SEQUENCE_NAME FROM ALL_SEQUENCES WHERE
SEQUENCE_OWNER = ‘DBUSER’
- INFO 9/16/14 1:26 PM:liquibase: origChangeLog.xml
exists, appending
- DEBUG 9/16/14 1:26 PM:liquibase: MissingObjectChangeGenerator
type order: liquibase.structure.core.Catalog liquibase.structure.core.Schema liquibase.structure.core.Sequence liquibase.structure.core.StoredProcedure liquibase.structure.core.Table liquibase.structure.core.Column liquibase.structure.core.PrimaryKey liquibase.structure.core.ForeignKey liquibase.structure.core.UniqueConstraint liquibase.structure.core.Index liquibase.structure.core.View
- DEBUG 9/16/14 1:26 PM:liquibase: UnexpectedObjectChangeGenerator
type order: liquibase.structure.core.Catalog liquibase.structure.core.ForeignKey liquibase.structure.core.Schema liquibase.structure.core.StoredProcedure liquibase.structure.core.UniqueConstraint liquibase.structure.core.View liquibase.structure.core.Table liquibase.structure.core.PrimaryKey liquibase.structure.core.Column liquibase.structure.core.Index liquibase.structure.core.Sequence
- DEBUG 9/16/14 1:26 PM:liquibase: ChangedObjectChangeGenerator
type order: liquibase.structure.core.Catalog liquibase.structure.core.ForeignKey liquibase.structure.core.Schema liquibase.structure.core.Sequence liquibase.structure.core.StoredProcedure liquibase.structure.core.Table liquibase.structure.core.Column liquibase.structure.core.PrimaryKey liquibase.structure.core.Index liquibase.structure.core.UniqueConstraint liquibase.structure.core.View
- INFO 9/16/14 1:26 PM:liquibase: No changes found, nothing to do
- Liquibase ‘generateChangeLog’ Successful