liquibase.harness.change.expectedSql.postgresql.addAutoIncrement.sql Maven / Gradle / Ivy
CREATE TABLE public.autoincrement_test ("intColumn" INTEGER NOT NULL, "dateColumn" date, CONSTRAINT autoincrement_test_pkey PRIMARY KEY ("intColumn"))
CREATE SEQUENCE IF NOT EXISTS public."autoincrement_test_intColumn_seq"
ALTER TABLE public.autoincrement_test ALTER COLUMN "intColumn" SET NOT NULL
ALTER TABLE public.autoincrement_test ALTER COLUMN "intColumn" SET DEFAULT nextval('public."autoincrement_test_intColumn_seq"')
ALTER SEQUENCE public."autoincrement_test_intColumn_seq" OWNED BY public.autoincrement_test."intColumn"
© 2015 - 2024 Weber Informatics LLC | Privacy Policy