mirror of https://gitee.com/bigwinds/arangodb
Restored setup script.
This commit is contained in:
parent
d4285fc6fd
commit
abe77c8738
|
@ -26,6 +26,10 @@
|
|||
|
||||
"lib": ".",
|
||||
|
||||
"scripts": {
|
||||
"setup": "setup.js"
|
||||
},
|
||||
|
||||
"tests": "test/**",
|
||||
|
||||
"configuration": {
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
/*global applicationContext */
|
||||
'use strict';
|
||||
var db = require('org/arangodb').db;
|
||||
var collectionName = '_sessions';
|
||||
|
||||
if (db._collection(collectionName) === null) {
|
||||
db._create(collectionName, {isSystem: true});
|
||||
}
|
Loading…
Reference in New Issue