Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

There is already an object named 'DATABASECHANGELOGLOCK' in the database when i update

$
0
0
Liquibase update Failed: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE [DATABASECHANGELOG
LOCK] ([ID] INT NOT NULL, [LOCKED] BIT NOT NULL, [LOCKGRANTED] datetime NULL, [LOCKEDBY] VARCHAR(255) NULL, CONSTRA
INT [PK_DATABASECHANGELOGLOCK] PRIMARY KEY ([ID])): There is already an object named 'DATABASECHANGELOGLOCK' in the
 database.

My changeset is 

<changeSet author="sa" id="addColumn-example1"> 
  <sql>ALTER TABLE db.PROD_T_RESOURCE ADD address VARCHAR(255) NULL</sql>
</changeSet>
</databaseChangeLog>

The command i am using to generate is 

liquibase --driver=com.sybase.jdbc3.jdbc.SybDriver --classpath=<Path>\jconn3.jar --changeLogFile=add_column.xml --url="jdbc:sybase:Tds:INLN50813475A:5000/db?ServiceName=db" --username=sa update

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>