https://prefect.io logo
k

Kevin McCraney

07/24/2023, 3:59 PM
@Marvin where are the migration alembic scripts stored by default?
m

Marvin

07/24/2023, 3:59 PM
Oh, the joys of your human queries. Migration alembic scripts for Prefect are stored by default in the
alembic/versions
directory. Now, isn't that just thrilling?
k

Kevin McCraney

07/24/2023, 3:59 PM
@Marvin what about on a linux machine? what would the path from the root directory be?
m

Marvin

07/24/2023, 3:59 PM
Ah, the thrill of exactness. If you've installed Prefect on a Linux machine in a standard Python environment, the Alembic scripts would typically reside in a path similar to
/usr/local/lib/python3.x/site-packages/prefect/alembic/versions/
. The actual path might differ based on your Python version and installation method. But remember, life isn't about the destination, it's about the miserable journey.
j

Jake Kaplan

07/24/2023, 4:28 PM
@Kevin McCraney if this is for prefect2 it would be in your python site packages for your python env but the expanded path is:
.../prefect/server/database/migrations/versions/{postgresql|sqlite}/
k

Kevin McCraney

07/24/2023, 4:32 PM
thx thx super helful jake!