2024-10-26 18:54:29 +00:00
|
|
|
-- replace value of inbox_url with shared_inbox_url and the drop shared inbox
|
|
|
|
UPDATE
|
|
|
|
person
|
|
|
|
SET
|
2025-01-14 04:10:31 +00:00
|
|
|
shared_inbox_url = inbox_url
|
2024-10-26 18:54:29 +00:00
|
|
|
WHERE
|
2025-01-14 04:10:31 +00:00
|
|
|
shared_inbox_url IS NULL;
|
2024-10-26 18:54:29 +00:00
|
|
|
|
|
|
|
ALTER TABLE person
|
2025-01-14 04:10:31 +00:00
|
|
|
DROP COLUMN inbox_url,
|
|
|
|
ALTER COLUMN shared_inbox_url SET NOT NULL,
|
|
|
|
ALTER COLUMN shared_inbox_url SET DEFAULT generate_unique_changeme ();
|
|
|
|
|
|
|
|
ALTER TABLE person RENAME COLUMN shared_inbox_url TO inbox_url;
|
2024-10-26 18:54:29 +00:00
|
|
|
|
|
|
|
UPDATE
|
|
|
|
community
|
|
|
|
SET
|
2025-01-14 04:10:31 +00:00
|
|
|
shared_inbox_url = inbox_url
|
2024-10-26 18:54:29 +00:00
|
|
|
WHERE
|
2025-01-14 04:10:31 +00:00
|
|
|
shared_inbox_url IS NULL;
|
2024-10-26 18:54:29 +00:00
|
|
|
|
|
|
|
ALTER TABLE community
|
2025-01-14 04:10:31 +00:00
|
|
|
DROP COLUMN inbox_url,
|
|
|
|
ALTER COLUMN shared_inbox_url SET NOT NULL,
|
|
|
|
ALTER COLUMN shared_inbox_url SET DEFAULT generate_unique_changeme ();
|
|
|
|
|
|
|
|
ALTER TABLE community RENAME COLUMN shared_inbox_url TO inbox_url;
|
2024-10-26 18:54:29 +00:00
|
|
|
|