20220428091610_add_weworksingle_company_data.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. use think\migration\Migrator;
  3. use think\migration\db\Column;
  4. class AddWeworksingleCompanyData extends Migrator
  5. {
  6. /**
  7. * Change Method.
  8. *
  9. * Write your reversible migrations using this method.
  10. *
  11. * More information on writing migrations is available here:
  12. * http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class
  13. *
  14. * The following commands can be used in this method and Phinx will
  15. * automatically reverse them when rolling back:
  16. *
  17. * createTable
  18. * renameTable
  19. * addColumn
  20. * renameColumn
  21. * addIndex
  22. * addForeignKey
  23. *
  24. * Remember to call "create()" or "update()" and NOT "save()" when working
  25. * with the Table class.
  26. */
  27. public function change()
  28. {
  29. $this->table('weworksingle_company_setting')->insert([
  30. 'company_id' => 2,
  31. 'corp_id' => 'ww16ab285cc1f0bdac',
  32. 'ticket' => 'cff5e4eeefc5910368773fbb3fb2f01b',
  33. 'agentid' => 1000034,
  34. 'agent_secret' => 'uEX-dxjc9W_7A2esM0vLibVvRRJAN_oNTwl6pG6lXQE',
  35. 'receive_token' => 'I0rQROZZZXx4V',
  36. 'receive_aes_key' => 'RjD40utvtKrCAN2xuoQOwHocaRSjs0SGme3ITWrEApG',
  37. 'contact_secret' => 'GaXq1RxP01g9TTFmF1rWmqC3G7vsT2ti4vADgYdGWEY',
  38. 'contact_token' => '',
  39. 'contact_aes_key' => '',
  40. 'customer_secret' => 'VemCK8oELYUgs_jXChFAhD1KtKUidZPMTnGKWPQIWqw',
  41. 'customer_token' => 'zfgJVlQ9PUPrJw0TnKH61Mc',
  42. 'customer_aes_key' => '7GXSkVXKhhTM1W0ognDxZrDhzbfxebrPgXMDvLpsqLG'
  43. ])->save();
  44. }
  45. }