Дата MariaDB равна current_date Plus Days

SELECT CURRENT_DATE - INTERVAL 30 DAY
Matteoweb