# HG changeset patch # User ymh # Date 1442873017 -7200 # Node ID 5eaf3bd2cd90afaa445df05b895dae898e9c027f # Parent e54afd076ce6353dd5c0d64b65d85681e2aa2540 Correct default schema version value for java and php diff -r e54afd076ce6 -r 5eaf3bd2cd90 server/java/renkan-core/src/main/java/org/iri_research/renkan/Constants.java --- a/server/java/renkan-core/src/main/java/org/iri_research/renkan/Constants.java Sat Sep 19 13:43:17 2015 +0200 +++ b/server/java/renkan-core/src/main/java/org/iri_research/renkan/Constants.java Tue Sep 22 00:03:37 2015 +0200 @@ -18,7 +18,7 @@ public final static String ANONYMOUS_USER_BASE_NAME = "Anonymous"; public final static String UNKNOWN_SCHEMA_VERSION = "1"; - public final static String SCHEMA_VERSION = "1"; + public final static String SCHEMA_VERSION = "2"; private final static EthernetAddress ETHERNET_ADRESS = EthernetAddress .fromInterface(); diff -r e54afd076ce6 -r 5eaf3bd2cd90 server/php/basic/resources/library/constants.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/server/php/basic/resources/library/constants.php Tue Sep 22 00:03:37 2015 +0200 @@ -0,0 +1,3 @@ + $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); - } +}