From 04166615a2ce20a2164176b3125e28312d93521a Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Tue, 24 Mar 2015 15:16:50 +0530 Subject: [PATCH] modified table model for sites --- ee/cli/plugins/models.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ee/cli/plugins/models.py b/ee/cli/plugins/models.py index 01e2c494..70a1aa1d 100644 --- a/ee/cli/plugins/models.py +++ b/ee/cli/plugins/models.py @@ -25,12 +25,14 @@ class SiteDB(Base): storage_fs = Column(String) storage_db = Column(String) db_name = Column(String) - db_password = Column(String) db_user = Column(String) + db_password = Column(String) + db_host = Column(String) def __init__(self, sitename=None, site_type=None, cache_type=None, site_path=None, site_enabled=None, - is_ssl=None, storage_fs=None, storage_db=None): + is_ssl=None, storage_fs=None, storage_db=None, db_name=None, + db_user=None, db_password=None, db_host='localhost'): self.sitename = sitename self.site_type = site_type self.cache_type = cache_type @@ -39,6 +41,10 @@ class SiteDB(Base): self.is_ssl = is_ssl self.storage_fs = storage_fs self.storage_db = storage_db + self.db_name = db_name + self.db_user = db_user + self.db_password = db_password + self.db_host = db_host # def __repr__(self): # return '' % (self.site_type)