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

Error in dropIndex in Postgres 9.4

$
0
0
Actually I am working with Liquibase 3.3.2 and Postgres 9.4 and I want to upgrade it to 3.4.1. So I started my tests and I found a problem: When I have a changeset like this:

  1. <changeSet id="XXX-UPDATE-YY" author="author">
  2. <dropIndex indexName="idx_name" schemaName="my_schema" tableName="my_table" />
  3.         <rollback>
  4.              <createIndex indexName="idx_name" schemaName="my_schema" tableName="my_table" unique="false">
  5.            <column name="my_column"/>
  6.        </createIndex>
  7.    </rollback>
  8. </changeSet>
In liquibase 3.3.2 there is no problem, but with liquibase 3.4.1. I got an org.postgresql.util.PSQLException and says that the index doesn't exist. I have saved both sql statements in a file and this is the result:

Liquibase 3.3.2:

  1. DROP INDEX my_schema.idx_name;

Liquibase 3.4.1:

  1. DROP INDEX idx_name;

So, I see that the newest version doesn't add the schema name to the sentence.

This is how the index was created in a previous changeset:


  1. <changeSet id="XXX-UPDATE-YY-n" author="author">
  2. <createIndex indexName="idx_name" schemaName="my_schema" tableName="my_table" unique="false">
  3.             <column name="my_column"/>
  4.         </createIndex>
  5. </changeSet>


Thanks a lot !!



Viewing all articles
Browse latest Browse all 2993

Trending Articles



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