back
This commit is contained in:
@@ -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 ###
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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 ###
|
Reference in New Issue
Block a user