You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
I am using Flyway through Maven plugin (v3.0) with SQL Server 2012. Maven (3.1.1 and 3.2.1) is executed on Windows 7 x64, and CentOS 6.5 x86_64, with Java 7 Update 51.
Database is SQL Server 2012.
Flyway is executed through Maven with following command:
mvn clean compile flyway:clean flyway:migrate
and I am getting the error that sequences already exist (of course, previously the sequences are created!
A script for creating sequences, which is executed by Flyway is of following format:
CREATE SEQUENCE ${MYAPP}.SEQ_ITEM_ID START WITH 1 INCREMENT BY 1 CACHE 20;
CREATE SEQUENCE ${MYAPP}.SEQ_PFM_USER_ID START WITH 1 INCREMENT BY 1 CACHE 20;
CREATE SEQUENCE ${MYAPP}.SEQ_PFM_ACCOUNT_ID START WITH 1 INCREMENT BY 1 CACHE 20;
Obviously, if sequences exist, on the next execution sequences are not deleted while executing flyway:clean, since I can see my sequences with query:
SELECT *
FROM sys.objects
WHERE type = 'SO';
Can you please check this issue?
The text was updated successfully, but these errors were encountered:
axelfontaine
changed the title
Flyway run via Maven does not clean sequences on SQL Server 2012
Flyway does not clean sequences on SQL Server 2012
Oct 16, 2014
I am using Flyway through Maven plugin (v3.0) with SQL Server 2012. Maven (3.1.1 and 3.2.1) is executed on Windows 7 x64, and CentOS 6.5 x86_64, with Java 7 Update 51.
Database is SQL Server 2012.
Flyway is executed through Maven with following command:
mvn clean compile flyway:clean flyway:migrate
and I am getting the error that sequences already exist (of course, previously the sequences are created!
A script for creating sequences, which is executed by Flyway is of following format:
CREATE SEQUENCE ${MYAPP}.SEQ_ITEM_ID START WITH 1 INCREMENT BY 1 CACHE 20;
CREATE SEQUENCE ${MYAPP}.SEQ_PFM_USER_ID START WITH 1 INCREMENT BY 1 CACHE 20;
CREATE SEQUENCE ${MYAPP}.SEQ_PFM_ACCOUNT_ID START WITH 1 INCREMENT BY 1 CACHE 20;
Obviously, if sequences exist, on the next execution sequences are not deleted while executing flyway:clean, since I can see my sequences with query:
SELECT *
FROM sys.objects
WHERE type = 'SO';
Can you please check this issue?
The text was updated successfully, but these errors were encountered: