Deactivating campaigns 6 months old

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Deactivating campaigns 6 months old

Postby rheymzkilove » Sun Apr 19, 2015 9:23 pm

Hi guys,

i want to deactivate old campaings which is not in use about 6 months old and above. im new to mysql and im using mysql workbench to access our vicidial DB.
i dont know the exact command to run. Can you teach me on what command do i need to use?

Thanks
rheymzkilove
 
Posts: 41
Joined: Fri Oct 19, 2012 2:57 pm

Re: Deactivating campaigns 6 months old

Postby MJCoate » Thu Apr 23, 2015 9:12 pm

This depends on how you are determining which ones have not been in use. Assuming you want to use the call date, I think this should do it:

UPDATE vicidial_campaigns SET active='N' WHERE campaign_calldate => 'YYYY-MM-DD HH:MM:SS';

Where the datetime is six months less your current date.
Mike Coate | VICIdial Technical Support Staff
MJCoate
 
Posts: 82
Joined: Wed Mar 25, 2015 1:57 pm

Re: Deactivating campaigns 6 months old

Postby okli » Mon Apr 27, 2015 11:09 am

Just a friendly reminder- if you are new to MySQL be very very careful if you are in production when managing vicidial directly from the database. It takes only a single overlooked query to give you serious troubles.
Get more familiar with MySQL and only then play with vicidial database, keeping backups handy.
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 97 guests