Skip to content

Commit

Permalink
reinstate auditlog table, remove indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Dec 2, 2022
1 parent 282ba7b commit e91e436
Show file tree
Hide file tree
Showing 17 changed files with 2,200 additions and 2,778 deletions.
1 change: 1 addition & 0 deletions packages/db/client/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@prisma/client'
2 changes: 1 addition & 1 deletion packages/db/datastore
4 changes: 1 addition & 3 deletions packages/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ declare global {
export const prisma: PrismaClient =
global.prisma ||
new PrismaClient({
log: process.env.NODE_ENV === 'development' ? ['query', 'error', 'warn'] : ['error'],
// log: process.env.NODE_ENV === 'development' ? ['query', 'error', 'warn'] : ['error'],
})

export * from '@prisma/client'

if (process.env.NODE_ENV !== 'production') {
global.prisma = prisma
}
4 changes: 2 additions & 2 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"db:generate": "pnpm clean:zod && pnpm with-env prisma generate && pnpm format:generated && prisma -v",
"db:generate:aws": "pnpm install && pnpm with-env prisma generate",
"db:migrate": "pnpm with-env prisma migrate dev && pnpm format:generated",
"db:migrate:edit": "pnpm with-env prisma migrate dev --create-only --skip-seed && pnpm format:generated",
"db:migrate:edit": "pnpm with-env prisma migrate dev --create-only --skip-seed",
"db:mongoexport": "pnpm clean:export && pnpm with-env tsx ./seed/migrate-v1/mongoexport.ts",
"db:reset": "pnpm with-env prisma migrate reset --skip-generate --skip-seed",
"db:seed": "pnpm with-env prisma db seed",
"db:studio": "pnpm with-env prisma studio",
"format": "prettier --cache --cache-strategy metadata --write --ignore-unknown . && prisma format",
Expand All @@ -34,7 +35,6 @@
"dependencies": {
"@prisma/client": "4.7.0",
"prisma-docs-generator": "0.5.0",
"prisma-query-inspector": "1.4.4",
"zod": "3.19.1"
},
"devDependencies": {
Expand Down

0 comments on commit e91e436

Please sign in to comment.