move cte max to conf file

This commit is contained in:
hackerESQ
2024-09-11 23:34:34 -05:00
parent ee8503886d
commit f2adeff074
3 changed files with 3 additions and 9 deletions
-9
View File
@@ -232,15 +232,6 @@ class Holding extends Model
$date_interval = "DATE_ADD(date, INTERVAL 1 DAY)";
try {
DB::statement('SET GLOBAL cte_max_recursion_depth = 25000;');
} catch (\Throwable $e) {
Log::info('Couldn\'t set the max CTE recursion depth config.');
}
if (config('database.default') === 'sqlite') {
$date_interval = "date(date, '+1 day')";