From ab4afa5d47b3ac95cc547a2dea80510deccb51bf Mon Sep 17 00:00:00 2001 From: GareArc Date: Mon, 23 Dec 2024 02:51:59 -0500 Subject: [PATCH] fix: rebase migration head --- ...added_account_deletion_logs_and_details.py | 43 +++++++++---------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/api/migrations/versions/2024_12_23_0047-35e1a3223204_added_account_deletion_logs_and_details.py b/api/migrations/versions/2024_12_23_0047-35e1a3223204_added_account_deletion_logs_and_details.py index 02b49b21be3455..d6e210bde83292 100644 --- a/api/migrations/versions/2024_12_23_0047-35e1a3223204_added_account_deletion_logs_and_details.py +++ b/api/migrations/versions/2024_12_23_0047-35e1a3223204_added_account_deletion_logs_and_details.py @@ -1,18 +1,17 @@ """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 @@ -20,25 +19,25 @@ 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 ###