Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(database): Rename table name from workflow__conversation_variables to workflow_conversation_variables. #7432

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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 ###
2 changes: 1 addition & 1 deletion api/models/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ def created_by_end_user(self):


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)
Expand Down