nestjs-starter | Start coding and reduce the boilerplate | REST library
kandi X-RAY | nestjs-starter Summary
kandi X-RAY | nestjs-starter Summary
This aplication server is made with NestJS and provides a scaffold with a kit of tools and utils to reduce the boilerplate when you are starting a new backend project.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nestjs-starter
nestjs-starter Key Features
nestjs-starter Examples and Code Snippets
Community Discussions
Trending Discussions on nestjs-starter
QUESTION
I have a NestJS app with TypeORM, dockerized. I have synchronize
turned off, using migrations instead. In the container entry point, I do yarn typeorm migration:run
. It works well the first time around, and according to the logs it inserts records into the migrations
table.
I noticed that when I start the project the next time it often tries to re-run migrations and fails (as expected) due to "relation already exists". At this point I can verify that entries are indeed missing from the migrations
table via docker-compose exec db psql -U postgres -c 'SELECT * FROM "migrations" "migrations"
. The DB schema is up to date. When I insert a new record manually it gets an incremental ID after the missing records. So the records were there at some point.
I can't figure out what might cause entries in the migrations
table to disappear (be rolled back?). This happens on the project linked above. It's a straightforward example project. I don't have an entity accidentally named "migrations". :)
ANSWER
Answered 2021-Apr-29 at 10:28As a workaround I currently insert into the migrations
table manually:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nestjs-starter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page