Replies: 3 comments 4 replies
-
Your schema.prisma should be defined like this:
It needs the |
Beta Was this translation helpful? Give feedback.
3 replies
-
Where is your database hosted and try asking phind
…On Sun., Jan. 28, 2024, 10:40 p.m. Susanta Gorai, ***@***.***> wrote:
Yes
—
Reply to this email directly, view it on GitHub
<#4023 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQF3ZKT7B7QRNIRSSQID6SLYQ4K23AVCNFSM6AAAAAA4T7KHVGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DENZWGU4DK>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Make a new db
…On Mon., Jan. 29, 2024, 1:48 a.m. Susanta Gorai, ***@***.***> wrote:
Superbase
—
Reply to this email directly, view it on GitHub
<#4023 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQF3ZKSQM62HYDDKSAKXBXDYQ5A5PAVCNFSM6AAAAAA4T7KHVGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DENZXGU3DO>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hey everyone! I am looking for an easy way to edit my postgres production schema with prisma WITHOUT any data loss. I tried to run yarn prisma migrate dev with the postgres db url but am running into an issue
Error: db error: ERROR: database "[DB NAME]" is being accessed by other users
DETAIL: There are 2 other sessions using the database.
0: migration_core::state::DevDiagnostic
at migration-engine/core/src/state.rs:269
However, I am not able to kill any sessions in psql because my account is not a superuser and I am not sure how to log into the superuser to perform these actions (since my role is not one).
Is this the best way to edit prod table schema through prisma or is there a better way of doing this? I basically want a way for my local db to be in sync with my vercel postgres production db. I also tried yarn prisma db push but that deleted all my production data, luckily I saved everything locally first.
Thank you in advance!
Example
No response
Steps to Reproduce
N/A
Beta Was this translation helpful? Give feedback.
All reactions