What are the steps to upgrade Dify 1.9.2 to Dify 1.15.0? #39009
Replies: 1 comment
-
|
Yes, upgrading from 1.9.2 to 1.15.0 directly is supported — Dify's Alembic-based migration system handles sequential schema changes automatically. However, there are several critical issues to be aware of since you're jumping across multiple major releases. Here's the full procedure: Upgrade Steps (Docker Compose)1. Back up everything first: # Database backup
docker compose exec db pg_dump -U postgres dify > dify_backup_1.9.2.sql
# Copy your volumes directory as well
cp -r ./volumes ./volumes_backup2. Stop services, pull new images, and update docker compose down
docker compose pull3. Update environment variables — key changes required between 1.9.2 and 1.15.0:
4. Start services and run migrations: docker compose up -d
docker compose exec api flask upgrade-db
docker compose exec api flask backfill-plugin-auto-upgrade5. Apply the -- Run for each table: provider_models, provider_model_credentials,
-- tenant_default_models, provider_model_settings, load_balancing_model_configs
UPDATE provider_models SET model_type = 'llm' WHERE model_type = 'text-generation';
UPDATE provider_models SET model_type = 'text-embedding' WHERE model_type = 'embeddings';
UPDATE provider_models SET model_type = 'rerank' WHERE model_type = 'reranking';
UPDATE provider_model_credentials SET model_type = 'llm' WHERE model_type = 'text-generation';
UPDATE provider_model_credentials SET model_type = 'text-embedding' WHERE model_type = 'embeddings';
UPDATE provider_model_credentials SET model_type = 'rerank' WHERE model_type = 'reranking';
UPDATE tenant_default_models SET model_type = 'llm' WHERE model_type = 'text-generation';
UPDATE tenant_default_models SET model_type = 'text-embedding' WHERE model_type = 'embeddings';
UPDATE tenant_default_models SET model_type = 'rerank' WHERE model_type = 'reranking';
UPDATE provider_model_settings SET model_type = 'llm' WHERE model_type = 'text-generation';
UPDATE provider_model_settings SET model_type = 'text-embedding' WHERE model_type = 'embeddings';
UPDATE provider_model_settings SET model_type = 'rerank' WHERE model_type = 'reranking';
UPDATE load_balancing_model_configs SET model_type = 'llm' WHERE model_type = 'text-generation';
UPDATE load_balancing_model_configs SET model_type = 'text-embedding' WHERE model_type = 'embeddings';
UPDATE load_balancing_model_configs SET model_type = 'rerank' WHERE model_type = 'reranking';
6. Verify plugin daemon version — Dify 1.15.0 requires plugin daemon docker compose logs plugin_daemon | head -207. Clean up stale plugin directories once plugins are confirmed working in the UI [5]. Quick Checklist
All your existing data (conversations, workflows, knowledge bases, etc.) will be preserved — the migrations only add/modify schema, they don't delete user data. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
My Dify instance was upgraded from Dify 1.0.0 to Dify 1.9.2. Now I plan to upgrade it further to Dify 1.15.0. Is this upgrade path supported? How should I perform the operation? My Dify is deployed via Docker Compose, and I need to retain all existing original data.
Beta Was this translation helpful? Give feedback.
All reactions