Upgrade the Dify version
This topic describes how to upgrade Dify from v0.15.3 or earlier to v1.1.3 to access the latest plugin ecosystem. This is a major version upgrade.
Important notes
This feature is in preview. To use this feature, join the DingTalk group (ID: 96015019923) for assistance.
Prerequisites
Before you upgrade, back up all Dify resources and create a dify_plugin database in your target ApsaraDB RDS for PostgreSQL instance. The dify_plugin database stores metadata for installed plugins.
Back up data
Back up the ApsaraDB RDS for PostgreSQL and vector database resources used by Dify.
Back up ApsaraDB RDS for PostgreSQL data
-
Log on to the ApsaraDB RDS console. In the upper section, select the region. Then, click the target instance ID.
-
In the upper-right corner of the page, click Back Up Instance. In the dialog box, click OK.
For Backup Method, select Full Backup. For Backup Policy, select Instance Backup. Avoid DDL operations during backup to prevent table locks and backup failures. We recommend that you perform the backup during off-peak hours. Large datasets may take longer to back up.
-
Click Task Center in the upper-right corner to check the backup status.
The backup is complete when the task progress reaches 100%.
Back up the vector database
The following steps use an AnalyticDB for PostgreSQL instance as an example.
-
Log on to the AnalyticDB for PostgreSQL console.
-
In the upper-left corner, select the region of the instance.
-
Click the target instance ID. In the left-side navigation pane, click Backup and Restoration.
-
In the upper-right corner of the page, click Create Backup, and then click OK.
The backup is complete when the task status shows Success.
Prepare the database
In the Tair console, update the dify_user account password to match the default account password, and then create a dify_plugin database in the target ApsaraDB RDS for PostgreSQL instance.
The system automatically creates the dify_user account when you deploy Dify.
Verify database account password
Go to the Tair Instance List page, select the region at the top, and then click the target instance ID. Verify that the default account password matches the dify_user password. If they do not match, modify the dify_user password.
If you change the dify_user password, update it on the instance editing page in the AI-Native Database Service console.
-
Log on to the AI-Native Database Service console.
-
In the database instance list on the left, find the target instance. Right-click the instance name and select Edit Instance.
-
Re-enter the Database Password. Ensure that Access Method is set to Security hosting - Manual and Database Account is dify_user, and then click Save.
Create the dify_plugin database in an ApsaraDB RDS for PostgreSQL instance
-
Go to the RDS Instance List page, select the region, and then click the target instance ID.
-
In the left-side navigation pane, click Database Management, and then click Create Database.
For Database Name, enter
dify_plugin. For Authorized Account, selectdify_user.For Character Set, select UTF8. For Collate, select C. For Ctype, select en_US.utf8.
-
Click Create.
Upgrade the Dify version
-
Log on to the AI-Native Database Service console.
-
In the left-side navigation pane, choose , and then click the target instance name to go to the instance details page.
-
Click Upgrade to Latest Version.
NoteThe upgrade takes approximately 10 minutes. During this time, Dify services are unavailable. For example, models deployed through Dify and applications created in Studio are temporarily unavailable.
-
After the upgrade is complete, you can use the latest version of Dify.
To verify the upgrade, click your avatar in the Dify workspace and check the version in the About Dify section. Version 1.1.3 confirms a successful upgrade.
Install Dify plugins
-
In the left-side navigation pane of the workspace, click .
-
In the upper-right corner, click Plugins, and then click Install Plugin.
Plugin sources include Marketplace, GitHub, and local plugins.
-
Select a plugin source and install the plugins you need, such as model, tool, and agent strategy plugins.
NoteAfter you install plugins, reconfigure the corresponding model or knowledge base if your existing Dify applications use model services or knowledge base retrieval.
For example, to install the latest Tongyi Qianwen plugin from Marketplace:
Click the Model tab to filter model plugins. On the Tongyi Qianwen plugin card, click Install.
-
Continue developing your LLM applications. For more information, see Dify documentation.