-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Liquibase does not honor deferrable and initially deferred on Primary Key #1597
Labels
BKeyPlatform
Key Platform
BNoUpgradePath
Cannot upgrade to next version
DBPostgres
ImpactLow
IntegrationAny
Severity4
TypeBug
Milestone
Comments
siudeks
changed the title
'deferred'
Liquibase does not honor deferred and initially deferred on Primary Key
Dec 18, 2020
sync-by-unito
bot
changed the title
Liquibase does not honor deferred and initially deferred on Primary Key
'deferred'
Dec 18, 2020
siudeks
changed the title
'deferred'
Liquibase does not honor deferred and initially deferred on Primary Key
Dec 18, 2020
siudeks
changed the title
Liquibase does not honor deferred and initially deferred on Primary Key
Liquibase does not honor defd and initially deferred on Primary Key
Dec 18, 2020
siudeks
changed the title
Liquibase does not honor defd and initially deferred on Primary Key
Liquibase does not honor deferrable and initially deferred on Primary Key
Dec 18, 2020
Hi @siudeks Thanks for opening this issue. We will add this to our list of issues to process. And if I am reading the documentation correctly, https://www.postgresql.org/docs/9.0/sql-createtable.html, you cannot have both not null and deferrable in the same statement. This would mean that nullable=false and deferrable=true is invalid. |
This was referenced Nov 4, 2021
This was referenced Nov 5, 2021
This was referenced Nov 5, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
BKeyPlatform
Key Platform
BNoUpgradePath
Cannot upgrade to next version
DBPostgres
ImpactLow
IntegrationAny
Severity4
TypeBug
Environment
Liquibase Version: org.liquibase:liquibase-core:jar:3.8.9
Liquibase Integration & Version: maven
Database Vendor & Version: postgres 11
Operating System Type & Version: ubuntu (wsl)
Description
PrimaryKey constraint does not honor 'deferrable' and 'initiallyDeferred' settings so that created primary key is not 'deferred'
Steps To Reproduce
Use script:
Actual Behavior
2020-12-18 09:01:19.936 [main] INFO liquibase.executor.jvm.JdbcExecutor - CREATE TABLE public.abc (id INTEGER NOT NULL, CONSTRAINT "abc_PK" PRIMARY KEY (id))
Expected/Desired Behavior
PRIMARY KEY is created with deferrable initially deferred
The text was updated successfully, but these errors were encountered: