question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preview feature feedback: `migrate diff` & `db execute`

See original GitHub issue

Please share your feedback about the new Preview migrate diff & db execute commands released in v3.9.0 in this issue.

  • If you encounter a bug, please open a bug report in this repo.
  • If the feature is working well for you, please share this in a comment below or leave a 👍 on this issue.

If you have any questions, don’t hesitate to ask them in the #product-feedback channel in the Prisma Slack.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
KATTcommented, Feb 1, 2022

I guess this potentially closes #9707 😺

2reactions
livthomascommented, Feb 2, 2022

@Jolg42 What I’m trying to do is to create database views in a seed command since Prisma doesn’t support views at the moment (see #678).

I previously used prisma.$executeRaw which required me to have all the queries inside a TS file. With this new db execute command, I can have the views defined in separate SQL files which is much better.

The only thing that could be improved is an ability to execute all of them in a single command. I guess it would even be faster because of the overhead around connecting to a database, etc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prisma Migrate Preview - Database Migrations Simplified
2. Run prisma migrate dev --preview-feature to create and execute the migration. ALTER TABLE "Post" ADD FOREIGN KEY("authorId")REFERENCES "User ...
Read more >
Prisma on Twitter: " Here's an example of how you would use ...
Send us your feedback! The new Prisma Migrate commands (`migrate diff` and `db execute`) are currently in Preview. We're looking forward ...
Read more >
Azure Database Migration Service supported scenarios
Learn which migration scenarios are currently supported for Azure Database Migration Service and their availability status.
Read more >
New features in Android Studio Preview
You can also import test results into Android Studio for further analysis by clicking Run > Test History in the IDE. New Android...
Read more >
AWS DMS data validation - AWS Database Migration Service
You can create validation only tasks to preview and validate data without performing any migration or data replication. To create a validation only...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found