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

12 lines
223 B
SQL

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 ;