From 88858c63880263500008247be2c4e8e625a55f88 Mon Sep 17 00:00:00 2001 From: zchpeter Date: Wed, 5 Nov 2025 06:07:19 -0500 Subject: [PATCH] try declaring PK on column --- schema/schema.sql | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/schema/schema.sql b/schema/schema.sql index e6e1451..fd39ae9 100644 --- a/schema/schema.sql +++ b/schema/schema.sql @@ -1,12 +1,11 @@ COMMENT ON SCHEMA "public" IS 'standard public schema'; CREATE TABLE "public"."audit" ( - "id" serial, + "id" serial PRIMARY KEY, "operation" text NOT NULL, "query" text, "user_name" text NOT NULL, - "changed_at" timestamp(6) with time zone DEFAULT CURRENT_TIMESTAMP, - CONSTRAINT "audit_pkey" PRIMARY KEY (id) + "changed_at" timestamp(6) with time zone DEFAULT CURRENT_TIMESTAMP ); CREATE INDEX "idx_audit_changed_at" ON ONLY "public"."audit" (changed_at);