Executing database migration via Admin CLI results in the following error:
$ java -jar admin/target/admin-1.0.0-SNAPSHOT.jar db-upgrade arangodb://localhost/spline
[2024-07-05 00:45:50.837] DEBUG [scala-execution-context-global-16] z.c.a.s.p.tx.JSTxBuilder -
function (_params) {
const _db = require('internal').db;
_db._query(`
WITH dbVersion
FOR a IN dbVersion
FILTER a.status == 'current'
UPDATE a._key WITH @b IN dbVersion
`, {"b": _params[0]});
_db._query(`
WITH dbVersion
FOR a IN dbVersion
FILTER a.status == 'preparing'
UPDATE a._key WITH @b IN dbVersion
`, {"b": _params[1]});
}
[2024-07-05 00:45:50.839] DEBUG [pool-3-thread-1] c.a.a.i.v.VstCommunicationAsync - Send Message (id=14, head=[1,1,"spline",2,"/_api/transaction",{},{"x-arango-driver":"JavaDriver/6.25.0 (JVM/11)","content-type":"application/x-velocypack","accept":"application/x-velocypack"}], body={"action":"\nfunction (_params) {\n const _db = require('internal').db;\n _db._query(`\n WITH dbVersion\n FOR a IN dbVersion\n FILTER a.status == 'current'\n UPDATE a._key WITH @b IN dbVersion\n `, {\"b\": _params[0]});\n _db._query(`\n WITH dbVersion\n FOR a IN dbVersion\n FILTER a.status == 'preparing'\n UPDATE a._key WITH @b IN dbVersion\n `, {\"b\": _params[1]});\n}\n","collections":{"allowImplicit":false,"write":["dbVersion"]},"params":{"prefix1":[{"status":"upgraded"},{"status":"current"}],"_class":"scala.collection.immutable.Vector1"}})
Executing database migration via Admin CLI results in the following error: