Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@subsquid/typeorm-migration

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@subsquid/typeorm-migration

TypeORM based migration tool for squids

  • 1.3.0
  • next
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@subsquid/typeorm-migration

A thin wrapper around TypeORM migration tools, which understands and follows squid project conventions.

Usage

# 1. Install
npm i @subsquid/typeorm-migration

# 2. List available commands
npx squid-typeorm-migration --help
apply           apply pending migrations
create          create template file for a new migration
generate        analyze database state and generate migration to match the target schema
revert          revert the last applied migration

Rules

  • All migrations should be written as plain commonjs files and placed at db/migrations
  • All entities should be exported from lib/model commonjs module, i.e. entity classes must be compiled from TypeScript before running squid-typeorm-migration generate.
  • Database connection settings are picked from DB_* environment variables.

FAQs

Package last updated on 24 Dec 2023

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc