Remove foreign keys for verifactu in order to preserve logs
This commit is contained in:
parent
9e032ad723
commit
b174656e87
|
|
@ -849,8 +849,6 @@ class Invoice extends BaseXmlModel implements XmlModelInterface
|
|||
$root->appendChild($this->createElement($doc, 'DescripcionOperacion', $this->descripcionOperacion));
|
||||
|
||||
// 9. Destinatarios (if set)
|
||||
|
||||
// 9. Destinatarios (if set)
|
||||
if ($this->destinatarios !== null && count($this->destinatarios) > 0) {
|
||||
$destinatariosElement = $this->createElement($doc, 'Destinatarios');
|
||||
foreach ($this->destinatarios as $destinatario) {
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ return new class extends Migration
|
|||
$table->text('state')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade')->onUpdate('cascade');
|
||||
$table->foreign('invoice_id')->references('id')->on('invoices')->onDelete('cascade')->onUpdate('cascade');
|
||||
// Foreign key constraints removed - data integrity handled at application level
|
||||
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue