1.3.0 • Published 5 months ago

@subsquid/typeorm-migration v1.3.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
5 months ago

@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.
1.3.0

5 months ago

1.2.4

5 months ago

1.2.3

6 months ago

1.2.2

8 months ago

1.2.1

10 months ago

1.2.0

12 months ago

1.0.0

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago