<@ULVA73B9P> How is the local sqlite3 database mig...
# ask-marvin
a
@Marvin How is the local sqlite3 database migrated after upgrading to prefect v3 from prefect v2?
m
Migrating your local SQLite3 database when upgrading from Prefect v2 to v3 involves using Alembic, a database migration tool. Prefect uses Alembic to manage database migrations, allowing you to generate and apply schema changes. To upgrade your database, you should run the following command:
Copy code
bash
prefect server database upgrade -y
This command applies the necessary migrations to your database. However, it is important to note that SQLite is only supported by Prefect for testing purposes and is not compatible with multiprocessing. For more detailed information, you can refer to the Prefect 3.0 upgrade guide and the SQLite database management documentation. If you're using SQLite for anything other than testing, consider migrating to a more robust database system like PostgreSQL for production environments.
a
@Marvin What is default-agent-pool?
m
The term default-agent-pool likely refers to a work pool configuration in Prefect, which is part of the infrastructure management for executing flows. In Prefect 3.x, the concept of agents has evolved into workers that poll work pools for flow runs to execute. A work pool serves as a configuration for how and where flows are executed. When you start a worker, it polls a specified work pool for tasks to execute. The default-agent-pool would be the standard or initial configuration used if no specific work pool is designated. For more information on work pools and their configuration, you can refer to the Prefect infrastructure concepts documentation.