• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mikro-orm / mikro-orm / 1074
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: master
Ran 22 Oct 2019 08:02AM UTC
Jobs 4
Files 321
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1074

push

travis-ci-com

web-flow
feat(core): add support for migrations via umzug (#209)

Basic support for migrations is now provided via umzug. `Migrator` class is available that can be used to generate new migration file with current schema diff from `SchemaGenerator`.

```typescript
const migrator = orm.getMigrator();
await migrator.createMigration(); // creates file Migration20191019195930.ts
await migrator.up(); // runs migrations up to the latest
await migrator.up('up-to-name'); // runs migrations up to given version
await migrator.down('down-to-name'); // runs migrations down to given version
```

CLI commands are also provided:

```sh
npx mikro-orm migration:create   # Create new migration with current schema diff
npx mikro-orm migration:up       # Migrate up to the latest version
npx mikro-orm migration:down     # Migrate one step down
npx mikro-orm migration:list     # List all executed migrations
npx mikro-orm migration:pending  # List all pending migrations
```

6699 of 6699 branches covered (100.0%)

Branch coverage included in aggregate %.

11820 of 11820 relevant lines covered (100.0%)

4355.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1074.1 22 Oct 2019 08:02AM UTC 0
100.0
Travis Job 1074.1
3 1074.3 22 Oct 2019 08:02AM UTC 0
100.0
Travis Job 1074.3
4 1074.4 22 Oct 2019 08:05AM UTC 0
100.0
Travis Job 1074.4
5 1074.5 22 Oct 2019 08:06AM UTC 0
100.0
Travis Job 1074.5
Source Files on build 1074
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1074
  • 38ec9734 on github
  • Prev Build on dev (#1064)
  • Next Build on dev (#1079)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc