From 224e88c734f391af520b26eeaff1c47f8af9f7bd Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc kop@karlpinc.com" Date: Sat, 6 Jun 2026 21:41:01 +0000 Subject: [PATCH] Use eid_primary_key() macro --- db/schemas/sokwedb/tables/create/arrivals.m4 | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/db/schemas/sokwedb/tables/create/arrivals.m4 b/db/schemas/sokwedb/tables/create/arrivals.m4 index 57af2d8..dcb7044 100644 --- a/db/schemas/sokwedb/tables/create/arrivals.m4 +++ b/db/schemas/sokwedb/tables/create/arrivals.m4 @@ -36,16 +36,6 @@ CREATE TABLE arrivals ( REFERENCES arrival_sources ); --- Give the primary key index a useful name so the user has a clue --- when they violate it. -CREATE UNIQUE INDEX - "ARRIVALS has, at most, a 1-to-1 relationship with EVENTS" - ON arrivals - (eid); - -ALTER TABLE arrivals - ADD PRIMARY KEY - USING INDEX - "ARRIVALS has, at most, a 1-to-1 relationship with EVENTS"; +eid_primary_key(`ARRIVALS') grant_priv(`ARRIVALS') -- 2.34.1