From 407c3c4205d52b4f666b49262e59926f5eaee6a2 Mon Sep 17 00:00:00 2001 From: volkansahin Date: Thu, 29 Jun 2017 16:42:46 +0300 Subject: [PATCH] expiration date column added --- opt/ahenk/base/database/ahenk_db_service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opt/ahenk/base/database/ahenk_db_service.py b/opt/ahenk/base/database/ahenk_db_service.py index 4d4c14d..2bd037f 100644 --- a/opt/ahenk/base/database/ahenk_db_service.py +++ b/opt/ahenk/base/database/ahenk_db_service.py @@ -22,7 +22,6 @@ class AhenkDbService(object): self.lock = threading.Lock() - # TODO get columns anywhere # TODO scheduler db init get here @@ -34,7 +33,7 @@ class AhenkDbService(object): 'file_server TEXT']) self.check_and_create_table('policy', ['id INTEGER PRIMARY KEY AUTOINCREMENT', 'type TEXT', 'version TEXT', 'name TEXT', - 'execution_id TEXT']) + 'execution_id TEXT','expiration_date TEXT']) self.check_and_create_table('profile', ['id INTEGER', 'create_date TEXT', 'label TEXT', 'description TEXT', 'overridable INTEGER', 'active TEXT', 'deleted TEXT', 'profile_data TEXT', 'modify_date TEXT', 'plugin TEXT'])