mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
chore(database): Rename table name from workflow__conversation_variables
to workflow_conversation_variables
. (#7432)
This commit is contained in:
parent
0f90e6df75
commit
2e9084f369
|
@ -0,0 +1,28 @@
|
|||
"""rename workflow__conversation_variables to workflow_conversation_variables
|
||||
|
||||
Revision ID: 2dbe42621d96
|
||||
Revises: a6be81136580
|
||||
Create Date: 2024-08-20 04:55:38.160010
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
|
||||
import models as models
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '2dbe42621d96'
|
||||
down_revision = 'a6be81136580'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.rename_table('workflow__conversation_variables', 'workflow_conversation_variables')
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.rename_table('workflow_conversation_variables', 'workflow__conversation_variables')
|
||||
# ### end Alembic commands ###
|
|
@ -724,7 +724,7 @@ class WorkflowAppLog(db.Model):
|
|||
|
||||
|
||||
class ConversationVariable(db.Model):
|
||||
__tablename__ = 'workflow__conversation_variables'
|
||||
__tablename__ = 'workflow_conversation_variables'
|
||||
|
||||
id: Mapped[str] = db.Column(StringUUID, primary_key=True)
|
||||
conversation_id: Mapped[str] = db.Column(StringUUID, nullable=False, primary_key=True)
|
||||
|
|
Loading…
Reference in New Issue
Block a user