add recommended rag plugin endpoint

This commit is contained in:
jyong
2025-09-01 14:45:56 +08:00
parent c2afb84884
commit 7920714f49
6 changed files with 97 additions and 3 deletions

View File

@ -12,7 +12,7 @@ from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'b35c3db83d09'
down_revision = '0ab65e1cc7fa'
down_revision = '0e154742a5fa'
branch_labels = None
depends_on = None

View File

@ -12,7 +12,7 @@ import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '17d4db47800c'
down_revision = '223c3f882c69'
down_revision = '74e5f667f4b7'
branch_labels = None
depends_on = None

View File

@ -0,0 +1,38 @@
"""add_pipeline_info_17
Revision ID: 8c5088481127
Revises: 17d4db47800c
Create Date: 2025-09-01 14:43:48.417869
"""
from alembic import op
import models as models
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '8c5088481127'
down_revision = '17d4db47800c'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('pipeline_recommended_plugins',
sa.Column('id', models.types.StringUUID(), server_default=sa.text('uuid_generate_v4()'), nullable=False),
sa.Column('plugin_id', sa.Text(), nullable=False),
sa.Column('provider_name', sa.Text(), nullable=False),
sa.Column('position', sa.Integer(), nullable=False),
sa.Column('active', sa.Boolean(), nullable=False),
sa.Column('created_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP'), nullable=False),
sa.Column('updated_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP'), nullable=False),
sa.PrimaryKeyConstraint('id', name='pipeline_recommended_plugin_pkey')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('pipeline_recommended_plugins')
# ### end Alembic commands ###