Remove the implicit column '__ownerId' 13/127913/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 2 May 2017 09:51:23 +0000 (18:51 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 2 May 2017 09:51:23 +0000 (18:51 +0900)
Change-Id: Ie7265323208fb0bc882b628c65e3339b6d9bb562
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/server/SchemaLoader.cpp
src/server/Store.cpp
src/shared/ContextStoreTypesPrivate.h

index 69bcce7..4b6ae25 100644 (file)
@@ -301,8 +301,7 @@ void SchemaLoader::__insertMetadata(Schema& schema)
 void SchemaLoader::__createStoreTable(Schema& schema)
 {
        std::string attr =
-               COL_TIMESTAMP " DATETIME DEFAULT CURRENT_TIMESTAMP,"
-               COL_OWNER_ID " TEXT NOT NULL DEFAULT ''";
+               COL_TIMESTAMP " DATETIME DEFAULT CURRENT_TIMESTAMP";
 
        for (auto& item : schema.attributes) {
                attr.append(",").append(item.first);
index 80f529b..23f430b 100644 (file)
@@ -44,7 +44,6 @@ const std::string& Store::getColumns()
 
 int Store::insert(ContextStoreClient& client, const std::string& columns, std::vector<std::shared_ptr<Tuple>>& tuples)
 {
-       //TODO: handling owner's ID
        if (!__writable(client))
                return E_ACCESS;
 
@@ -89,7 +88,6 @@ int Store::retrieve(ContextStoreClient& client,
 
 int Store::remove(ContextStoreClient& client, const std::string selection)
 {
-       //TODO: handling owner's ID
        if (!__writable(client))
                return E_ACCESS;
 
index a8601a7..120e454 100644 (file)
@@ -66,7 +66,6 @@
 #define BASE_PATH                      "context-store"
 
 #define COL_TIMESTAMP          "__timestamp"
-#define COL_OWNER_ID           "__ownerId"
 
 #define DEFAULT_QUERY_LIMIT    10