You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is blocked by #22 , so please don't start this until that's complete!
Context
This task is to make the initial installation and configuration for alembic.
We will be using Alembic to automatically track and manage database migrations (see the general Alembic docs for more info on the tool). The idea here is that we can make changes to the SQLAlchemy models - and corresponding Pydantic schemas - then use the Alembic CLI tool to automatically generate a migration file that will build out the PostgreSQL tables and fields and all the wonderful relational magic that we want.
At this point, there should be no models.py or schema.py (pydantic schemas matching the SQLAlchemy models) files yet, so this task will be to add these files just to get us going, but the content will just be dummy data that we'll delete and replace with our real models later.
Definition of Done
Alembic is installed and the alembic directory and files are created and configured to work with SQLAlchemy and a local database
One migration has been run and committed with a sample/dummy set of tables to confirm that the link is working correctly
Engineering Details
I found this simple guide that I think will be great for getting this up and running. At this point, we should already have the database.py file created, so you can pick the guide up at the point where we begin writing model and schema code.
see this guide for a reminder on generating Alembic migrations
The text was updated successfully, but these errors were encountered:
This is blocked by #22 , so please don't start this until that's complete!
Context
This task is to make the initial installation and configuration for alembic.
We will be using Alembic to automatically track and manage database migrations (see the general Alembic docs for more info on the tool). The idea here is that we can make changes to the SQLAlchemy models - and corresponding Pydantic schemas - then use the Alembic CLI tool to automatically generate a migration file that will build out the PostgreSQL tables and fields and all the wonderful relational magic that we want.
At this point, there should be no models.py or schema.py (pydantic schemas matching the SQLAlchemy models) files yet, so this task will be to add these files just to get us going, but the content will just be dummy data that we'll delete and replace with our real models later.
Definition of Done
Engineering Details
I found this simple guide that I think will be great for getting this up and running. At this point, we should already have the database.py file created, so you can pick the guide up at the point where we begin writing model and schema code.
The text was updated successfully, but these errors were encountered: