Commit b5b9a28d by ansible

edit script to drop before run initial table and data

1 parent 0aacc5a4
Showing with 8 additions and 0 deletions
...@@ -4,6 +4,8 @@ use SERVICEGATEWAY ...@@ -4,6 +4,8 @@ use SERVICEGATEWAY
db.auth("mongoapp", "mOng0@pp") db.auth("mongoapp", "mOng0@pp")
db.admin_user.drop()
db.createCollection("admin_user", {}) db.createCollection("admin_user", {})
db.admin_user.insert( { db.admin_user.insert( {
...@@ -11,10 +13,16 @@ db.admin_user.insert( { ...@@ -11,10 +13,16 @@ db.admin_user.insert( {
"password" : "ySqCXldxK0qoIWrzqdITXQ==" "password" : "ySqCXldxK0qoIWrzqdITXQ=="
} ) } )
db.external_apis_config_publish.drop()
db.createCollection('external_apis_config_publish', {}) db.createCollection('external_apis_config_publish', {})
db.external_apis_config_temp.drop()
db.createCollection('external_apis_config_temp', {}) db.createCollection('external_apis_config_temp', {})
db.external_apis_type.drop()
db.createCollection('external_apis_type', {}) db.createCollection('external_apis_type', {})
db.external_apis_type.insert([{ db.external_apis_type.insert([{
"_id" : 1, "_id" : 1,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!