I have a application with MySQL query where I need add hours to the datetime. For this purpose is easy to use for example
SELECT DATE_ADD(some_column, INTERVAL 4 HOUR) FROM some_table
I'm using Laravel framework and only for testing I'm using SQLite where this date_add function does not exists and I have to use this query
SELECT datetime(some_column, "+4 Hour") FROM some_table
and this is the problem because application is using mysql while PHPUnit is using sqlite. Is there any workaround how to use function to add hours to the datetime which will works for both databases or is there any effective way how to do it?