Skip to content

Commit

Permalink
remove cascade option from truncate command; execute each explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
lcjohnso authored Apr 18, 2024
1 parent 82d8f4a commit 756f944
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 756f944

Please sign in to comment.