]> Untitled Git - lemmy.git/blob - migrations/2020-04-03-194936_add_activitypub_for_posts_and_comments/up.sql
Isomorphic docker (#1124)
[lemmy.git] / migrations / 2020-04-03-194936_add_activitypub_for_posts_and_comments / up.sql
1 -- Add federation columns to post, comment
2
3 alter table post
4 -- TODO uniqueness constraints should be added on these 3 columns later
5 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
6 add column local boolean not null default true
7 ;
8
9 alter table comment
10 -- TODO uniqueness constraints should be added on these 3 columns later
11 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
12 add column local boolean not null default true
13 ;
14