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.

migrations not running

See original GitHub issue

hi, my migrations are not running anymore. I executed the last migrate ~4 weeks ago, and afterwards i updated typeorm. That’s why i noticed the behaviour not until now.

ormconfig.env:

TYPEORM_CONNECTION = mysql
TYPEORM_HOST = localhost
TYPEORM_PORT = 3306
TYPEORM_USERNAME = root
TYPEORM_PASSWORD = 
TYPEORM_DATABASE = typeormtable
TYPEORM_AUTO_SCHEMA_SYNC = true
TYPEORM_ENTITIES = models/*.js
TYPEORM_SUBSCRIBERS = 
TYPEORM_MIGRATIONS = migrations/*.js
TYPEORM_ENTITIES_DIR = models
TYPEORM_MIGRATIONS_DIR = migrations
TYPEORM_SUBSCRIBERS_DIR = 

I am using "typeorm": "0.1.0-alpha.26" and running TypeScript Version 2.4.1

The migrations are neither executed on startup, nor by executing typeorm migrations:run -> the cl command results in:

no migrations pending

There are also no entries added into the migrations-table.

Greetings, Messerbill

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
pleerockcommented, Jul 22, 2017

can you try to use ormconfig.json instead of env variables?

0reactions
pleerockcommented, Sep 8, 2017

Closing as no answer from reporter

Read more comments on GitHub >

github_iconTop Results From Across the Web

One of my migrations is not running with the php artisan ...
3 Answers 3 · Delete the tables and columns the migration is supposed to create if they are still there. · Rename the...
Read more >
migrations doesnt run even after doing everything · Issue #5103
I am working on a project with typeorm on nestjs. the problem is even after running mgration after generating migration files, i get...
Read more >
Django migrations are not running - Fly.io
Hello, I've got a small django app in a fly instance. Recently, I added some migrations and wanted to run them.
Read more >
Tutorial: Use EF Migrations in an ASP.NET MVC app and ...
In this tutorial, you enable Code First migrations and deploy the application to the cloud in Azure.
Read more >
Migrations - Django documentation
Migrations ¶. Migrations are Django's way of propagating changes you make to your models (adding a field, deleting a model, etc.) into your...
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