13 lines
278 B
MySQL
13 lines
278 B
MySQL
|
CREATE SCHEMA IF NOT EXISTS `util`;
|
||
|
USE `util`;
|
||
|
|
||
|
DELIMITER ;;
|
||
|
DROP FUNCTION IF EXISTS `util`.`mockTime`;
|
||
|
CREATE OR REPLACE FUNCTION `util`.`mockTime`()
|
||
|
RETURNS DATETIME
|
||
|
DETERMINISTIC
|
||
|
BEGIN
|
||
|
RETURN CONVERT_TZ('2001-01-01 11:00:00', 'utc', 'Europe/Madrid');
|
||
|
END ;;
|
||
|
DELIMITER ;
|