move cte max to conf file
This commit is contained in:
@@ -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')";
|
||||
|
||||
Reference in New Issue
Block a user