execute('SET unique_checks=0; SET foreign_key_checks=0;'); $table = $this->table('tipo_estado_pago'); $table->truncate(); $data = [ ['id' => -3, 'descripcion' => 'anulado'], ['id' => -2, 'descripcion' => 'reemplazado'], ['id' => -1, 'descripcion' => 'devuelto'], ['id' => 0, 'descripcion' => 'no pagado', 'active' => 1], ['id' => 1, 'descripcion' => 'depositado', 'active' => 1], ['id' => 2, 'descripcion' => 'abonado', 'active' => 1], ]; $table->insert($data)->saveData(); $this->execute('SET unique_checks=1; SET foreign_key_checks=1;'); } }