salix/db/versions/.archive/10459-chocolateMedeola/04-createFunctionNow.sql

12 lines
223 B
MySQL
Raw Normal View History

DROP FUNCTION IF EXISTS `util`.`NOW`;
DELIMITER $$
CREATE DEFINER=`root`@`localhost` FUNCTION `util`.`NOW`()
RETURNS DATETIME
DETERMINISTIC
BEGIN
/**
* @return The mock datetime
*/
RETURN mockTime();
END$$
DELIMITER ;