-- --------------------------------------------------------
-- Server OS:                    Win64
-- HeidiSQL Version:             12.10.0.7000
-- --------------------------------------------------------


-- Dumping structure for trigger carpsilviuionut.REMOVE_DEFAULT_CATEGS
SET @OLDTMP_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO';
DELIMITER //
CREATE TRIGGER `REMOVE_DEFAULT_CATEGS` BEFORE INSERT ON `wpcsi_term_relationships` FOR EACH ROW if NEW.term_taxonomy_id = 64 THEN

                DELETE FROM wpcsi_term_relationships WHERE object_id = NEW.object_id;
    	end if//
DELIMITER ;

