npm install
- Start Postgres with
npm run start:postgres
- Build project with
npm run build
- Run migrations with
typeorm migration:run
- Run
typeorm migration:show
to verify the migrations were run - Edit
./src/schemas/MyExample.ts
and uncomment all code that is currently commented. Note that there are two -- one index, one column - Build project with
npm run build
- Run
typeorm migration:generate -n Step2
- Typeorm will output:
No changes in database schema were found - cannot generate a migration. To create a new empty migration use "typeorm migration:create" command
You can stop Postgres with npm run stop:postgres
typeorm version
Local installed version: 0.2.37
No global installed was found.
node --version
v14.17.0
tsc --version
Version 4.3.5