]> Untitled Git - lemmy.git/blob - migrations/2020-04-03-194936_add_activitypub_for_posts_and_comments/up.sql
add enable_federated_downvotes site option
[lemmy.git] / migrations / 2020-04-03-194936_add_activitypub_for_posts_and_comments / up.sql
1 -- Add federation columns to post, comment
2 ALTER TABLE post
3 -- TODO uniqueness constraints should be added on these 3 columns later
4     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
5     ADD COLUMN local boolean NOT NULL DEFAULT TRUE;
6
7 ALTER TABLE comment
8 -- TODO uniqueness constraints should be added on these 3 columns later
9     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
10     ADD COLUMN local boolean NOT NULL DEFAULT TRUE;
11