Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on changelog statement execution #14

Open
joetaras opened this issue May 12, 2020 · 0 comments
Open

Error on changelog statement execution #14

joetaras opened this issue May 12, 2020 · 0 comments

Comments

@joetaras
Copy link

joetaras commented May 12, 2020

Hi dear,
I've tried to create a changelog with liquibase 3.8 version, with Postgres DB.

The command

mvnw liquibase:diff

Has generated some tags, but the first is:

<changeSet author="myauthor (generated)" id="1589279822217-1">
    <alterSequence sequenceName="sequence_generator"/>
</changeSet>

But when I try to start my application I've got this error:

liquibase.exception.DatabaseException: ERROR: syntax error at the end of input

on this SQL statement:

ALTER SEQUENCE public.sequence_generator

At the first sight I've supposed is the missing ; (but I can't add because the tag is generated by Liquibase), so I've written a question on S.O. and the reply was:

The error goes because you haven't specified any attribute to alter (i.e. incrementBy).

I haven't change any sequence on my DB, so I don't understand because this tag has been added and because the statement has written without ;

The dialect used is: io.github.jhipster.domain.util.FixedPostgreSQL10Dialect

If I try to remove this tag, the other statements are been correctly executed.

┆Issue is synchronized with this Jira Bug by Unito

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants