From 13b768aeee247c162ab2e206b7e93c643bc0d5f7 Mon Sep 17 00:00:00 2001 From: Scott Hussey Date: Thu, 18 Jan 2018 12:47:36 -0600 Subject: [PATCH] Allow longer hostnames Lengthen database columns to allow long hostnames Change-Id: I8b9af9a04b3496c76d0f8fa0bc97a03272a568b1 --- drydock_provisioner/statemgmt/db/tables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drydock_provisioner/statemgmt/db/tables.py b/drydock_provisioner/statemgmt/db/tables.py index b6d8b1a2..5568fbf2 100644 --- a/drydock_provisioner/statemgmt/db/tables.py +++ b/drydock_provisioner/statemgmt/db/tables.py @@ -90,7 +90,7 @@ class BootAction(ExtendTable): __tablename__ = 'boot_action' __schema__ = [ - Column('node_name', String(16), primary_key=True), + Column('node_name', String(280), primary_key=True), Column('task_id', pg.BYTEA(16)), Column('identity_key', pg.BYTEA(32)), ] @@ -102,7 +102,7 @@ class BootActionStatus(ExtendTable): __tablename__ = 'boot_action_status' __schema__ = [ - Column('node_name', String(32), index=True), + Column('node_name', String(280), index=True), Column('action_id', pg.BYTEA(16), primary_key=True), Column('action_name', String(64)), Column('task_id', pg.BYTEA(16), index=True),