Adding new migrations
I just created a new migration in twenty-server/src/database/typeorm/metadata/migrations/ for a table in metadata schema and ran "yarn nx database:migrate:prod twenty-server" command.
However, my migration isn't being picked up when the command runs. How can I solve this?
I'd appreciate any help!
1 Reply
Solved it!
Turns out that metadata.datasource.ts looks for migrations in the dist folder, so I needed to build the project.
I ran "yarn nx build twenty-server". Then, I ran the "yarn nx database:migrate:prod twenty-server".
Can see the new migration in the db now