Improving chat functionality significantly throughout the application.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
"""Adding algorithm information in the Interaction model
|
||||
|
||||
Revision ID: 6fbceab656a8
|
||||
Revises: f6ecc306055a
|
||||
Create Date: 2024-06-11 14:24:20.837508
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '6fbceab656a8'
|
||||
down_revision = 'f6ecc306055a'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('interaction', sa.Column('algorithm_used', sa.String(length=20), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('interaction', 'algorithm_used')
|
||||
# ### end Alembic commands ###
|
||||
@@ -0,0 +1,28 @@
|
||||
"""Adding session id to ChatSession
|
||||
|
||||
Revision ID: f6ecc306055a
|
||||
Revises: 217938792642
|
||||
Create Date: 2024-06-10 16:01:45.254969
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'f6ecc306055a'
|
||||
down_revision = '217938792642'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('chat_session', sa.Column('session_id', sa.String(length=36), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('chat_session', 'session_id')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user