diff --git a/app/db/migrations/016_campaign_subs_comment_config.sql b/app/db/migrations/016_campaign_subs_comment_config.sql new file mode 100644 index 0000000..b13f58a --- /dev/null +++ b/app/db/migrations/016_campaign_subs_comment_config.sql @@ -0,0 +1,15 @@ +-- app/db/migrations/016_campaign_subs_comment_config.sql + +-- thread_title_pattern: case-insensitive substring to match the sticky thread title. +-- Required for reddit_comment campaigns; NULL for reddit_post campaigns. +ALTER TABLE campaign_subs ADD COLUMN thread_title_pattern TEXT; + +-- thread_url_override: skip thread detection and comment directly on this URL. +-- Takes precedence over thread_title_pattern when set. +ALTER TABLE campaign_subs ADD COLUMN thread_url_override TEXT; + +-- occurrence: scheduling modifier applied inside the job runner before execution. +-- "every" — fire on every scheduled run (default) +-- "first_sunday" — fire only on the first Sunday of the month +-- NULL — treated as "every" +ALTER TABLE campaign_subs ADD COLUMN occurrence TEXT;