Ask Your Question
1

When running migrations on TypeORM, I receive a message saying that there are no pending migrations.

asked 2023-05-18 05:31:56 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-18 05:36:01 +0000

nofretete gravatar image

This means that all migrations have already been executed in the database and there are no new migrations added since the last time the migrations were run. If you want to check the status of your migrations, you can use the command:

typeorm migration:status

This will show you what migrations are currently executed in the database and what migrations are still pending. If you want to create a new migration, you can use the command:

typeorm migration:create -n <MigrationName>

This will create a new migration file in the src/migrations directory with the specified name. You can then write your migration code in the newly created file and run the migration using:

typeorm migration:run

This will execute any new migrations that have not yet been executed in the database.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-18 05:31:56 +0000

Seen: 12 times

Last updated: May 18 '23