resolve conflicts
This commit is contained in:
commit
710e61fca8
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -5,11 +5,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.ht
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.ht
|
||||||
ml).
|
ml).
|
||||||
|
|
||||||
## master [1.0.7-beta]
|
## master
|
||||||
|
[1.0.8-beta]
|
||||||
|
|
||||||
## testing [1.0.8-beta]
|
## testing
|
||||||
|
[1.0.9-beta]
|
||||||
- [addend] #159 external document as proof of erase of disk
|
- [addend] #159 external document as proof of erase of disk
|
||||||
|
|
||||||
|
|
||||||
|
## [1.0.8-beta]
|
||||||
|
- [bugfix] #161 fixing DataStorage with bigInteger
|
||||||
|
|
||||||
## [1.0.7-beta]
|
## [1.0.7-beta]
|
||||||
- [addend] #158 support for encrypted snapshots data
|
- [addend] #158 support for encrypted snapshots data
|
||||||
- [addend] #135 adding trade system
|
- [addend] #135 adding trade system
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = "1.0.8-beta"
|
__version__ = "1.0.9-beta"
|
||||||
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
"""TestDataStorage_bigIntegers
|
||||||
|
|
||||||
|
Revision ID: 0103a9c96b2d
|
||||||
|
Revises: 3a3601ac8224
|
||||||
|
Create Date: 2021-07-21 08:56:48.342503
|
||||||
|
|
||||||
|
"""
|
||||||
|
from alembic import op, context
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '0103a9c96b2d'
|
||||||
|
down_revision = '3a3601ac8224'
|
||||||
|
branch_labels = None
|
||||||
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
|
def get_inv():
|
||||||
|
INV = context.get_x_argument(as_dictionary=True).get('inventory')
|
||||||
|
if not INV:
|
||||||
|
raise ValueError("Inventory value is not specified")
|
||||||
|
return INV
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
op.alter_column('test_data_storage', 'reallocated_sector_count', type_=sa.BigInteger(), schema=f'{get_inv()}')
|
||||||
|
op.alter_column('test_data_storage', 'power_cycle_count', type_=sa.Integer(), schema=f'{get_inv()}')
|
||||||
|
op.alter_column('test_data_storage', 'reported_uncorrectable_errors', type_=sa.BigInteger(), schema=f'{get_inv()}')
|
||||||
|
op.alter_column('test_data_storage', 'current_pending_sector_count', type_=sa.BigInteger(), schema=f'{get_inv()}')
|
||||||
|
op.alter_column('test_data_storage', 'offline_uncorrectable', type_=sa.BigInteger(), schema=f'{get_inv()}')
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
op.alter_column('test_data_storage', 'reallocated_sector_count', type_=sa.SmallInteger(), schema=f'{get_inv()}')
|
||||||
|
op.alter_column('test_data_storage', 'power_cycle_count', type_=sa.SmallInteger(), schema=f'{get_inv()}')
|
||||||
|
op.alter_column('test_data_storage', 'reported_uncorrectable_errors', type_=sa.Integer(), schema=f'{get_inv()}')
|
||||||
|
op.alter_column('test_data_storage', 'current_pending_sector_count', type_=sa.Integer(), schema=f'{get_inv()}')
|
||||||
|
op.alter_column('test_data_storage', 'offline_uncorrectable', type_=sa.Integer(), schema=f'{get_inv()}')
|
|
@ -18,7 +18,7 @@ from sqlalchemy.dialects import postgresql
|
||||||
|
|
||||||
# revision identifiers, used by Alembic.
|
# revision identifiers, used by Alembic.
|
||||||
revision = '7ecb8ff7abad'
|
revision = '7ecb8ff7abad'
|
||||||
down_revision = '3a3601ac8224'
|
down_revision = '0103a9c96b2d'
|
||||||
branch_labels = None
|
branch_labels = None
|
||||||
depends_on = None
|
depends_on = None
|
||||||
|
|
||||||
|
|
|
@ -754,12 +754,12 @@ class TestDataStorage(TestMixin, Test):
|
||||||
status = Column(Unicode(), check_lower('status'), nullable=False)
|
status = Column(Unicode(), check_lower('status'), nullable=False)
|
||||||
lifetime = Column(Interval)
|
lifetime = Column(Interval)
|
||||||
assessment = Column(Boolean)
|
assessment = Column(Boolean)
|
||||||
reallocated_sector_count = Column(SmallInteger)
|
reallocated_sector_count = Column(BigInteger)
|
||||||
power_cycle_count = Column(SmallInteger)
|
power_cycle_count = Column(Integer)
|
||||||
_reported_uncorrectable_errors = Column('reported_uncorrectable_errors', Integer)
|
_reported_uncorrectable_errors = Column('reported_uncorrectable_errors', BigInteger)
|
||||||
command_timeout = Column(BigInteger)
|
command_timeout = Column(BigInteger)
|
||||||
current_pending_sector_count = Column(Integer)
|
current_pending_sector_count = Column(BigInteger)
|
||||||
offline_uncorrectable = Column(Integer)
|
offline_uncorrectable = Column(BigInteger)
|
||||||
remaining_lifetime_percentage = Column(SmallInteger)
|
remaining_lifetime_percentage = Column(SmallInteger)
|
||||||
elapsed = Column(Interval, nullable=False)
|
elapsed = Column(Interval, nullable=False)
|
||||||
|
|
||||||
|
|
Reference in a new issue