HackYourFuture-CPH / fp-class19

MIT License
3 stars 1 forks source link

Database: Create Families table and its routers, controllers, migrations, seeds #203

Closed Darya-s closed 2 years ago

Darya-s commented 2 years ago

Description

This PR creates new families table and its routers, controllers, migrations, seeds. Please provide a short summary explaining what this PR is about.

Fixes #202

How to test?

nom run db:clean npm run db:setup Please provide a short summary how your changes can be tested?

Checklist

Impressiv3 commented 2 years ago

You can solve the DB conflicts just by changing the seed file names. You need to move the seed file of the families before products. image

Darya-s commented 2 years ago

You'll need to change the order of seed files, so families comes before products.

Thank you .. It worked ..

Divyajg commented 2 years ago

@Darya-s You need to update the database and solve conflicts. i) Solve the conflicts ii) Delete the tables in your local DB and run: npm run db:setup (that will update your DB to latest) iii) try check your end-points again for their functioning.