Closed miguel-square closed 1 year ago
Issue: https://royal-hostels.atlassian.net/browse/RH-22
Adds scripts to generate and run migrations.
Adds seeding data for:
relations between rooms and amenities
Relevant scripts:
npm run mig-gen -- src/shared/db/migrations/<name of migration> to generate migration
npm run mig-gen -- src/shared/db/migrations/<name of migration>
npm run mig-gen:init generates a migration ending with -init.ts
npm run mig-gen:init
npm run mig-run run pending migrations
npm run mig-run
npm run seed run seeding
npm run seed
Issue: https://royal-hostels.atlassian.net/browse/RH-22
Adds scripts to generate and run migrations.
Adds seeding data for:
relations between rooms and amenities
Relevant scripts:
npm run mig-gen -- src/shared/db/migrations/<name of migration>
to generate migrationnpm run mig-gen:init
generates a migration ending with -init.tsnpm run mig-run
run pending migrationsnpm run seed
run seeding