Change config_id to client_id in clients table
config_id is actually client_id, this patch modify it Story: #2004132 Task: #27578 Change-Id: Ie561b1d2cfbc783bd74af4e0c4d3d13b7b45be22 Implements: bp add-mysql-support-for-freezer
This commit is contained in:
parent
522e55af8c
commit
93a000a514
|
@ -26,7 +26,7 @@ def define_tables(meta):
|
|||
Column('user_id', String(36), nullable=False),
|
||||
Column('id', String(255), primary_key=True, nullable=False),
|
||||
Column('project_id', String(36), nullable=False),
|
||||
Column('config_id', String(255), nullable=False),
|
||||
Column('client_id', String(255), nullable=False),
|
||||
Column('hostname', String(255), nullable=False),
|
||||
Column('description', String(255)),
|
||||
Column('uuid', String(36), nullable=False),
|
||||
|
|
|
@ -58,7 +58,7 @@ class Client(BASE, FreezerBase):
|
|||
id = Column(String(255), primary_key=True)
|
||||
project_id = Column(String(36), nullable=False)
|
||||
user_id = Column(String(64), nullable=False)
|
||||
config_id = Column(String(255), nullable=False)
|
||||
client_id = Column(String(255), nullable=False)
|
||||
hostname = Column(String(128))
|
||||
description = Column(String(255))
|
||||
uuid = Column(String(36), nullable=False)
|
||||
|
@ -178,14 +178,14 @@ class JobAttachment(BASE, FreezerBase):
|
|||
|
||||
def register_models(engine):
|
||||
_models = (Client, Action, Job, Session,
|
||||
ActionAttachment, ActionReport, JobAttachment)
|
||||
ActionReport, JobAttachment)
|
||||
for _model in _models:
|
||||
_model.metadata.create_all(engine)
|
||||
|
||||
|
||||
def unregister_models(engine):
|
||||
_models = (Client, Action, Job, Session,
|
||||
ActionAttachment, ActionReport, JobAttachment)
|
||||
ActionReport, JobAttachment)
|
||||
for _model in _models:
|
||||
_model.metadata.drop_all(engine)
|
||||
|
||||
|
|
Loading…
Reference in New Issue