1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- use think\migration\Migrator;
- use think\migration\db\Column;
- class AddWeworksingleCompanyData extends Migrator
- {
- /**
- * Change Method.
- *
- * Write your reversible migrations using this method.
- *
- * More information on writing migrations is available here:
- * http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class
- *
- * The following commands can be used in this method and Phinx will
- * automatically reverse them when rolling back:
- *
- * createTable
- * renameTable
- * addColumn
- * renameColumn
- * addIndex
- * addForeignKey
- *
- * Remember to call "create()" or "update()" and NOT "save()" when working
- * with the Table class.
- */
- public function change()
- {
- $this->table('weworksingle_company_setting')->insert([
- 'company_id' => 2,
- 'corp_id' => 'ww16ab285cc1f0bdac',
- 'ticket' => 'cff5e4eeefc5910368773fbb3fb2f01b',
- 'agentid' => 1000034,
- 'agent_secret' => 'uEX-dxjc9W_7A2esM0vLibVvRRJAN_oNTwl6pG6lXQE',
- 'receive_token' => 'I0rQROZZZXx4V',
- 'receive_aes_key' => 'RjD40utvtKrCAN2xuoQOwHocaRSjs0SGme3ITWrEApG',
- 'contact_secret' => 'GaXq1RxP01g9TTFmF1rWmqC3G7vsT2ti4vADgYdGWEY',
- 'contact_token' => '',
- 'contact_aes_key' => '',
- 'customer_secret' => 'VemCK8oELYUgs_jXChFAhD1KtKUidZPMTnGKWPQIWqw',
- 'customer_token' => 'zfgJVlQ9PUPrJw0TnKH61Mc',
- 'customer_aes_key' => '7GXSkVXKhhTM1W0ognDxZrDhzbfxebrPgXMDvLpsqLG'
- ])->save();
- }
- }
|