change deposit for amount

This commit is contained in:
Cayo Puigdefabregas 2021-02-05 15:35:52 +01:00
parent cb3f07eb5a
commit 6b7571fe86
2 changed files with 8 additions and 6 deletions

View File

@ -18,6 +18,8 @@ ml).
- [addend] #102 adding endpoint for download metrics
- [bugfix] #100 fixing bug of scheme live
- [bugfix] #101 fixing bug when 2 users have one device and launch one live
- [changes] #114 clean blockchein of deliverynote
- [remove] #114 remove proof system
## [1.0.3-beta]
- [addend] #85 add mac of network adapter to device hid

View File

@ -27,9 +27,9 @@ def get_inv():
def upgrade():
op.drop_column('deliverynote', 'ethereum_address', schema=f'{get_inv()}')
op.alter_column('deliverynote', 'deposit', new_column_name='amount')
op.alter_column('computer', 'deposit', new_column_name='amount')
op.alter_column('lot', 'deposit', new_column_name='amount')
op.alter_column('deliverynote', 'deposit', new_column_name='amount', schema=f'{get_inv()}')
op.alter_column('computer', 'deposit', new_column_name='amount', schema=f'{get_inv()}')
op.alter_column('lot', 'deposit', new_column_name='amount', schema=f'{get_inv()}')
op.drop_column('computer', 'deliverynote_address', schema=f'{get_inv()}')
op.drop_column('lot', 'deliverynote_address', schema=f'{get_inv()}')
op.drop_table('proof_function', schema=f'{get_inv()}')
@ -44,9 +44,9 @@ def upgrade():
def downgrade():
op.add_column('deliverynote', sa.Column('ethereum_address', citext.CIText(), nullable=True), schema=f'{get_inv()}')
op.alter_column('deliverynote', 'amount', new_column_name='deposit')
op.alter_column('computer', 'amount', new_column_name='deposit')
op.alter_column('lot', 'amount', new_column_name='deposit')
op.alter_column('deliverynote', 'amount', new_column_name='deposit', schema=f'{get_inv()}')
op.alter_column('computer', 'amount', new_column_name='deposit', schema=f'{get_inv()}')
op.alter_column('lot', 'amount', new_column_name='deposit', schema=f'{get_inv()}')
op.add_column('computer', sa.Column('deliverynote_address', citext.CIText(), nullable=True), schema=f'{get_inv()}')
op.add_column('lot', sa.Column('deliverynote_address', citext.CIText(), nullable=True), schema=f'{get_inv()}')
op.create_table('proof',