deme4447
deme4447
Explore posts from servers
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
Also note I have development and production databases in my railway set up
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
Note that my env has DATABASE_URL=MYSQL_URL am I supposed to be using MYSQL_PRIVATE_URL
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
Whenver I use the MYSQL_PRVIATVE_URL value, from railway for the mysql database, instead of the MYSQL_URL, I get this error:
Error: P1013

The provided database string is invalid. relative URL without a base in database URL. Please refer to the documentation in https://www.prisma.io/docs/reference/database-reference/connection-urls for constructing a correct connection string. In some cases, certain characters must be escaped. Please check the string for any illegal characters.
Error: P1013

The provided database string is invalid. relative URL without a base in database URL. Please refer to the documentation in https://www.prisma.io/docs/reference/database-reference/connection-urls for constructing a correct connection string. In some cases, certain characters must be escaped. Please check the string for any illegal characters.
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
Ran it again from another terminal and I got this: Error: P1013
The provided database string is invalid. relative URL without a base in database URL. Please refer to the documentation in https://www.prisma.io/docs/reference/database-reference/connection-urls for constructing a correct connection string. In some cases, certain characters must be escaped. Please check the string for any illegal characters.
The provided database string is invalid. relative URL without a base in database URL. Please refer to the documentation in https://www.prisma.io/docs/reference/database-reference/connection-urls for constructing a correct connection string. In some cases, certain characters must be escaped. Please check the string for any illegal characters.
Gonna check it out
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
I ran that code with my db value and I got this again... seems like it's not picking up my variables for some reason...
0 `--from-...` parameter(s) provided. 1 must be provided.
0 `--to-...` parameter(s) provided. 1 must be provided.
0 `--from-...` parameter(s) provided. 1 must be provided.
0 `--to-...` parameter(s) provided. 1 must be provided.
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
Any clues or suggestions? @Nurul (Prisma)
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
Also, I am using mysql with railway if that helps
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
Seems like my $DATABASE_URL isn't being picked up and when I hard coded it I get this: Error: P1013 The provided database string is invalid. relative URL without a base in database URL. Please refer to the documentation in https://www.prisma.io/docs/reference/database-reference/connection-urls for constructing a correct connection string. In some cases, certain characters must be escaped. Please check the string for any illegal characters.
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
I run this and I am getting this error:
npx prisma migrate diff \ --from-url "$DATABASE_URL" \ --to-migrations ./prisma/migrations \ --shadow-database-url $SHADOW_DATABASE_URL \ --script > script.sql
Error:
0 `--from-...` parameter(s) provided. 1 must be provided.
npx prisma migrate diff \ --from-url "$DATABASE_URL" \ --to-migrations ./prisma/migrations \ --shadow-database-url $SHADOW_DATABASE_URL \ --script > script.sql
Error:
0 `--from-...` parameter(s) provided. 1 must be provided.
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
npx prisma migrate diff \ --from-url "$DATABASE_URL" \ --to-migrations ./prisma/migrations \ --shadow-database-url $SHADOW_DATABASE_URL \ --script > script.sql
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
Just noticed I forgot to reply, doing it now in case that’s how you keep track of the questions
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
No description
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
Any ideas on what I could be missing? Thanks for your time btw
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
When I run the command, it doesn't end up producing the migration.sql file, or the squashed_migrations directory This is what I get back:
npx prisma migrate dev --name squashed_migrations
Environment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma
Datasource "db": MySQL database "railway" at "autorack.proxy.rlwy.net:14917"
Already in sync, no schema change or pending migration was found.

✔ Generated Prisma Client (v6.1.0) to .\node_modules\@prisma\client in 66ms
npx prisma migrate dev --name squashed_migrations
Environment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma
Datasource "db": MySQL database "railway" at "autorack.proxy.rlwy.net:14917"
Already in sync, no schema change or pending migration was found.

✔ Generated Prisma Client (v6.1.0) to .\node_modules\@prisma\client in 66ms
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
No description
21 replies
PPrisma
Created by deme4447 on 12/24/2024 in #help-and-questions
Production Migrations after Dev Migrations
No description
21 replies
TTCTheo's Typesafe Cult
Created by deme4447 on 11/10/2024 in #questions
Client Side CTX not being available
My specific error was I manually synchronize my computer's time rather than automatically using Apple Servers, or location services. This cause the JWT authorization to "unsync" because of the time. Once I turned on automatic time, it fixed the problem
6 replies
TTCTheo's Typesafe Cult
Created by ZowtuPinda on 5/14/2024 in #questions
TypeError: Cannot read properties of null (reading 'useContext')
My specific error was I manually synchronize my computer's time rather than automatically using Apple Servers, or location services. This cause the JWT authorization to "unsync" because of the time. Once I turned on automatic time, it fixed the problem
11 replies
TTCTheo's Typesafe Cult
Created by deme4447 on 11/10/2024 in #questions
Client Side CTX not being available
If I can provide more info pls ask
6 replies
TTCTheo's Typesafe Cult
Created by deme4447 on 11/10/2024 in #questions
Client Side CTX not being available
Any help would be appreciated
6 replies