1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 13:28:35 +01:00

Order PdoStorage by date

Newest first
This commit is contained in:
Barry vd. Heuvel 2014-12-04 08:53:32 +01:00
parent 957c873543
commit 496a00a5a8

View File

@ -24,7 +24,7 @@ class PdoStorage implements StorageInterface
protected $sqlQueries = array(
'save' => "INSERT INTO %tablename% (id, data, meta_utime, meta_datetime, meta_uri, meta_ip, meta_method) VALUES (?, ?, ?, ?, ?, ?, ?)",
'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%"
);