MyGit

0.6.0-preview-workflow.2

langgenius/dify

版本发布时间: 2024-04-03 19:12:26

langgenius/dify最新发布版本:0.6.8(2024-05-14 03:21:11)

Important Notice

This version is a preview release intended for feature workflow internal testing only. It is not a formal release. Please proceed with caution before upgrading. Please do not use it in a production environment.

What's Changed

Update Guide

If you need to upgrade from 0.6.0-preview-workflow.1, you will need to connect to PostgreSQL and execute the following SQL (migration inserted in the main branch) to ensure data integrity.

ALTER TABLE dataset_keyword_tables ADD COLUMN data_source_type VARCHAR(255) NOT NULL DEFAULT 'database';
ALTER TABLE embeddings ADD COLUMN provider_name VARCHAR(40) NOT NULL DEFAULT '';
ALTER TABLE embeddings DROP CONSTRAINT embedding_hash_idx;
ALTER TABLE embeddings ADD CONSTRAINT embedding_hash_idx UNIQUE (model_name, hash, provider_name);

Deploying with Docker Compose:

  1. Get the latest code from the feat/workflow branch:

    git fetch --tags
    git checkout 0.6.0-preview-workflow.2
    
  2. Go to the next step and update to the latest image:

    cd docker
    docker-compose up -d
    

Deploying from Source Code:

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the feat/workflow branch:

    git fetch --tags
    git checkout 0.6.0-preview-workflow.2
    
  3. Update Python dependencies:

    cd api
    pip install -r requirements.txt
    
  4. Then, let's run the migration script:

    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-04-03发行的版本