mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-20 09:26:07 +00:00
86dc50f9f0
- Advanced code migrations now disable then re-enable triggers. Brings run time down to < 15 seconds, no need to thread them. - Changing ap_ids and actor_ids in migrations to a fake url, so it doesn't break XsdAnyUri in activitystreams.
15 lines
647 B
SQL
Vendored
15 lines
647 B
SQL
Vendored
-- Add federation columns to post, comment
|
|
|
|
alter table post
|
|
-- TODO uniqueness constraints should be added on these 3 columns later
|
|
add column ap_id character varying(255) not null default 'http://fake.com', -- This needs to be checked and updated in code, building from the site url if local
|
|
add column local boolean not null default true
|
|
;
|
|
|
|
alter table comment
|
|
-- TODO uniqueness constraints should be added on these 3 columns later
|
|
add column ap_id character varying(255) not null default 'http://fake.com', -- This needs to be checked and updated in code, building from the site url if local
|
|
add column local boolean not null default true
|
|
;
|
|
|