liquibase.harness.change.expectedSql.postgresql.addNotNullConstraintWithValues.sql Maven / Gradle / Ivy
CREATE TABLE public.lb45 (name CHAR(20))
INSERT INTO public.lb45 (name) VALUES ('marcel')
ALTER TABLE public.lb45 ADD "columnWithInitialValue" BIGINT
UPDATE public.lb45 SET "columnWithInitialValue" = 0
ALTER TABLE public.lb45 ALTER COLUMN "columnWithInitialValue" SET NOT NULL
ALTER TABLE public.lb45 ADD "columnWithConstraintInSeparateChange" BIGINT
UPDATE public.lb45 SET "columnWithConstraintInSeparateChange" = 0
ALTER TABLE public.lb45 ALTER COLUMN "columnWithConstraintInSeparateChange" SET NOT NULL
© 2015 - 2024 Weber Informatics LLC | Privacy Policy