mirror of
https://github.com/Alexander-D-Karpov/webring.git
synced 2026-03-16 22:07:41 +03:00
5 lines
232 B
SQL
5 lines
232 B
SQL
-- Remove the deferrable constraint that's preventing foreign keys
|
|
ALTER TABLE sites DROP CONSTRAINT IF EXISTS sites_unique_id;
|
|
ALTER TABLE sites DROP CONSTRAINT IF EXISTS sites_pkey CASCADE;
|
|
ALTER TABLE sites ADD PRIMARY KEY (id);
|