feat: add comment config columns to campaign_subs (thread_title_pattern, thread_url_override, occurrence)
This commit is contained in:
parent
81a63ab0ec
commit
9248410cf1
1 changed files with 15 additions and 0 deletions
15
app/db/migrations/016_campaign_subs_comment_config.sql
Normal file
15
app/db/migrations/016_campaign_subs_comment_config.sql
Normal file
|
|
@ -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;
|
||||
Loading…
Reference in a new issue