mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 07:41:43 -05: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
|
||||
FROM server_error_report
|
||||
ORDER BY created_at DESC
|
||||
LIMIT 100")
|
||||
LIMIT 200")
|
||||
|
||||
(defn error-list-handler
|
||||
[{:keys [::db/pool]} request]
|
||||
|
|
|
@ -324,6 +324,9 @@
|
|||
{:name "0104-mod-file-thumbnail-table"
|
||||
: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!
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
CREATE INDEX server_error_report__created_at__idx
|
||||
ON server_error_report ( created_at );
|
Loading…
Add table
Reference in a new issue