Python FastAPI Tutorial (Part 15): PostgreSQL and Alembic - Database Migrations for Production @coreyms
Python FastAPI Tutorial (Part 15): PostgreSQL and Alembic - Database Migrations for Production  @coreyms
Uploaded April 2026 | Updated November 2026, 3 hours ago
In this video, we'll be making our database setup production-ready by moving from SQLite to PostgreSQL and introducing Alembic for database migrations. We'll cover how to install and configure PostgreSQL locally, how to replace SQLite and create_all with a proper migration workflow, how to set up Alembic for managing schema changes, and how to generate and apply migrations so that we never have to delete and recreate our database again. By the end of this video, you'll have a solid workflow for updating your database structure as your application evolves. Let's get started...

The code from this video can be found here:
github.com/CoreyMSchafer/FastAPI-15-Postgres-Alembic

Full FastAPI Course:
youtube.com/playlist?list=PL-osiE80TeTsak-c-QsVeg0YYG_0TeyXI

PostgreSQL Installation - postgresql.org/download

✅ Support My Channel Through Patreon:
patreon.com/coreyms

✅ Become a Channel Member:
youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join

✅ One-Time Contribution Through PayPal:
goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website - coreyms.com
My Second Channel - youtube.com/c/coreymschafer
Facebook - facebook.com/CoreyMSchafer
Twitter - twitter.com/CoreyMSchafer
Instagram - instagram.com/coreymschafer

#Python #FastAPI
Python FastAPI Tutorial (Part 15): PostgreSQL and Alembic - Database Migrations for ProductionPython Tutorial: Datetime Module - How to work with Dates, Times, Timedeltas, and TimezonesPython Tkinter Tutorial (Part 1): Getting Started, Elements, Layouts, and EventsPython FastAPI Tutorial (Part 19): Deploy with Docker - Serverless Containers and Custom DomainPython FastAPI Tutorial (Part 13): Pagination - Loading More Data with Query ParametersPython Multiprocessing Tutorial: Run Code in Parallel Using the Multiprocessing ModulePython Tutorial: Type Hinting vs Type Checking vs Data Validation - What’s the Difference?Python Flask Tutorial: Deploying Your Application (Option #1) - Deploy to a Linux ServerAwait Keyword Explained: Coroutines, Futures, and Tasks #shortsPython FastAPI Tutorial: Full Course for Beginners - Build a Full-Stack Web AppPython OOP Tutorial 6: Property Decorators - Getters, Setters, and DeletersAutomating My Bill Payments with Python and Selenium
Corey Schafer |

Python FastAPI Tutorial (Part 15): PostgreSQL and Alembic - Database Migrations for Production

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER