mirror of https://gitee.com/bigwinds/arangodb
Replaced sessions collection upgrade task.
This commit is contained in:
parent
1b3c8b88cf
commit
de9a1c6efc
|
@ -6,6 +6,6 @@
|
|||
sessionsName = applicationContext.collectionName('sessions');
|
||||
|
||||
if (db._collection(sessionsName) === null) {
|
||||
db._create(sessionsName);
|
||||
db._create(sessionsName, {isSystem: true});
|
||||
}
|
||||
}());
|
|
@ -6,6 +6,6 @@
|
|||
usersName = applicationContext.collectionName('users');
|
||||
|
||||
if (db._collection(usersName) === null) {
|
||||
db._create(usersName);
|
||||
db._create(usersName, {isSystem: true});
|
||||
}
|
||||
}());
|
|
@ -790,25 +790,6 @@
|
|||
}
|
||||
});
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief setupSessions
|
||||
///
|
||||
/// set up the collection _sessions
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
addTask({
|
||||
name: "setupSessions",
|
||||
description: "setup _sessions collection",
|
||||
|
||||
mode: [ MODE_PRODUCTION, MODE_DEVELOPMENT ],
|
||||
cluster: [ CLUSTER_NONE, CLUSTER_COORDINATOR_GLOBAL ],
|
||||
database: [ DATABASE_INIT, DATABASE_UPGRADE ],
|
||||
|
||||
task: function () {
|
||||
return createSystemCollection("_sessions", { waitForSync : true });
|
||||
}
|
||||
});
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief setupGraphs
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue