migration.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. unique: code
  57. attribute:
  58. id: history.trunk_id
  59. code: trunk_code
  60. name: description
  61. pbx_id: location_code
  62. direction: cap_direction
  63. appliedDate: history.app_datetime
  64. expiredDate: history.exp_datetime
  65. - target: costCenter
  66. table: costcenter
  67. history: costcenterhistory
  68. group: null
  69. attribute:
  70. id: history.costcenter_id
  71. code: costcenter_code
  72. name: costcenter_name
  73. description: description
  74. email: costcenter_email
  75. parent_id: history.parent_costcenter_id
  76. structure: history.costcenter_id_structure
  77. appliedDate: history.app_datetime
  78. expiredDate: history.exp_datetime
  79. - target: organization
  80. table: organization
  81. history: organizationhistory
  82. group: null
  83. unique: code
  84. attribute:
  85. id: history.organization_id
  86. code: organization_code
  87. name: organization_name
  88. description: description
  89. email: organization_email
  90. emailOnOverBudget: sendemail_overbudget
  91. parent_id: history.parent_organization_id
  92. structure: history.organization_id_structure
  93. appliedDate: history.app_datetime
  94. expiredDate: history.exp_datetime
  95. cpid: history.organization_id
  96. - target: phoneUser
  97. table: phoneuser
  98. history: phoneuserhistory
  99. group: phoneuserextlist
  100. attribute:
  101. id: history.phoneuser_id
  102. code: phoneuser_code
  103. name: phoneuser_name
  104. email: phoneuser_email
  105. whatsapp: phoneuser_mobile
  106. position: position
  107. emailOnOverBudget: sendemail_overbudget
  108. pin: history.phoneuser_pin
  109. extension: history.default_extension
  110. organization_id: history.organization_code
  111. costCenter_id: history.costcenter_code
  112. pbx_id: history.pbx_code
  113. appliedDate: history.app_datetime
  114. expiredDate: history.exp_datetime
  115. pbx__list: group.pbx_list
  116. budget__maxCost: history.max_cost
  117. budget__warnCost: history.warn_cost
  118. - target: callTransaction
  119. table: calltransaction_20260127
  120. history: null
  121. group: null
  122. attribute:
  123. direction: direction
  124. startOfCall: start_of_call
  125. duration: duration
  126. extension: ext_used
  127. pin: pin
  128. phoneUser_id: phoneuser_code
  129. extTransferFrom: ext_transfer_from
  130. extTransferTo: ext_transfer_to
  131. number: dialed_number
  132. callerNumber: caller_number
  133. accessNumber: access_number
  134. organization_id: organization_code
  135. costCenter_id: costcenter_code
  136. cost: cost_1
  137. service: cost_service
  138. tax: cost_tax1
  139. discount: cost_adjustment
  140. currency: currency
  141. pbx_id: pbx_code
  142. terminationCode: call_termination
  143. redirectReason: redirect_reason
  144. account_id: account_code
  145. trunk_id: trunk_code
  146. - target: webUser
  147. table: usersetup
  148. history: null
  149. group: null
  150. attribute:
  151. username: login_id
  152. password: login_password
  153. name: description
  154. phoneUser_id: phoneuser_code
  155. loginPin: used_pin
  156. lastTarget: pbx;corcos;provider;account;trunk;costCenter;organization;phoneUser;callTransaction;webUser
  157. lastAction: '2026-03-02 16:31:09'