Skip to content

Commit

Permalink
perf(database): remove unused index on folders (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
tericcabrel authored Jun 23, 2024
1 parent f9c5d86 commit 2244243
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/migration-db-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
continue-on-error: false
run: |
pscale deploy-request deploy ${{ secrets.PLANETSCALE_DATABASE_NAME }} ${{ env.DEV_DEPLOY_REQUEST_NUMBER }} --org ${{ secrets.PLANETSCALE_ORG_NAME }} --wait
pscale deploy-request skip-revert ${{ secrets.PLANETSCALE_DATABASE_NAME }} ${{ env.DEV_DEPLOY_REQUEST_NUMBER }} --org ${{ secrets.PLANETSCALE_ORG_NAME }}
- name: Deploy schema migration in the production branch
if: ${{ success() }}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- DropIndex
DROP INDEX `folders_user_id_idx` ON `folders`;
1 change: 0 additions & 1 deletion packages/domain/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ model Folder {
@@unique([userId, parentId, name], name: "folder_name_unique_constraint")
@@index([name])
@@index([category])
@@index([userId])
@@index([parentId])
@@map("folders")
}
Expand Down

0 comments on commit 2244243

Please sign in to comment.