migration.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. migration:
  2. type: FILE
  3. sourceDatabase:
  4. type: sqlserver
  5. host: 192.168.100.25
  6. port: 1433
  7. name: cpcimb
  8. username: sa
  9. password: D4tacom!
  10. properties: encrypt=true;trustServerCertificate=true;
  11. target: null
  12. schema:
  13. - target: pbx
  14. table: pbxlist
  15. history: null
  16. group: null
  17. attribute:
  18. code: pbx_code
  19. name: description
  20. ipPbx: ip_pbx
  21. pbxSupporter: pbx_supporter
  22. sharePath: share_path
  23. appliedDate: ext_start
  24. expiredDate: ext_end
  25. - target: corcos
  26. table: womastercorcos
  27. history: null
  28. group: null
  29. attribute:
  30. command: command
  31. name: short_desc
  32. description: description
  33. - target: provider
  34. table: provider
  35. history: null
  36. group: null
  37. attribute:
  38. code: provider_prefix
  39. name: description
  40. description: description
  41. - target: account
  42. table: account
  43. history: accounthistory
  44. group: null
  45. attribute:
  46. id: history.account_id
  47. code: account_code
  48. name: history.account_number
  49. description: description
  50. appliedDate: history.app_datetime
  51. expiredDate: history.exp_datetime
  52. - target: trunk
  53. table: trunk
  54. history: trunkhistory
  55. group: null
  56. attribute:
  57. id: history.trunk_id
  58. code: trunk_code
  59. name: description
  60. pbx_id: location_code
  61. direction: cap_direction
  62. appliedDate: history.app_datetime
  63. expiredDate: history.exp_datetime
  64. - target: costCenter
  65. table: costcenter
  66. history: costcenterhistory
  67. group: null
  68. attribute:
  69. id: history.costcenter_id
  70. code: costcenter_code
  71. name: costcenter_name
  72. description: description
  73. email: costcenter_email
  74. parent_id: history.parent_costcenter_id
  75. structure: history.costcenter_id_structure
  76. appliedDate: history.app_datetime
  77. expiredDate: history.exp_datetime
  78. - target: organization
  79. table: organization
  80. history: organizationhistory
  81. group: null
  82. attribute:
  83. id: history.organization_id
  84. code: organization_code
  85. name: organization_name
  86. description: description
  87. email: organization_email
  88. emailOnOverBudget: sendemail_overbudget
  89. parent_id: history.parent_organization_id
  90. structure: history.organization_id_structure
  91. appliedDate: history.app_datetime
  92. expiredDate: history.exp_datetime
  93. cpid: history.organization_id
  94. - target: phoneUser
  95. table: phoneuser
  96. history: phoneuserhistory
  97. group: phoneuserextlist
  98. attribute:
  99. id: history.phoneuser_id
  100. code: phoneuser_code
  101. name: phoneuser_name
  102. email: phoneuser_email
  103. whatsapp: phoneuser_mobile
  104. position: position
  105. emailOnOverBudget: sendemail_overbudget
  106. pin: history.phoneuser_pin
  107. extension: history.default_extension
  108. organization_id: history.organization_code
  109. costCenter_id: history.costcenter_code
  110. pbx_id: history.pbx_code
  111. appliedDate: history.app_datetime
  112. expiredDate: history.exp_datetime
  113. pbx__list: group.pbx_list
  114. budget__maxCost: history.max_cost
  115. budget__warnCost: history.warn_cost
  116. - target: callTransaction
  117. table: calltransaction_20260127
  118. history: null
  119. group: null
  120. attribute:
  121. direction: direction
  122. startOfCall: start_of_call
  123. duration: duration
  124. extension: ext_used
  125. pin: pin
  126. phoneUser_id: phoneuser_code
  127. extTransferFrom: ext_transfer_from
  128. extTransferTo: ext_transfer_to
  129. number: dialed_number
  130. callerNumber: caller_number
  131. accessNumber: access_number
  132. organization_id: organization_code
  133. costCenter_id: costcenter_code
  134. cost: cost_1
  135. service: cost_service
  136. tax: cost_tax1
  137. discount: cost_adjustment
  138. currency: currency
  139. pbx_id: pbx_code
  140. terminationCode: call_termination
  141. redirectReason: redirect_reason
  142. account_id: account_code
  143. trunk_id: trunk_code
  144. - target: webUser
  145. table: usersetup
  146. history: null
  147. group: null
  148. attribute:
  149. username: login_id
  150. password: login_password
  151. name: description
  152. phoneUser_id: phoneuser_code
  153. loginPin: used_pin
  154. lastTarget: pbx;corcos;provider;account;trunk;costCenter;organization;phoneUser;callTransaction;webUser
  155. lastAction: '2026-03-02 16:31:09'