mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-14 13:26:30 +02:00
Order PdoStorage by date
Newest first
This commit is contained in:
@ -24,7 +24,7 @@ class PdoStorage implements StorageInterface
|
|||||||
protected $sqlQueries = array(
|
protected $sqlQueries = array(
|
||||||
'save' => "INSERT INTO %tablename% (id, data, meta_utime, meta_datetime, meta_uri, meta_ip, meta_method) VALUES (?, ?, ?, ?, ?, ?, ?)",
|
'save' => "INSERT INTO %tablename% (id, data, meta_utime, meta_datetime, meta_uri, meta_ip, meta_method) VALUES (?, ?, ?, ?, ?, ?, ?)",
|
||||||
'get' => "SELECT data FROM %tablename% WHERE id = ?",
|
'get' => "SELECT data FROM %tablename% WHERE id = ?",
|
||||||
'find' => "SELECT data FROM %tablename% %where% LIMIT %limit% OFFSET %offset%",
|
'find' => "SELECT data FROM %tablename% %where% ORDER BY meta_datetime LIMIT %limit% OFFSET %offset%",
|
||||||
'clear' => "DELETE FROM %tablename%"
|
'clear' => "DELETE FROM %tablename%"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user