Skip to content

Commit

Permalink
Merge pull request #5 from zooniverse/refine-table-truncation
Browse files Browse the repository at this point in the history
Refine table truncation to account for new persistent subscriber and list IDs
  • Loading branch information
lcjohnso authored Apr 22, 2024
2 parents 82d8f4a + 756f944 commit 0b2bff8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions listmonk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ def initialize
end

def truncate_subscribers_table
monkconn.exec('TRUNCATE TABLE subscribers CASCADE')
monkconn.exec('TRUNCATE TABLE subscribers')
end

def truncate_lists_table
monkconn.exec('TRUNCATE TABLE lists CASCADE')
monkconn.exec('TRUNCATE TABLE lists')
end

def truncate_subscriber_lists_table
monkconn.exec('TRUNCATE TABLE subscriber_lists CASCADE')
monkconn.exec('TRUNCATE TABLE subscriber_lists')
end

def import_subscribers(subscriber_list)
Expand Down

0 comments on commit 0b2bff8

Please sign in to comment.