From 372051067de2b63dc314b718489d5bc18fdca87a Mon Sep 17 00:00:00 2001 From: Ken Roberts Date: Fri, 12 Jan 2018 23:17:15 -0800 Subject: [PATCH] Update pjlink_class define in db --- openlp/core/projectors/db.py | 4 ++-- openlp/core/projectors/upgrade.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openlp/core/projectors/db.py b/openlp/core/projectors/db.py index db8f4ac4b..f9297fae9 100644 --- a/openlp/core/projectors/db.py +++ b/openlp/core/projectors/db.py @@ -152,7 +152,7 @@ class Projector(Base, CommonMixin): location: Column(String(30)) notes: Column(String(200)) pjlink_name: Column(String(128)) # From projector - pjlink_class Column(String(1)) # From projector + pjlink_class Column(String(5)) # From projector manufacturer: Column(String(128)) # From projector model: Column(String(128)) # From projector other: Column(String(128)) # From projector @@ -199,7 +199,7 @@ class Projector(Base, CommonMixin): location = Column(String(30)) notes = Column(String(200)) pjlink_name = Column(String(128)) - pjlink_class = Column(String(1)) + pjlink_class = Column(String(5)) manufacturer = Column(String(128)) model = Column(String(128)) other = Column(String(128)) diff --git a/openlp/core/projectors/upgrade.py b/openlp/core/projectors/upgrade.py index b02667638..d3837eda0 100644 --- a/openlp/core/projectors/upgrade.py +++ b/openlp/core/projectors/upgrade.py @@ -89,5 +89,5 @@ def upgrade_3(session, metadata): upgrade_db = 'pjlink_class' not in [col.name for col in projector_table.c.values()] if upgrade_db: new_op = get_upgrade_op(session) - new_op.add_column('projector', Column('pjlink_class', types.String(1), server_default=null())) + new_op.add_column('projector', Column('pjlink_class', types.String(5), server_default=null())) log.debug('{status} projector DB upgrade to version 3'.format(status='Updated' if upgrade_db else 'Skipping'))