lemmy/migrations/2020-04-03-194936_add_activitypub_for_posts_and_comments/up.sql

15 lines
647 B
MySQL
Raw Normal View History

2020-04-04 00:04:57 +00:00
-- 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
2020-04-04 00:04:57 +00:00
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
2020-04-04 00:04:57 +00:00
add column local boolean not null default true
;