I hereby claim:
- I am fceller on github.
- I am fceller (https://keybase.io/fceller) on keybase.
- I have a public key ASBtuHlP0r46duENltIEhmApmz2fC94Xw8Hx3Pi3YaIkkQo
To claim this, I am signing this object:
require 'formula' | |
class Avocadodb < Formula | |
url "https://github.com/triAGENS/AvocadoDB/zipball/v0.3.6" | |
head "https://github.com/triAGENS/AvocadoDB.git" | |
homepage 'http://www.avocadodb.org/' | |
sha1 'e891adfba8c9ca118f4b94f7fb67cb2aea2fa7a4' | |
depends_on 'libev' |
require 'formula' | |
class Avocadodb < Formula | |
url "https://github.com/triAGENS/AvocadoDB/zipball/v0.3.7" | |
head "https://github.com/triAGENS/AvocadoDB.git" | |
homepage 'http://www.avocadodb.org/' | |
sha1 '2bdc0069013f7cf21ba8144518aefc204e9d18d2' | |
depends_on 'libev' |
AvocadoDB shell [V8 version 3.9.4, DB version 0.3.12] | |
avocado> db.example.ensureUniqueConstraint("a"); | |
{ "id" : "113199/965167", "unique" : true, "type" : "hash", "fields" : ["a"], "isNewlyCreated" : true } | |
avocado> db.example.save({ a : 1 }); | |
{ "_id" : "113199/1620527", "_rev" : 1620527 } | |
avocado> db.example.save({ a : 1, b : 1 }); | |
JavaScript exception in file '(avocado)' at 1,12: [AvocadoError 1210: unique constraint violated: cannot save document] | |
!db.example.save({ a : 1, b : 1 }); | |
! ^ | |
stacktrace: [AvocadoError 1210: unique constraint violated: cannot save document] |
diff --git a/js/server/upgrade-database.js b/js/server/upgrade-database.js | |
index 4fe254d..b0f1066 100644 | |
--- a/js/server/upgrade-database.js | |
+++ b/js/server/upgrade-database.js | |
@@ -51,6 +51,7 @@ function updateGlobals() { | |
var userManager = require("org/arangodb/users"); | |
var clusterManager = require("org/arangodb/cluster"); | |
var currentVersion = require("org/arangodb/database-version").CURRENT_VERSION; | |
+ var sprintf = internal.sprintf; | |
var db = internal.db; |
I hereby claim:
To claim this, I am signing this object: