wip sync daily holdings

This commit is contained in:
hackerESQ
2024-09-11 23:04:21 -05:00
parent eb6e7b9002
commit a4f2def766
4 changed files with 53 additions and 11 deletions
+5
View File
@@ -232,7 +232,12 @@ class Holding extends Model
$date_interval = "DATE_ADD(date, INTERVAL 1 DAY)";
if (config('database.default') === 'sqlite') {
$date_interval = "date(date, '+1 day')";
} else if (config('database.default') === 'mysql') {
DB::statement('SET GLOBAL cte_max_recursion_depth = 20000;');
}
return DB::table(DB::raw("(