-- Modify "apps" table
ALTER TABLE "public"."apps"
ALTER COLUMN "created_at"
SET NOT NULL,
ALTER COLUMN "created_at"
SET DEFAULT now(),
ALTER COLUMN "updated_at"
SET NOT NULL,
ALTER COLUMN "updated_at"
SET DEFAULT now();
Expected behavior
-- Modify "apps" table
ALTER TABLE "public"."apps"
ALTER COLUMN "created_at" SET NOT NULL,
ALTER COLUMN "created_at" SET DEFAULT now(),
ALTER COLUMN "updated_at" SET NOT NULL,
ALTER COLUMN "updated_at" SET DEFAULT now();
or
-- Modify "apps" table
ALTER TABLE "public"."apps"
ALTER COLUMN "created_at"
SET NOT NULL,
ALTER COLUMN "created_at"
SET DEFAULT now(),
ALTER COLUMN "updated_at"
SET NOT NULL,
ALTER COLUMN "updated_at"
SET DEFAULT now();
Desktop (please complete the following information):
Describe the bug
Formatted result:
Expected behavior
or
Desktop (please complete the following information):
postgres:14.6-alpine