Skip to content

Commit 1837ffb

Browse files
authored
Merge pull request #3 from zchpeter/zchpeter-patch-1
try declaring PK on column
2 parents a49c069 + 88858c6 commit 1837ffb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

schema/schema.sql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
COMMENT ON SCHEMA "public" IS 'standard public schema';
22

33
CREATE TABLE "public"."audit" (
4-
"id" serial,
4+
"id" serial PRIMARY KEY,
55
"operation" text NOT NULL,
66
"query" text,
77
"user_name" text NOT NULL,
8-
"changed_at" timestamp(6) with time zone DEFAULT CURRENT_TIMESTAMP,
9-
CONSTRAINT "audit_pkey" PRIMARY KEY (id)
8+
"changed_at" timestamp(6) with time zone DEFAULT CURRENT_TIMESTAMP
109
);
1110

1211
CREATE INDEX "idx_audit_changed_at" ON ONLY "public"."audit" (changed_at);

0 commit comments

Comments
 (0)