MigrationManager class:
libs/agno/migrations directory.
Reverting Migrations
You can also use theMigrationManager class to revert a migration:
Migrating a Specific Table
In case you need it, notice you can migrate only a specific table:session, memory, metrics, eval, knowledge, culture.
Support for Other Databases
TheMigrationManager class supports the following databases:
- PostgreSQL
- SQLite
- MySQL
- SingleStore
AsyncPostgresDb and AsyncSqliteDb) with your migrations.
Migrating from Agno v1 to v2
If you started using Agno during its v1 and want to move to v2, we have a migration script that can help you update your database tables. You can find the script in thelibs/agno/migrations/v1_to_v2/migrate_to_v2.py file.
You can find more information about migrating from v1 to v2 in the Migrating to Agno v2 guide.