feat: add avatar_url to datasource providers and update OAuth handling

This commit is contained in:
Harry
2025-07-18 19:47:52 +08:00
parent 34a6ed74b6
commit 23a5ff410e
5 changed files with 47 additions and 10 deletions

View File

@ -0,0 +1,33 @@
"""add_pipeline_info_12
Revision ID: 2008609cf2bb
Revises: 1bce102aef9a
Create Date: 2025-07-18 18:25:21.280897
"""
from alembic import op
import models as models
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2008609cf2bb'
down_revision = '1bce102aef9a'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('datasource_providers', schema=None) as batch_op:
batch_op.add_column(sa.Column('avatar_url', sa.String(length=255), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('datasource_providers', schema=None) as batch_op:
batch_op.drop_column('avatar_url')
# ### end Alembic commands ###