drop required in monitor too
This commit is contained in:
parent
b8812f0b82
commit
c480e96f79
|
@ -31,6 +31,9 @@ def upgrade():
|
|||
op.alter_column('display', 'size', nullable=True, schema=f'{get_inv()}')
|
||||
op.alter_column('display', 'resolution_width', nullable=True, schema=f'{get_inv()}')
|
||||
op.alter_column('display', 'resolution_height', nullable=True, schema=f'{get_inv()}')
|
||||
op.alter_column('monitor', 'size', nullable=True, schema=f'{get_inv()}')
|
||||
op.alter_column('monitor', 'resolution_width', nullable=True, schema=f'{get_inv()}')
|
||||
op.alter_column('monitor', 'resolution_height', nullable=True, schema=f'{get_inv()}')
|
||||
# pass
|
||||
|
||||
|
||||
|
|
|
@ -148,17 +148,17 @@ class Server(Computer):
|
|||
|
||||
class DisplayMixin:
|
||||
__doc__ = m.DisplayMixin.__doc__
|
||||
size = Float(description=m.DisplayMixin.size.comment, validate=Range(2, 150), required=True)
|
||||
size = Float(description=m.DisplayMixin.size.comment, validate=Range(2, 150))
|
||||
technology = EnumField(enums.DisplayTech,
|
||||
description=m.DisplayMixin.technology.comment)
|
||||
resolution_width = Integer(data_key='resolutionWidth',
|
||||
validate=Range(10, 20000),
|
||||
description=m.DisplayMixin.resolution_width.comment,
|
||||
required=True)
|
||||
)
|
||||
resolution_height = Integer(data_key='resolutionHeight',
|
||||
validate=Range(10, 20000),
|
||||
description=m.DisplayMixin.resolution_height.comment,
|
||||
required=True)
|
||||
)
|
||||
refresh_rate = Integer(data_key='refreshRate', validate=Range(10, 1000))
|
||||
contrast_ratio = Integer(data_key='contrastRatio', validate=Range(100, 100000))
|
||||
touchable = Boolean(description=m.DisplayMixin.touchable.comment)
|
||||
|
|
Reference in New Issue