[perf] more sql indexes

This commit is contained in:
Avris 2021-11-20 12:30:22 +01:00
parent 02ec5fede8
commit 39e706b7cf
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
-- Up
CREATE INDEX "profiles_teamName" ON "profiles" ("teamName");
CREATE INDEX "profiles_footerName" ON "profiles" ("footerName");
CREATE INDEX "profiles_footerAreas" ON "profiles" ("footerAreas");
CREATE INDEX "reports_userId" ON "reports" ("userId");
-- Down
DROP INDEX "profiles_teamName";
DROP INDEX "profiles_footerName";
DROP INDEX "profiles_footerAreas";
DROP INDEX "reports_userId";