1
0
Fork 0

Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel

This commit is contained in:
Frank Celler 2014-03-12 18:19:54 +01:00
commit f44f55b280
4 changed files with 10 additions and 3 deletions

View File

@ -4,6 +4,13 @@ v2.1.0 (XXXX-XX-XX)
* removed arangod command line option `--database.remove-on-compacted`
v2.0.1 (XXXX-XX-XX)
-------------------
* when creating a collection via the web interface, the collection type was always
"document", regardless of the user's choice
v2.0.0 (2014-03-10)
-------------------

View File

@ -316,7 +316,7 @@ function post_api_collection (req, res) {
try {
var collection;
if (typeof(r.type) === "string") {
if (r.type.toLowerCase() === "edge") {
if (r.type.toLowerCase() === "edge" || r.type === "3") {
r.type = arangodb.ArangoCollection.TYPE_EDGE;
}
}

View File

@ -272,7 +272,7 @@
data.name = collName;
data.waitForSync = wfs;
data.isSystem = isSystem;
data.type = collType;
data.type = parseInt(collType, 10);
if (shards) {
data.numberOfShards = shards;
data.shardKeys = keys;

View File

@ -1,4 +1,4 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
/*jslint indent: 2, nomen: true, maxlen: 120, sloppy: true, vars: true, white: true, plusplus: true */
/*global ArangoServerState, require, exports */
////////////////////////////////////////////////////////////////////////////////