update_servicegateway_3.1.3.js 961 Bytes
use SERVICEGATEWAY

db.auth("mongoapp", "mOng0@pp")

db.admin_user.drop()

db.createCollection("admin_user", {})

db.admin_user.insert( {
    "username" : "admin",
    "password" : "ySqCXldxK0qoIWrzqdITXQ=="
} )

db.external_apis_config_publish.drop()

db.createCollection('external_apis_config_publish', {})

db.external_apis_config_temp.drop()

db.createCollection('external_apis_config_temp', {})

db.external_apis_type.drop()

db.createCollection('external_apis_type', {})
db.external_apis_type.insert([{
    "_id" : 1,
    "labelName" : "Static - Dropdown",
    "value" : "staticdropdown",
    "active" : true
},{
    "_id" : 2,
    "labelName" : "Web Service - Dropdown",
    "value" : "webservicedropdown",
    "active" : true
},{
    "_id" : 3,
    "labelName" : "Web Service - APIs",
    "value" : "webserviceapis",
    "active" : true
},{
    "_id" : 4,
    "labelName" : "JSON Service - APIs",
    "value" : "jsonserviceapis",
    "active" : true
}])