salix/db/dump/mockDate.sql

13 lines
278 B
MySQL
Raw Normal View History

2023-05-16 13:00:31 +00:00
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 ;