StevonStevoff / ProjectParsnip

A IoT Project for Managing At-Home Smart Farming
3 stars 0 forks source link

Setup Database migration #60

Closed StevonStevoff closed 1 year ago

StevonStevoff commented 1 year ago

I have integrated alembic into the codebase so that we can migrate the database on making any changes to the models without having to delete the database.

This can be done by running these two commands from inside the backend directory:

  1. alembic revision --autogenerate -m "Test Migration"

  2. alembic upgrade head