Skip to content

Commit 19e9058

Browse files
committed
fix: No need to call the model to recommend problems during each session switch
1 parent 06f728a commit 19e9058

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
"""empty message
2+
3+
Revision ID: fb2e8dd19158
4+
Revises: c431a0bf478b
5+
Create Date: 2025-12-29 17:18:49.072320
6+
7+
"""
8+
from alembic import op
9+
import sqlalchemy as sa
10+
import sqlmodel.sql.sqltypes
11+
from sqlalchemy.dialects import postgresql
12+
13+
# revision identifiers, used by Alembic.
14+
revision = 'fb2e8dd19158'
15+
down_revision = 'c431a0bf478b'
16+
branch_labels = None
17+
depends_on = None
18+
19+
20+
def upgrade():
21+
op.add_column('chat', sa.Column('recommended_question_answer', sa.TEXT(), nullable=True))
22+
op.add_column('chat', sa.Column('recommended_question', sa.TEXT(), nullable=True))
23+
op.add_column('chat', sa.Column('recommended_generate', sa.Boolean(), nullable=True))
24+
# ### end Alembic commands ###
25+
26+
27+
def downgrade():
28+
op.drop_column('chat', 'recommended_question_answer')
29+
op.drop_column('chat', 'recommended_question')
30+
op.drop_column('chat', 'recommended_generate')
31+
# ### end Alembic commands ###

0 commit comments

Comments
 (0)