Commit 4b416248 by ansible

Add "insert initial data for dmamanager"

Add "insert initail data for servicegateway"
1 parent eefc2c73
...@@ -169,8 +169,6 @@ INSERT INTO public.wd_sys_config ...@@ -169,8 +169,6 @@ INSERT INTO public.wd_sys_config
VALUES(65, 'system', 'mqtt_password', 'BBgXC8zQ7WGmcpVa', 'Mqtt authen'); VALUES(65, 'system', 'mqtt_password', 'BBgXC8zQ7WGmcpVa', 'Mqtt authen');
INSERT INTO public.wd_sys_config INSERT INTO public.wd_sys_config
(id, sys_group, sys_key, sys_value, sys_description) (id, sys_group, sys_key, sys_value, sys_description)
VALUES(67, 'Housekeeping', 'MaxMsgPerPage', '500', 'Maximum archrive chat log per file'); VALUES(67, 'Housekeeping', 'MaxMsgPerPage', '500', 'Maximum archrive chat log per file');
...@@ -205,10 +203,6 @@ INSERT INTO public.wd_sys_config ...@@ -205,10 +203,6 @@ INSERT INTO public.wd_sys_config
VALUES(76, 'system', 'group_using_lastSync_by_join', 'on', 'sync message add condition lasySync by join group'); VALUES(76, 'system', 'group_using_lastSync_by_join', 'on', 'sync message add condition lasySync by join group');
-- initial wd_user -- initial wd_user
INSERT INTO public.wd_user INSERT INTO public.wd_user
("userId", password, "displayName", email, "contactNumber", "roleName", "createdDate", "updatedDate", id, "imageLinkUrl", "userKey", "emailVerified", "enableEncryption", timezone, "prefContactAPI", deactivate, "pricingPackage", "lastSeenAtTime", status, "statusMessage", "imageLink", "lastLoggedInAtTime", "lastMessageAtTime", connected) ("userId", password, "displayName", email, "contactNumber", "roleName", "createdDate", "updatedDate", id, "imageLinkUrl", "userKey", "emailVerified", "enableEncryption", timezone, "prefContactAPI", deactivate, "pricingPackage", "lastSeenAtTime", status, "statusMessage", "imageLink", "lastLoggedInAtTime", "lastMessageAtTime", connected)
......
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7018 <<EOF
### Insert Initial Data
use DMAMANAGER
db.auth("mongoapp", "mOng0@pp")
db.createCollection("user")
db.user.insertOne(
{
"_class" : "com.jjpa.db.mongodb.document.dma.manager.UserDocument",
"username" : "admin",
"password" : "ZG1hQGRtaW5tYW5hZ2Vy",
"createDate" : new Date(),
"createBy" : "system",
"lastUpdateDate" : new Date(),
"lastUpdateBy" : "system",
"role" : "admin"
}
)
db.user.insertOne(
{
"_class" : "com.jjpa.db.mongodb.document.dma.manager.UserDocument",
"username" : "beebuddySystemAdmin",
"password" : "U3lzdGVtQGRtaW5NYW5hZ2Vy",
"createDate" : new Date(),
"createBy" : "system",
"lastUpdateDate" : new Date(),
"lastUpdateBy" : "system",
"role" : "system"
}
)
db.createCollection("entity_config")
db.entity_config.insertOne(
{
"_class" : "com.jjpa.db.mongodb.document.dma.manager.EntityDocument",
"entityName" : "default",
"remark" : "Default Entity",
"storyName" : "",
"role" : "",
"theme" : "",
"status" : "Active",
"publishStatus" : "W",
"createDate" : new Date(),
"lastUpdateDate" : new Date()
}
)
EOF
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7019 <<EOF
### Insert Initial Data of ServiceGateway
use SERVICEGATEWAY
db.auth("mongoapp", "mOng0@pp")
db.createCollection("admin_user", {})
db.admin_user.insert( {
"username" : "admin",
"password" : "nIkgyeBnaysxBa6bNaHz5g=="
} )
db.createCollection('external_apis_config_publish', {})
db.createCollection('external_apis_config_temp', {})
db.createCollection('external_apis_type', {})
db.external_apis_type.insert( {
"_id" : 1,
"labelName" : "Static - Dropdown",
"value" : "staticdropdown",
"active" : true
} )
db.external_apis_type.insert( {
"_id" : 2,
"labelName" : "Web Service - Dropdown",
"value" : "webservicedropdown",
"active" : true
} )
db.external_apis_type.insert( {
"_id" : 3,
"labelName" : "Web Service - APIs",
"value" : "webserviceapis",
"active" : true
} )
EOF
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!