sendmedialtd
Active Member
Hey,
I know there isn't a tool on MW where you can do a bulk Blacklist removal (like the Import Blacklist tool but the reverse) so I'm going to run a SQL query in the database to do this because I've just imported the wrong file to the blacklist because I'm an idiot and need to get them all removed.
My first option was to go off the email addresses, but then I thought well that's not going to work correctly as what if the email was already in the blacklist and it needs to stay there. So my second option is to go off the Timestamp, so anything that was added to the Customers Blacklist between 4/4/18 1:50pm and 4/4/18 1:55pm will be removed.
@twisted1919 can you confirm if running a simple SQL query to the `mw_customer_email_blacklist` table is all I need to do to get them removed. There isn't another table or anything is there, ive checked the database myself and pretty sure theres not but would like confirmation before I continue
Anyone who wants to do this then you can do this by running the following SQL Query in your database:
Just make sure you change the Customer ID number to ensure only records from that customer are deleted and update BOTH timestamps.
Note: Check the timestamps in your database first, as in MW it will give you the time based off your selected time zone. Where as in the Database the time is stored from your server time. So for example in MW it says I imported the file to the blacklist at 1:50PM, but in the database it says 12:50pm.
I know there isn't a tool on MW where you can do a bulk Blacklist removal (like the Import Blacklist tool but the reverse) so I'm going to run a SQL query in the database to do this because I've just imported the wrong file to the blacklist because I'm an idiot and need to get them all removed.
My first option was to go off the email addresses, but then I thought well that's not going to work correctly as what if the email was already in the blacklist and it needs to stay there. So my second option is to go off the Timestamp, so anything that was added to the Customers Blacklist between 4/4/18 1:50pm and 4/4/18 1:55pm will be removed.
@twisted1919 can you confirm if running a simple SQL query to the `mw_customer_email_blacklist` table is all I need to do to get them removed. There isn't another table or anything is there, ive checked the database myself and pretty sure theres not but would like confirmation before I continue
Anyone who wants to do this then you can do this by running the following SQL Query in your database:
PHP:
DELETE FROM `mw_customer_email_blacklist` WHERE `customer_id` = 1 AND `date_added` BETWEEN '2018-04-04 12:50:00.000000' AND '2018-04-04 12:56:00.000000'
Just make sure you change the Customer ID number to ensure only records from that customer are deleted and update BOTH timestamps.
Note: Check the timestamps in your database first, as in MW it will give you the time based off your selected time zone. Where as in the Database the time is stored from your server time. So for example in MW it says I imported the file to the blacklist at 1:50PM, but in the database it says 12:50pm.