mirror of
https://github.com/penpot/penpot.git
synced 2025-05-14 15:46:38 +02:00
✨ Add missing index on server_error_report table
This commit is contained in:
parent
e7a82579c1
commit
1bfc28f63d
3 changed files with 6 additions and 1 deletions
|
@ -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 );
|
Loading…
Add table
Add a link
Reference in a new issue