mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Add missing index on server_error_report table
This commit is contained in:
@@ -264,7 +264,7 @@
|
|||||||
content->>'~:hint' AS hint
|
content->>'~:hint' AS hint
|
||||||
FROM server_error_report
|
FROM server_error_report
|
||||||
ORDER BY created_at DESC
|
ORDER BY created_at DESC
|
||||||
LIMIT 100")
|
LIMIT 200")
|
||||||
|
|
||||||
(defn error-list-handler
|
(defn error-list-handler
|
||||||
[{:keys [::db/pool]} request]
|
[{:keys [::db/pool]} request]
|
||||||
|
|||||||
@@ -324,6 +324,9 @@
|
|||||||
{:name "0104-mod-file-thumbnail-table"
|
{:name "0104-mod-file-thumbnail-table"
|
||||||
:fn (mg/resource "app/migrations/sql/0104-mod-file-thumbnail-table.sql")}
|
:fn (mg/resource "app/migrations/sql/0104-mod-file-thumbnail-table.sql")}
|
||||||
|
|
||||||
|
{:name "0105-mod-server-error-report-table"
|
||||||
|
:fn (mg/resource "app/migrations/sql/0105-mod-server-error-report-table.sql")}
|
||||||
|
|
||||||
])
|
])
|
||||||
|
|
||||||
(defn apply-migrations!
|
(defn apply-migrations!
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
CREATE INDEX server_error_report__created_at__idx
|
||||||
|
ON server_error_report ( created_at );
|
||||||
Reference in New Issue
Block a user