summaryrefslogtreecommitdiffstats
path: root/server/migrations/2020-04-03-194936_add_activitypub_for_posts_and_comments/up.sql
blob: a3fb9562dd72b5afee8c8839d057cf0a9a3a24b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- 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 'changeme', -- 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 'changeme', -- This needs to be checked and updated in code, building from the site url if local
add column local boolean not null default true
;