diff --git a/migrations/039-more-indexes.sql b/migrations/039-more-indexes.sql new file mode 100644 index 00000000..08a8a34a --- /dev/null +++ b/migrations/039-more-indexes.sql @@ -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";