-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update packages + migrate to prisma 5 #145
Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f294ccd
update packages + migrate to prisma 5
arian81 b5bffb2
chore: change to node 20
arian81 bbac439
chore: run prettier
Krish120003 016efee
chore: changes schema to use new cockroachdb wrapper
arian81 b4e6515
Revert "chore: changes schema to use new cockroachdb wrapper"
arian81 950e276
chore: update schema to make compatible with cockroachdb wrapper
arian81 e3cd7e3
chore: update packages
arian81 1eb5e74
chore: pull schema pre-baselinging
Krish120003 465d6bf
feat: upgrade prisma to v5 cockroachdb
Krish120003 d7c9d4e
fix: remove random new typescrpit rule for now
Krish120003 81f192e
Revert "chore: pull schema pre-baselinging"
Krish120003 fd87227
Revert "feat: upgrade prisma to v5 cockroachdb"
Krish120003 a1cf30f
Revert "fix: remove random new typescrpit rule for now"
Krish120003 6acfe72
chore: most up to date packages
arian81 dfc1f8c
Merge branch 'arian/tech-47-migrate-to-prisma-v5' of https://github.c…
Krish120003 fc8ffb8
chore: downgrade prisma
arian81 c95316a
Merge branch 'arian/tech-47-migrate-to-prisma-v5' of https://github.c…
arian81 ad25e6d
Merge branch 'main' into arian/tech-47-migrate-to-prisma-v5
Krish120003 082cac2
chore: eslint rules
arian81 93a8e62
chore: update package lock 💀
arian81 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ generator client { | |
} | ||
|
||
datasource db { | ||
provider = "postgresql" | ||
provider = "cockroachdb" | ||
// NOTE: When using postgresql, mysql or sqlserver, uncomment the @db.text annotations in model Account below | ||
// Further reading: | ||
// https://next-auth.js.org/adapters/prisma#create-the-prisma-schema | ||
|
@@ -21,16 +21,16 @@ model Account { | |
type String | ||
provider String | ||
providerAccountId String | ||
refresh_token String? @db.Text | ||
refresh_token String? //@db.Text | ||
refresh_token_expires_in Int? | ||
access_token String? @db.Text | ||
access_token String? //@db.Text | ||
expires_at Int? | ||
ext_expires_in Int? | ||
oauth_token_secret String? @db.Text | ||
oauth_token String? @db.Text | ||
oauth_token_secret String? //@db.Text | ||
oauth_token String? //@db.Text | ||
token_type String? | ||
scope String? | ||
id_token String? @db.Text | ||
id_token String? //@db.Text | ||
session_state String? | ||
user User @relation(fields: [userId], references: [id], onDelete: Cascade) | ||
|
||
|
@@ -53,7 +53,7 @@ model User { | |
image String? | ||
accounts Account[] | ||
sessions Session[] | ||
typeform_response_id String? @db.Text | ||
typeform_response_id String? //@db.Text | ||
role Role[] @default([HACKER]) | ||
hacker Review[] @relation("hacker") | ||
reviewer Review[] @relation("reviewer") | ||
Comment on lines
53
to
59
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
refresh_token
,access_token
,oauth_token_secret
,oauth_token
, andid_token
fields in theAccount
model have been commented out. If these fields are not used, consider removing them entirely. If they are needed in the future, they can be added back. Leaving commented-out code can lead to confusion and clutter.