lemmy/migrations/2021-11-22-135324_add_activity_ap_id_index/down.sql
Dessalines 3d08e6c1fc
Adding unique constraint for activity ap_id. Fixes #1878 (#1935)
* Adding unique constraint for activity ap_id. Fixes #1878

* Removing is_activity_already_known
2021-11-22 18:57:03 +00:00

6 lines
170 B
SQL

alter table activity alter column ap_id drop not null;
create unique index idx_activity_unique_apid on activity ((data ->> 'id'::text));
drop index idx_activity_ap_id;