9fea1822cbc9_transaction_log_table.py 760 B

12345678910111213141516171819202122232425262728293031
  1. """transaction log table
  2. Revision ID: 9fea1822cbc9
  3. Revises: 0935df5094b3
  4. Create Date: 2021-12-27 11:25:39.645686
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '9fea1822cbc9'
  10. down_revision = '0935df5094b3'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. op.create_table('transaction',
  15. sa.Column('id', sa.Integer(), nullable=False),
  16. sa.Column('tfrom', sa.Unicode(length=200), nullable=False),
  17. sa.Column('to', sa.Unicode(length=200), nullable=False),
  18. sa.Column('nft', sa.Unicode(length=200), nullable=False),
  19. sa.Column('transaction_at', sa.Unicode(length=200), nullable=False),
  20. sa.PrimaryKeyConstraint('id')
  21. )
  22. def downgrade():
  23. pass