sudo -u postgres psql -c 'DELETE FROM cc_schedule WHERE id in (SELECT s.id from cc_schedule s LEFT JOIN cc_show_instances si on s.instance_id = si.id WHERE si.modified_instance = 't');' airtime
sudo -u postgres psql -c 'DELETE FROM cc_schedule WHERE id in (SELECT s.id from cc_schedule s LEFT JOIN cc_show_instances si on s.instance_id = si.id WHERE si.modified_instance = true);' airtime
It looks like you're new here. If you want to get involved, click one of these buttons!