add fields on end user
parent
8edf88d071
commit
3c6176b7b4
@ -0,0 +1,35 @@
|
|||||||
|
"""add memory fields to end user
|
||||||
|
|
||||||
|
Revision ID: 0dab3b2ce369
|
||||||
|
Revises: c11c071cf21e
|
||||||
|
Create Date: 2025-03-08 16:21:08.903178
|
||||||
|
|
||||||
|
"""
|
||||||
|
from alembic import op
|
||||||
|
import models as models
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '0dab3b2ce369'
|
||||||
|
down_revision = 'c11c071cf21e'
|
||||||
|
branch_labels = None
|
||||||
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
with op.batch_alter_table('end_users', schema=None) as batch_op:
|
||||||
|
batch_op.add_column(sa.Column('memory', sa.Text(), nullable=True))
|
||||||
|
batch_op.add_column(sa.Column('memory_updated_at', sa.DateTime(), nullable=True))
|
||||||
|
|
||||||
|
# ### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
with op.batch_alter_table('end_users', schema=None) as batch_op:
|
||||||
|
batch_op.drop_column('memory_updated_at')
|
||||||
|
batch_op.drop_column('memory')
|
||||||
|
|
||||||
|
# ### end Alembic commands ###
|
||||||
Loading…
Reference in New Issue