This commit is contained in:
beabigegg
2025-08-17 15:26:44 +08:00
commit 0fee703b84
60 changed files with 8042 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
"""Implement user-centric status and transcript field for meetings
Revision ID: 919aff0aa44b
Revises: ac069534da31
Create Date: 2025-08-15 09:20:02.369230
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '919aff0aa44b'
down_revision = 'ac069534da31'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('ms_meetings', schema=None) as batch_op:
batch_op.add_column(sa.Column('transcript', sa.Text(), nullable=True))
batch_op.drop_column('transcript_file_path')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('ms_meetings', schema=None) as batch_op:
batch_op.add_column(sa.Column('transcript_file_path', mysql.VARCHAR(length=512), nullable=True))
batch_op.drop_column('transcript')
# ### end Alembic commands ###

View File

@@ -0,0 +1,52 @@
"""Add status and result fields to Meeting
Revision ID: ac069534da31
Revises:
Create Date: 2025-08-15 08:38:19.572077
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = 'ac069534da31'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('ms_action_items', schema=None) as batch_op:
batch_op.alter_column('owner_id',
existing_type=mysql.INTEGER(),
nullable=True)
with op.batch_alter_table('ms_meetings', schema=None) as batch_op:
batch_op.add_column(sa.Column('status', sa.String(length=50), nullable=False))
batch_op.add_column(sa.Column('transcript_file_path', sa.String(length=512), nullable=True))
batch_op.add_column(sa.Column('summary', sa.Text(), nullable=True))
batch_op.alter_column('created_by_id',
existing_type=mysql.INTEGER(),
nullable=True)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('ms_meetings', schema=None) as batch_op:
batch_op.alter_column('created_by_id',
existing_type=mysql.INTEGER(),
nullable=False)
batch_op.drop_column('summary')
batch_op.drop_column('transcript_file_path')
batch_op.drop_column('status')
with op.batch_alter_table('ms_action_items', schema=None) as batch_op:
batch_op.alter_column('owner_id',
existing_type=mysql.INTEGER(),
nullable=False)
# ### end Alembic commands ###