mirror of https://gitee.com/bigwinds/arangodb
11 lines
310 B
JavaScript
11 lines
310 B
JavaScript
/*jslint indent: 2, nomen: true, maxlen: 120, es5: true */
|
|
/*global require, applicationContext */
|
|
(function () {
|
|
'use strict';
|
|
var db = require('org/arangodb').db,
|
|
usersName = applicationContext.collectionName('users');
|
|
|
|
if (db._collection(usersName) === null) {
|
|
db._create(usersName);
|
|
}
|
|
}()); |