@@ -66,7 +66,7 @@ class AdminInterface extends Controller
...
@@ -66,7 +66,7 @@ class AdminInterface extends Controller
$connection=DB::connection("logs");
$connection=DB::connection("logs");
$log_summary=$connection
$log_summary=$connection
->table(
->table(
$connection->table("logs")->select(["*"])->whereRaw("(time at time zone 'UTC') between '".$date->format("Y-m-d")." 00:00:00' and '".$date->format("Y-m-d")." 23:59:59'"),
$connection->table("logs_partitioned")->select(["*"])->whereRaw("time between '".$date->format("Y-m-d")." 00:00:00' and '".$date->format("Y-m-d")." 23:59:59'"),
"data"
"data"
)
)
->select(DB::raw("date_trunc('hour', data.time) AS timestamp, count(*)"))
->select(DB::raw("date_trunc('hour', data.time) AS timestamp, count(*)"))
...
@@ -89,9 +89,9 @@ class AdminInterface extends Controller
...
@@ -89,9 +89,9 @@ class AdminInterface extends Controller