[
    {
        "date": "2025-11-04 10:45:52",
        "reason": "change-column-type",
        "sql": "ALTER TABLE empresas MODIFY `direccion`  character varying(200) NULL;",
        "context": {
            "db": {
                "type": "varchar(100)",
                "key": "",
                "default": null,
                "extra": "",
                "is_nullable": "YES",
                "name": "direccion"
            },
            "xml": {
                "name": "direccion",
                "type": "character varying(200)",
                "null": "YES",
                "default": "",
                "rename": ""
            }
        }
    },
    {
        "date": "2025-11-04 10:45:52",
        "reason": "change-column-type",
        "sql": "ALTER TABLE empresas MODIFY `regimeniva`  character varying(50) NULL;",
        "context": {
            "db": {
                "type": "varchar(20)",
                "key": "",
                "default": null,
                "extra": "",
                "is_nullable": "YES",
                "name": "regimeniva"
            },
            "xml": {
                "name": "regimeniva",
                "type": "character varying(50)",
                "null": "YES",
                "default": "",
                "rename": ""
            }
        }
    },
    {
        "date": "2025-11-04 10:45:52",
        "reason": "new-column",
        "sql": "ALTER TABLE users ADD `codserie`  character varying(4) NULL;",
        "context": {
            "name": "codserie",
            "type": "character varying(4)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:45:52",
        "reason": "new-column",
        "sql": "ALTER TABLE users ADD `two_factor_enabled`  boolean NOT NULL DEFAULT false;",
        "context": {
            "name": "two_factor_enabled",
            "type": "boolean",
            "null": "NO",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:45:52",
        "reason": "new-column",
        "sql": "ALTER TABLE users ADD `two_factor_secret_key`  character varying(32) NULL;",
        "context": {
            "name": "two_factor_secret_key",
            "type": "character varying(32)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:45:52",
        "reason": "constraints",
        "sql": "ALTER TABLE users ADD CONSTRAINT ca_users_series FOREIGN KEY (codserie) REFERENCES series (codserie) ON DELETE SET NULL ON UPDATE CASCADE;",
        "context": []
    },
    {
        "date": "2025-11-04 10:48:38",
        "reason": "change-column-type",
        "sql": "ALTER TABLE facturascli MODIFY `direccion`  character varying(200) NULL;",
        "context": {
            "db": {
                "type": "varchar(100)",
                "key": "",
                "default": null,
                "extra": "",
                "is_nullable": "YES",
                "name": "direccion"
            },
            "xml": {
                "name": "direccion",
                "type": "character varying(200)",
                "null": "YES",
                "default": "",
                "rename": ""
            }
        }
    },
    {
        "date": "2025-11-04 10:49:25",
        "reason": "new-column",
        "sql": "ALTER TABLE empresas ADD `vf_certificate`  text NULL;",
        "context": {
            "name": "vf_certificate",
            "type": "text",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:49:25",
        "reason": "new-column",
        "sql": "ALTER TABLE empresas ADD `vf_certificate_expiration`  date NULL;",
        "context": {
            "name": "vf_certificate_expiration",
            "type": "date",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:49:25",
        "reason": "new-column",
        "sql": "ALTER TABLE empresas ADD `vf_certificate_representative_cif`  character varying(30) NULL;",
        "context": {
            "name": "vf_certificate_representative_cif",
            "type": "character varying(30)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:49:25",
        "reason": "new-column",
        "sql": "ALTER TABLE empresas ADD `vf_certificate_representative_name`  character varying(120) NULL;",
        "context": {
            "name": "vf_certificate_representative_name",
            "type": "character varying(120)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:49:25",
        "reason": "new-column",
        "sql": "ALTER TABLE empresas ADD `vf_certificate_seal`  boolean NULL DEFAULT false;",
        "context": {
            "name": "vf_certificate_seal",
            "type": "boolean",
            "null": "YES",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:49:25",
        "reason": "new-column",
        "sql": "ALTER TABLE empresas ADD `vf_debug_mode`  boolean NULL DEFAULT false;",
        "context": {
            "name": "vf_debug_mode",
            "type": "boolean",
            "null": "YES",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:49:25",
        "reason": "new-column",
        "sql": "ALTER TABLE empresas ADD `vf_password`  character varying(100) NULL;",
        "context": {
            "name": "vf_password",
            "type": "character varying(100)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:52:50",
        "reason": "new-column",
        "sql": "ALTER TABLE facturascli ADD `vf_intents_alta`  integer NULL DEFAULT 0;",
        "context": {
            "name": "vf_intents_alta",
            "type": "integer",
            "null": "YES",
            "default": "0",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:52:50",
        "reason": "new-column",
        "sql": "ALTER TABLE facturascli ADD `vf_intents_anulacion`  integer NULL DEFAULT 0;",
        "context": {
            "name": "vf_intents_anulacion",
            "type": "integer",
            "null": "YES",
            "default": "0",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:52:50",
        "reason": "new-column",
        "sql": "ALTER TABLE facturascli ADD `vf_intents_subsanacion`  integer NULL DEFAULT 0;",
        "context": {
            "name": "vf_intents_subsanacion",
            "type": "integer",
            "null": "YES",
            "default": "0",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:52:50",
        "reason": "new-column",
        "sql": "ALTER TABLE facturascli ADD `vf_manual_alta`  boolean NULL DEFAULT false;",
        "context": {
            "name": "vf_manual_alta",
            "type": "boolean",
            "null": "YES",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:52:50",
        "reason": "new-column",
        "sql": "ALTER TABLE facturascli ADD `vf_manual_anulacion`  boolean NULL DEFAULT false;",
        "context": {
            "name": "vf_manual_anulacion",
            "type": "boolean",
            "null": "YES",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:52:50",
        "reason": "new-column",
        "sql": "ALTER TABLE facturascli ADD `vf_sent`  boolean NULL DEFAULT false;",
        "context": {
            "name": "vf_sent",
            "type": "boolean",
            "null": "YES",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:52:50",
        "reason": "new-column",
        "sql": "ALTER TABLE estados_documentos ADD `vf_send`  boolean NULL DEFAULT false;",
        "context": {
            "name": "vf_send",
            "type": "boolean",
            "null": "YES",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:52:50",
        "reason": "create-table",
        "sql": "CREATE TABLE verifactu_registros_facturas (`codejercicio`  character varying(4) NOT NULL, `creation_date`  timestamp NOT NULL, `event`  character varying(15) NULL, `file_json`  character varying(200) NULL, `hash`  character varying(100) NULL, `id`  INTEGER NOT NULL AUTO_INCREMENT, `idempresa`  integer NOT NULL, `idfactura`  integer NOT NULL, `mode`  character varying(15) NOT NULL, `nick`  character varying(50) NULL, `status`  character varying(50) NULL, CONSTRAINT verifactu_registros_facturas_pkey PRIMARY KEY (id), CONSTRAINT ca_verifactu_registros_facturas_empresas FOREIGN KEY (idempresa) REFERENCES empresas (idempresa) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT ca_verifactu_registros_facturas_facturascli FOREIGN KEY (idfactura) REFERENCES facturascli (idfactura) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT ca_verifactu_registros_facturas_nick FOREIGN KEY (nick) REFERENCES users (nick) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT ca_verifactu_registros_facturas_ejercicios FOREIGN KEY (codejercicio) REFERENCES ejercicios (codejercicio) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;",
        "context": []
    },
    {
        "date": "2025-11-04 10:52:50",
        "reason": "new-column",
        "sql": "ALTER TABLE ejercicios ADD `vf_mode`  character varying(15) NULL;",
        "context": {
            "name": "vf_mode",
            "type": "character varying(15)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:52:51",
        "reason": "create-table",
        "sql": "CREATE TABLE verifactu_registros_eventos (`codejercicio`  character varying(4) NULL, `creation_date`  timestamp NOT NULL, `file_json`  character varying(200) NULL, `hash`  character varying(100) NULL, `id`  INTEGER NOT NULL AUTO_INCREMENT, `idempresa`  integer NOT NULL, `nick`  character varying(50) NULL, `type`  character varying(2) NULL, `type_name`  character varying(100) NULL, CONSTRAINT verifactu_registros_eventos_pkey PRIMARY KEY (id), CONSTRAINT ca_verifactu_registros_eventos_empresas FOREIGN KEY (idempresa) REFERENCES empresas (idempresa) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT ca_verifactu_registros_eventos_nick FOREIGN KEY (nick) REFERENCES users (nick) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT ca_verifactu_registros_eventos_ejercicios FOREIGN KEY (codejercicio) REFERENCES ejercicios (codejercicio) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;",
        "context": []
    },
    {
        "date": "2025-11-04 10:52:51",
        "reason": "new-column",
        "sql": "ALTER TABLE clientes ADD `excluir347`  boolean NULL DEFAULT false;",
        "context": {
            "name": "excluir347",
            "type": "boolean",
            "null": "YES",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2025-11-04 10:53:42",
        "reason": "change-column-type",
        "sql": "ALTER TABLE almacenes MODIFY `direccion`  character varying(200) NULL;",
        "context": {
            "db": {
                "type": "varchar(100)",
                "key": "",
                "default": null,
                "extra": "",
                "is_nullable": "YES",
                "name": "direccion"
            },
            "xml": {
                "name": "direccion",
                "type": "character varying(200)",
                "null": "YES",
                "default": "",
                "rename": ""
            }
        }
    },
    {
        "date": "2025-11-04 10:53:42",
        "reason": "create-table",
        "sql": "CREATE TABLE verifactu_requerimientos (`creation_date`  timestamp NOT NULL, `end_codejercicio`  character varying(4) NOT NULL, `id`  INTEGER NOT NULL AUTO_INCREMENT, `idempresa`  integer NOT NULL, `nick`  character varying(50) NULL, `reference`  character varying(18) NOT NULL, `start_codejercicio`  character varying(4) NOT NULL, `status`  character varying(15) NOT NULL, CONSTRAINT verifactu_requerimientos_pkey PRIMARY KEY (id), CONSTRAINT ca_verifactu_requerimientos_nick FOREIGN KEY (nick) REFERENCES users (nick) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT ca_verifactu_requerimientos_empresas FOREIGN KEY (idempresa) REFERENCES empresas (idempresa) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT ca_verifactu_requerimientos_start_codejercicio FOREIGN KEY (start_codejercicio) REFERENCES ejercicios (codejercicio) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT ca_verifactu_requerimientos_end_codejercicio FOREIGN KEY (end_codejercicio) REFERENCES ejercicios (codejercicio) ON DELETE CASCADE ON UPDATE CASCADE) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;",
        "context": []
    },
    {
        "date": "2026-01-12 17:47:58",
        "reason": "new-column",
        "sql": "ALTER TABLE impuestos ADD `operacion`  character varying(20) NULL;",
        "context": {
            "name": "operacion",
            "type": "character varying(20)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-01-12 17:47:58",
        "reason": "new-column",
        "sql": "ALTER TABLE proveedores ADD `excluir347`  boolean NULL DEFAULT false;",
        "context": {
            "name": "excluir347",
            "type": "boolean",
            "null": "YES",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2026-01-12 17:51:33",
        "reason": "change-column-type",
        "sql": "ALTER TABLE productos MODIFY `tipo`  character varying(50) NULL;",
        "context": {
            "db": {
                "type": "varchar(20)",
                "key": "",
                "default": null,
                "extra": "",
                "is_nullable": "YES",
                "name": "tipo"
            },
            "xml": {
                "name": "tipo",
                "type": "character varying(50)",
                "null": "YES",
                "default": "",
                "rename": ""
            }
        }
    },
    {
        "date": "2026-01-12 18:14:30",
        "reason": "change-column-type",
        "sql": "ALTER TABLE contactos MODIFY `direccion`  character varying(200) NULL;",
        "context": {
            "db": {
                "type": "varchar(100)",
                "key": "",
                "default": null,
                "extra": "",
                "is_nullable": "YES",
                "name": "direccion"
            },
            "xml": {
                "name": "direccion",
                "type": "character varying(200)",
                "null": "YES",
                "default": "",
                "rename": ""
            }
        }
    },
    {
        "date": "2026-03-24 18:33:57",
        "reason": "change-column-default",
        "sql": "ALTER TABLE empresas MODIFY `personafisica`  boolean NULL DEFAULT false;",
        "context": {
            "db": {
                "type": "tinyint(1)",
                "key": "",
                "default": "1",
                "extra": "",
                "is_nullable": "YES",
                "name": "personafisica"
            },
            "xml": {
                "name": "personafisica",
                "type": "boolean",
                "null": "YES",
                "default": "false",
                "rename": ""
            }
        }
    },
    {
        "date": "2026-03-24 18:34:09",
        "reason": "new-column",
        "sql": "ALTER TABLE work_events ADD `execution_time`  double precision NULL;",
        "context": {
            "name": "execution_time",
            "type": "double precision",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-03-24 18:34:18",
        "reason": "change-column-default",
        "sql": "ALTER TABLE logs MODIFY `time`  timestamp NOT NULL;",
        "context": {
            "db": {
                "type": "timestamp",
                "key": "",
                "default": "CURRENT_TIMESTAMP",
                "extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP",
                "is_nullable": "NO",
                "name": "time"
            },
            "xml": {
                "name": "time",
                "type": "timestamp",
                "null": "NO",
                "default": "",
                "rename": ""
            }
        }
    },
    {
        "date": "2026-04-15 11:45:31",
        "reason": "new-column",
        "sql": "ALTER TABLE reports_amounts ADD `ignore_opening`  boolean NOT NULL DEFAULT false;",
        "context": {
            "name": "ignore_opening",
            "type": "boolean",
            "null": "NO",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 11:45:31",
        "reason": "new-column",
        "sql": "ALTER TABLE reports_amounts ADD `show_balance_opening`  boolean NOT NULL DEFAULT false;",
        "context": {
            "name": "show_balance_opening",
            "type": "boolean",
            "null": "NO",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:09:03",
        "reason": "change-column-null",
        "sql": "ALTER TABLE api_keys MODIFY `nick`  character varying(50) NULL;",
        "context": {
            "db": {
                "type": "varchar(50)",
                "key": "",
                "default": null,
                "extra": "",
                "is_nullable": "NO",
                "name": "nick"
            },
            "xml": {
                "name": "nick",
                "type": "character varying(50)",
                "null": "YES",
                "default": "",
                "rename": ""
            }
        }
    },
    {
        "date": "2026-04-15 13:09:03",
        "reason": "add-constraints",
        "sql": "ALTER TABLE api_keys ADD CONSTRAINT ca_api_keys_nick FOREIGN KEY (nick) REFERENCES users (nick) ON DELETE SET NULL ON UPDATE CASCADE;",
        "context": []
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "new-column",
        "sql": "ALTER TABLE clientes ADD `operacion`  character varying(20) NULL;",
        "context": {
            "name": "operacion",
            "type": "character varying(20)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "change-column-type",
        "sql": "ALTER TABLE clientes MODIFY `regimeniva`  character varying(50) NULL;",
        "context": {
            "db": {
                "type": "varchar(20)",
                "key": "",
                "default": null,
                "extra": "",
                "is_nullable": "YES",
                "name": "regimeniva"
            },
            "xml": {
                "name": "regimeniva",
                "type": "character varying(50)",
                "null": "YES",
                "default": "",
                "rename": ""
            }
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "new-column",
        "sql": "ALTER TABLE proveedores ADD `excepcioniva`  character varying(20) NULL;",
        "context": {
            "name": "excepcioniva",
            "type": "character varying(20)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "new-column",
        "sql": "ALTER TABLE proveedores ADD `operacion`  character varying(20) NULL;",
        "context": {
            "name": "operacion",
            "type": "character varying(20)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "change-column-type",
        "sql": "ALTER TABLE proveedores MODIFY `regimeniva`  character varying(50) NULL;",
        "context": {
            "db": {
                "type": "varchar(20)",
                "key": "",
                "default": null,
                "extra": "",
                "is_nullable": "YES",
                "name": "regimeniva"
            },
            "xml": {
                "name": "regimeniva",
                "type": "character varying(50)",
                "null": "YES",
                "default": "",
                "rename": ""
            }
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "change-column-default",
        "sql": "ALTER TABLE lineaspresupuestosprov MODIFY `dtopor`  double precision NOT NULL DEFAULT 0;",
        "context": {
            "db": {
                "type": "double",
                "key": "",
                "default": null,
                "extra": "",
                "is_nullable": "NO",
                "name": "dtopor"
            },
            "xml": {
                "name": "dtopor",
                "type": "double precision",
                "null": "NO",
                "default": "0",
                "rename": ""
            }
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "new-column",
        "sql": "ALTER TABLE lineaspresupuestosprov ADD `excepcioniva`  character varying(20) NULL;",
        "context": {
            "name": "excepcioniva",
            "type": "character varying(20)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "new-column",
        "sql": "ALTER TABLE impuestos ADD `codsubcuentarepintra`  character varying(15) NULL;",
        "context": {
            "name": "codsubcuentarepintra",
            "type": "character varying(15)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "new-column",
        "sql": "ALTER TABLE impuestos ADD `codsubcuentasopintra`  character varying(15) NULL;",
        "context": {
            "name": "codsubcuentasopintra",
            "type": "character varying(15)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "new-column",
        "sql": "ALTER TABLE lineaspresupuestoscli ADD `coste`  double precision NULL;",
        "context": {
            "name": "coste",
            "type": "double precision",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "change-column-default",
        "sql": "ALTER TABLE lineaspresupuestoscli MODIFY `dtopor`  double precision NOT NULL DEFAULT 0;",
        "context": {
            "db": {
                "type": "double",
                "key": "",
                "default": null,
                "extra": "",
                "is_nullable": "NO",
                "name": "dtopor"
            },
            "xml": {
                "name": "dtopor",
                "type": "double precision",
                "null": "NO",
                "default": "0",
                "rename": ""
            }
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "new-column",
        "sql": "ALTER TABLE lineaspresupuestoscli ADD `excepcioniva`  character varying(20) NULL;",
        "context": {
            "name": "excepcioniva",
            "type": "character varying(20)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "new-column",
        "sql": "ALTER TABLE lineaspresupuestoscli ADD `salto_pagina`  boolean NULL DEFAULT false;",
        "context": {
            "name": "salto_pagina",
            "type": "boolean",
            "null": "YES",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "new-column",
        "sql": "ALTER TABLE lineasalbaranescli ADD `coste`  double precision NULL;",
        "context": {
            "name": "coste",
            "type": "double precision",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "change-column-default",
        "sql": "ALTER TABLE lineasalbaranescli MODIFY `dtopor`  double precision NOT NULL DEFAULT 0;",
        "context": {
            "db": {
                "type": "double",
                "key": "",
                "default": null,
                "extra": "",
                "is_nullable": "NO",
                "name": "dtopor"
            },
            "xml": {
                "name": "dtopor",
                "type": "double precision",
                "null": "NO",
                "default": "0",
                "rename": ""
            }
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "new-column",
        "sql": "ALTER TABLE lineasalbaranescli ADD `excepcioniva`  character varying(20) NULL;",
        "context": {
            "name": "excepcioniva",
            "type": "character varying(20)",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:35:01",
        "reason": "new-column",
        "sql": "ALTER TABLE lineasalbaranescli ADD `salto_pagina`  boolean NULL DEFAULT false;",
        "context": {
            "name": "salto_pagina",
            "type": "boolean",
            "null": "YES",
            "default": "false",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:36:05",
        "reason": "new-column",
        "sql": "ALTER TABLE attached_files_rel ADD `orden`  integer NULL;",
        "context": {
            "name": "orden",
            "type": "integer",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:41:57",
        "reason": "new-column",
        "sql": "ALTER TABLE facturascli ADD `idestado_ant`  integer NULL;",
        "context": {
            "name": "idestado_ant",
            "type": "integer",
            "null": "YES",
            "default": "",
            "rename": ""
        }
    },
    {
        "date": "2026-04-15 13:41:57",
        "reason": "add-constraints",
        "sql": "ALTER TABLE facturascli ADD CONSTRAINT ca_facturascli_idestado_ant FOREIGN KEY (idestado_ant) REFERENCES estados_documentos (idestado) ON DELETE SET NULL ON UPDATE CASCADE;",
        "context": []
    }
]