mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 19:06:51 +08:00
Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
committed by
GitHub
parent
8fa6cb5e03
commit
4c0a31d38b
22
api/migrations/versions/63f9175e515b_merge_branches.py
Normal file
22
api/migrations/versions/63f9175e515b_merge_branches.py
Normal file
@@ -0,0 +1,22 @@
|
||||
"""merge branches
|
||||
|
||||
Revision ID: 63f9175e515b
|
||||
Revises: 2a3aebbbf4bb, b69ca54b9208
|
||||
Create Date: 2024-06-26 09:46:36.573505
|
||||
|
||||
"""
|
||||
import models as models
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '63f9175e515b'
|
||||
down_revision = ('2a3aebbbf4bb', 'b69ca54b9208')
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
pass
|
||||
|
||||
|
||||
def downgrade():
|
||||
pass
|
||||
@@ -0,0 +1,35 @@
|
||||
"""add chatbot color theme
|
||||
|
||||
Revision ID: b69ca54b9208
|
||||
Revises: 4ff534e1eb11
|
||||
Create Date: 2024-06-25 01:14:21.523873
|
||||
|
||||
"""
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
import models as models
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'b69ca54b9208'
|
||||
down_revision = '4ff534e1eb11'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('sites', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('chat_color_theme', sa.String(length=255), nullable=True))
|
||||
batch_op.add_column(sa.Column('chat_color_theme_inverted', sa.Boolean(), server_default=sa.text('false'), nullable=False))
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('sites', schema=None) as batch_op:
|
||||
batch_op.drop_column('chat_color_theme_inverted')
|
||||
batch_op.drop_column('chat_color_theme')
|
||||
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user