alexeikmun / royal-hostels

Royal Hostels - CoE Project
0 stars 1 forks source link

RH-22 Backend - Add migrations and seeding data with TypeORM #45

Closed miguel-square closed 1 year ago

miguel-square commented 1 year ago

Issue: https://royal-hostels.atlassian.net/browse/RH-22

Adds scripts to generate and run migrations.

Adds seeding data for:

npm run mig-gen -- src/shared/db/migrations/<name of migration> to generate migration

npm run mig-gen:init generates a migration ending with -init.ts

npm run mig-run run pending migrations

npm run seed run seeding