- 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,7 +15,7 @@ create unique index idx_activity_unique_apid on activity ((data ->> 'id'::text))
-- Add federation columns to the two actor tables
altertableuser_
-- TODO uniqueness constraints should be added on these 3 columns later
addcolumnactor_idcharactervarying(255)notnulldefault'changeme',-- This needs to be checked and updated in code, building from the site url if local
addcolumnactor_idcharactervarying(255)notnulldefault'http://fake.com',-- This needs to be checked and updated in code, building from the site url if local
addcolumnbiotext,-- not on community, already has description
addcolumnlocalbooleannotnulldefaulttrue,
addcolumnprivate_keytext,-- These need to be generated from code
@ -25,7 +25,7 @@ add column last_refreshed_at timestamp not null default now() -- Used to re-fetc
-- Community
altertablecommunity
addcolumnactor_idcharactervarying(255)notnulldefault'changeme',-- This needs to be checked and updated in code, building from the site url if local
addcolumnactor_idcharactervarying(255)notnulldefault'http://fake.com',-- This needs to be checked and updated in code, building from the site url if local
addcolumnlocalbooleannotnulldefaulttrue,
addcolumnprivate_keytext,-- These need to be generated from code
-- TODO uniqueness constraints should be added on these 3 columns later
addcolumnap_idcharactervarying(255)notnulldefault'changeme',-- This needs to be checked and updated in code, building from the site url if local
addcolumnap_idcharactervarying(255)notnulldefault'http://fake.com',-- This needs to be checked and updated in code, building from the site url if local
addcolumnlocalbooleannotnulldefaulttrue
;
altertablecomment
-- TODO uniqueness constraints should be added on these 3 columns later
addcolumnap_idcharactervarying(255)notnulldefault'changeme',-- This needs to be checked and updated in code, building from the site url if local
addcolumnap_idcharactervarying(255)notnulldefault'http://fake.com',-- This needs to be checked and updated in code, building from the site url if local
addcolumnap_idcharactervarying(255)notnulldefault'changeme',-- This needs to be checked and updated in code, building from the site url if local
addcolumnap_idcharactervarying(255)notnulldefault'http://fake.com',-- This needs to be checked and updated in code, building from the site url if local