diff -r e54afd076ce6 -r 5eaf3bd2cd90 server/php/basic/resources/library/renkanFunctions.php --- a/server/php/basic/resources/library/renkanFunctions.php Sat Sep 19 13:43:17 2015 +0200 +++ b/server/php/basic/resources/library/renkanFunctions.php Tue Sep 22 00:03:37 2015 +0200 @@ -1,60 +1,62 @@ $renkanId, - 'title' => $title, - 'description' => $description, - 'uri' => NULL, - 'color' => NULL, - 'created' => $now->format("c"), - 'updated' => $now->format("c"), - 'nodes' => [], - 'edges' => [], - 'users' => [], - 'views' => [] - ]; + $renkan_array = [ + 'id' => $renkanId, + 'title' => $title, + 'description' => $description, + 'uri' => NULL, + 'color' => NULL, + 'created' => $now->format("c"), + 'updated' => $now->format("c"), + 'schema_version' => RENKAN_SCHEMA_VERSION, + 'nodes' => [], + 'edges' => [], + 'users' => [], + 'views' => [] + ]; - return json_encode($renkan_array); + return json_encode($renkan_array); - } +}