Skip to content

Commit

Permalink
fix: rebase migration head
Browse files Browse the repository at this point in the history
  • Loading branch information
GareArc committed Dec 23, 2024
1 parent d9bba39 commit ab4afa5
Showing 1 changed file with 21 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,44 +1,43 @@
"""added account_deletion_logs and details
Revision ID: 35e1a3223204
Revises: e1944c35e15e
Revises: d7999dfa4aae
Create Date: 2024-12-23 00:47:44.483419
"""
from alembic import op
import models as models
import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision = '35e1a3223204'
down_revision = 'e1944c35e15e'
down_revision = 'd7999dfa4aae'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('account_deletion_log_details',
sa.Column('id', models.types.StringUUID(), server_default=sa.text('uuid_generate_v4()'), nullable=False),
sa.Column('account_id', models.types.StringUUID(), nullable=False),
sa.Column('tenant_id', models.types.StringUUID(), nullable=False),
sa.Column('role', sa.String(length=16), nullable=False),
sa.Column('snapshot', sa.Text(), nullable=False),
sa.Column('created_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP(0)'), nullable=False),
sa.Column('updated_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP(0)'), nullable=False),
sa.PrimaryKeyConstraint('id', name='account_deletion_log_detail_pkey')
)
sa.Column('id', models.types.StringUUID(), server_default=sa.text('uuid_generate_v4()'), nullable=False),
sa.Column('account_id', models.types.StringUUID(), nullable=False),
sa.Column('tenant_id', models.types.StringUUID(), nullable=False),
sa.Column('role', sa.String(length=16), nullable=False),
sa.Column('snapshot', sa.Text(), nullable=False),
sa.Column('created_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP(0)'), nullable=False),
sa.Column('updated_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP(0)'), nullable=False),
sa.PrimaryKeyConstraint('id', name='account_deletion_log_detail_pkey')
)
op.create_table('account_deletion_logs',
sa.Column('id', models.types.StringUUID(), server_default=sa.text('uuid_generate_v4()'), nullable=False),
sa.Column('email', sa.String(length=255), nullable=False),
sa.Column('reason', sa.Text(), nullable=True),
sa.Column('account_id', models.types.StringUUID(), nullable=False),
sa.Column('snapshot', sa.Text(), nullable=False),
sa.Column('created_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP(0)'), nullable=False),
sa.Column('updated_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP(0)'), nullable=False),
sa.PrimaryKeyConstraint('id', name='account_deletion_log_pkey')
)
sa.Column('id', models.types.StringUUID(), server_default=sa.text('uuid_generate_v4()'), nullable=False),
sa.Column('email', sa.String(length=255), nullable=False),
sa.Column('reason', sa.Text(), nullable=True),
sa.Column('account_id', models.types.StringUUID(), nullable=False),
sa.Column('snapshot', sa.Text(), nullable=False),
sa.Column('created_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP(0)'), nullable=False),
sa.Column('updated_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP(0)'), nullable=False),
sa.PrimaryKeyConstraint('id', name='account_deletion_log_pkey')
)
# ### end Alembic commands ###


Expand Down

0 comments on commit ab4afa5

Please sign in to comment.