_create_daxiangka_heidui(); } /** * 创建数据对象 * @class DaxiangkaHeidui * @table daxiangka_heidui * @return void */ private function _create_daxiangka_heidui() { // 创建数据表对象 $table = $this->table('daxiangka_heidui', [ 'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '', ]); // 创建或更新数据表 PhinxExtend::upgrade($table, [ ['order_id', 'string', ['limit' => 255, 'default' => NULL, 'null' => true, 'comment' => '']], ['merchant_order_id', 'string', ['limit' => 255, 'default' => NULL, 'null' => true, 'comment' => '']], ['status', 'string', ['limit' => 255, 'default' => NULL, 'null' => true, 'comment' => '']], ['time', 'time', ['default' => NULL, 'null' => true, 'comment' => '']], ['cash', 'integer', ['default' => NULL, 'null' => true, 'comment' => '']], ['num', 'integer', ['default' => NULL, 'null' => true, 'comment' => '']], ['card', 'string', ['limit' => 255, 'default' => NULL, 'null' => true, 'comment' => '']], ], [ ], false); } }