Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
⬆️ Upgrade Prisma to 2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Errorname committed Nov 1, 2020
1 parent 6170ea0 commit 3c9a92a
Show file tree
Hide file tree
Showing 14 changed files with 6,730 additions and 12,440 deletions.
19,135 changes: 6,716 additions & 12,419 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/blitz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"blitz": "^0.16.4"
},
"devDependencies": {
"@prisma/cli": "^2.4.1",
"@prisma/cli": "^2.10.1",
"@types/react": "^16.9.43",
"@types/react-dom": "^16.9.8",
"@types/webpack": "^4.41.21",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@prisma-multi-tenant/shared": "^2.3.1",
"@prisma/cli": "^2.4.1",
"@prisma/cli": "^2.10.1",
"arg": "^4.1.3",
"chalk": "^4.1.0",
"cli-table3": "^0.6.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,8 @@ class Init implements Command {

const { dmmf } = requireDistant('@prisma/client')

const firstModelMapping = dmmf.mappings[0]
const firstModelMapping = dmmf.mappings.modelOperations[0]

// We should use singular name (See prisma/prisma-client-js#509)
const modelNamePlural = firstModelMapping.plural
const modelNameSingular = firstModelMapping.model.toLowerCase()

Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@prisma-multi-tenant/shared": "^2.3.1"
},
"peerDependencies": {
"@prisma/cli": "^2.4.1"
"@prisma/cli": "^2.10.1"
},
"devDependencies": {
"@types/node": "^14.0.23",
Expand Down
2 changes: 1 addition & 1 deletion packages/nexus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"nexus": "^0.25.0"
},
"devDependencies": {
"@prisma/cli": "^2.4.1",
"@prisma/cli": "^2.10.1",
"@typescript-eslint/eslint-plugin": "^3.6.1",
"@typescript-eslint/parser": "^3.6.1",
"eslint": "^7.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/redwood/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@redwoodjs/api": "^0.15.3"
},
"devDependencies": {
"@prisma/cli": "^2.4.1",
"@prisma/cli": "^2.10.1",
"@typescript-eslint/eslint-plugin": "^3.6.1",
"@typescript-eslint/parser": "^3.6.1",
"@redwoodjs/api": "^0.15.3",
Expand Down
5 changes: 3 additions & 2 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
"prettier": "prettier \"src/**/*.ts\" --check"
},
"dependencies": {
"@prisma/client": "^2.4.1"
"@prisma/client": "^2.10.1",
"find-up": "^5.0.0"
},
"peerDependencies": {
"@prisma/cli": "^2.4.1"
"@prisma/cli": "^2.10.1"
},
"devDependencies": {
"@types/node": "^14.0.23",
Expand Down
2 changes: 0 additions & 2 deletions tests/client/constructor.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import path from 'path'

// @ts-ignore
const { MultiTenant } = require('@prisma-multi-tenant/client')

Expand Down
2 changes: 0 additions & 2 deletions tests/client/create.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import path from 'path'

// @ts-ignore
const { MultiTenant } = require('@prisma-multi-tenant/client')
// @ts-ignore
Expand Down
5 changes: 3 additions & 2 deletions tests/client/delete.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import path from 'path'

// @ts-ignore
const { MultiTenant } = require('@prisma-multi-tenant/client')

// If timeout error, increase the number
jest.setTimeout(300000)

describe('delete', () => {
test('delete existing tenant', async () => {
const multiTenant = new MultiTenant()
Expand Down
2 changes: 0 additions & 2 deletions tests/client/exists.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import path from 'path'

// @ts-ignore
const { MultiTenant } = require('@prisma-multi-tenant/client')

Expand Down
2 changes: 0 additions & 2 deletions tests/client/get.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import path from 'path'

// @ts-ignore
const { MultiTenant } = require('@prisma-multi-tenant/client')

Expand Down
4 changes: 2 additions & 2 deletions tests/playground/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "1.0.0",
"license": "MIT",
"dependencies": {
"@prisma/client": "^2.4.1",
"@prisma/cli": "^2.4.1"
"@prisma/client": "^2.10.1",
"@prisma/cli": "^2.10.1"
},
"scripts": {
"dev": "node ./script.js"
Expand Down

0 comments on commit 3c9a92a

Please sign in to comment.