ALTER TABLE "data_charge" 
  ALTER COLUMN "node_id" DROP NOT NULL,
  DROP CONSTRAINT "FK_data_charge_base_node_node_id",
  ADD CONSTRAINT "FK_data_charge_base_node_node_id" FOREIGN KEY ("node_id") REFERENCES "base_node" ("id") ON DELETE SET NULL ON UPDATE NO ACTION;
