hasTable('hydraulic')) { $table = $this->table('hydraulic'); $table ->addColumn('torque', 'string', ['limit' => 10,'null' => true,'signed' => true,'comment' => '扭矩',]) ->addColumn('stress', 'string', ['limit' => 10,'null' => true,'signed' => true,'comment' => '压力',]) ->update(); } } }