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

12 lines
660 B
MySQL
Raw Normal View History

2020-04-04 00:04:57 +00:00
-- Add federation columns to post, comment
ALTER TABLE post
2020-04-04 00:04:57 +00:00
-- 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
ADD COLUMN local boolean NOT NULL DEFAULT TRUE;
2020-04-04 00:04:57 +00:00
ALTER TABLE comment
2020-04-04 00:04:57 +00:00
-- 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
ADD COLUMN local boolean NOT NULL DEFAULT TRUE;
2020-04-04 00:04:57 +00:00