transactionjob updates and fixes

This commit is contained in:
Tim Olson
2023-10-20 01:08:59 -04:00
parent 558b94bfb2
commit 2fd378a936
7 changed files with 32 additions and 28 deletions

View File

@@ -58,11 +58,10 @@ def upgrade() -> None:
op.create_index(op.f('ix_transactionjob_completed'), 'transactionjob', ['completed'], unique=False)
op.create_index(op.f('ix_transactionjob_height'), 'transactionjob', ['height'], unique=False)
op.create_table('tx',
sa.Column('id', sa.UUID(), nullable=False),
sa.Column('tx', postgresql.JSONB(astext_type=sa.Text()), nullable=False),
sa.Column('hash', postgresql.BYTEA(), nullable=False),
sa.Column('receipt', postgresql.JSONB(astext_type=sa.Text()), nullable=False),
sa.ForeignKeyConstraint(['id'], ['transactionjob.id'], ),
sa.Column('id', postgresql.BYTEA(), nullable=False),
sa.Column('job_id', sa.UUID(), nullable=False),
sa.Column('receipt', postgresql.JSONB(astext_type=sa.Text()), nullable=True),
sa.ForeignKeyConstraint(['job_id'], ['transactionjob.id'], ),
sa.PrimaryKeyConstraint('id')
)