mirror of
https://github.com/langgenius/dify.git
synced 2025-12-20 22:52:26 +00:00
Compare commits
3 Commits
fix/fail-b
...
0.9.1-fix1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2328cb676 | ||
|
|
36d3221a05 | ||
|
|
40f2e7d821 |
2
.github/workflows/build-push.yml
vendored
2
.github/workflows/build-push.yml
vendored
@@ -125,7 +125,7 @@ jobs:
|
||||
with:
|
||||
images: ${{ env[matrix.image_name_env] }}
|
||||
tags: |
|
||||
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') }}
|
||||
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-beta') }}
|
||||
type=ref,event=branch
|
||||
type=sha,enable=true,priority=100,prefix=,suffix=,format=long
|
||||
type=raw,value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/') }}
|
||||
|
||||
@@ -9,7 +9,7 @@ class PackagingInfo(BaseSettings):
|
||||
|
||||
CURRENT_VERSION: str = Field(
|
||||
description="Dify version",
|
||||
default="0.9.1",
|
||||
default="0.9.1-fix1",
|
||||
)
|
||||
|
||||
COMMIT_SHA: str = Field(
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
"""fix wrong service-api history
|
||||
|
||||
Revision ID: d8e744d88ed6
|
||||
Revises: 33f5fac87f29
|
||||
Create Date: 2024-10-09 13:29:23.548498
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
from constants import UUID_NIL
|
||||
import models as models
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'd8e744d88ed6'
|
||||
down_revision = '33f5fac87f29'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
# (UTC) release date of v0.9.0
|
||||
v0_9_0_release_date= '2024-09-29 12:00:00'
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
sql = f"""UPDATE
|
||||
public.messages
|
||||
SET
|
||||
parent_message_id = '{UUID_NIL}'
|
||||
WHERE
|
||||
invoke_from = 'service-api'
|
||||
AND parent_message_id IS NULL
|
||||
AND created_at >= '{v0_9_0_release_date}';"""
|
||||
op.execute(sql)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
sql = f"""UPDATE
|
||||
public.messages
|
||||
SET
|
||||
parent_message_id = NULL
|
||||
WHERE
|
||||
invoke_from = 'service-api'
|
||||
AND parent_message_id = '{UUID_NIL}'
|
||||
AND created_at >= '{v0_9_0_release_date}';"""
|
||||
op.execute(sql)
|
||||
# ### end Alembic commands ###
|
||||
@@ -2,7 +2,7 @@ version: '3'
|
||||
services:
|
||||
# API service
|
||||
api:
|
||||
image: langgenius/dify-api:0.9.1
|
||||
image: langgenius/dify-api:0.9.1-fix1
|
||||
restart: always
|
||||
environment:
|
||||
# Startup mode, 'api' starts the API server.
|
||||
@@ -227,7 +227,7 @@ services:
|
||||
# worker service
|
||||
# The Celery worker for processing the queue.
|
||||
worker:
|
||||
image: langgenius/dify-api:0.9.1
|
||||
image: langgenius/dify-api:0.9.1-fix1
|
||||
restart: always
|
||||
environment:
|
||||
CONSOLE_WEB_URL: ''
|
||||
@@ -396,7 +396,7 @@ services:
|
||||
|
||||
# Frontend web application.
|
||||
web:
|
||||
image: langgenius/dify-web:0.9.1
|
||||
image: langgenius/dify-web:0.9.1-fix1
|
||||
restart: always
|
||||
environment:
|
||||
# The base URL of console application api server, refers to the Console base URL of WEB service if console domain is
|
||||
|
||||
@@ -213,7 +213,7 @@ x-shared-env: &shared-api-worker-env
|
||||
services:
|
||||
# API service
|
||||
api:
|
||||
image: langgenius/dify-api:0.9.1
|
||||
image: langgenius/dify-api:0.9.1-fix1
|
||||
restart: always
|
||||
environment:
|
||||
# Use the shared environment variables.
|
||||
@@ -233,7 +233,7 @@ services:
|
||||
# worker service
|
||||
# The Celery worker for processing the queue.
|
||||
worker:
|
||||
image: langgenius/dify-api:0.9.1
|
||||
image: langgenius/dify-api:0.9.1-fix1
|
||||
restart: always
|
||||
environment:
|
||||
# Use the shared environment variables.
|
||||
@@ -252,7 +252,7 @@ services:
|
||||
|
||||
# Frontend web application.
|
||||
web:
|
||||
image: langgenius/dify-web:0.9.1
|
||||
image: langgenius/dify-web:0.9.1-fix1
|
||||
restart: always
|
||||
environment:
|
||||
CONSOLE_API_URL: ${CONSOLE_API_URL:-}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dify-web",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.1-fix1",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": ">=18.17.0"
|
||||
|
||||
Reference in New Issue
Block a user