Socket
Book a DemoInstallSign in
Socket

prisma-migration-helpers

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma-migration-helpers

- binaries are pushed together with the source code thus no need to install rust toolchain - but if one wants to build these binaries you need to have the rust toolchain installed.

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

prisma migration helpers

  • binaries are pushed together with the source code thus no need to install rust toolchain
  • but if one wants to build these binaries you need to have the rust toolchain installed.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • the build commands can be found in the package.json
  • to install the dependencies run: cargo install --path . --force

cleanup:

  • since Prisma Prisma lacks proper support for sql views as of right now (25/04/2022). It always tries to add create and alter statements for views added as models in schema.prisma This script removes the create and alter statements in every new migration for all views found in the migration dir
npm run migration-cleanup

commit:

  • before every commit this binary can be run to check if a new migration contains a create and alter statements for all views found in the migration dir
npm run commit

version:

  • goes through migration dir and filters out the latest migration number
  • based on the filtered out migration number returns next migration number
npm run next-migration-version

FAQs

Package last updated on 25 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.