ALTER TABLE "document_number_type_configs" DROP CONSTRAINT "document_number_type_configs_document_number_type_id_document_number_types_id_fk"; --> statement-breakpoint ALTER TABLE "tag_type_class_form_mappings" ALTER COLUMN "remark" SET DATA TYPE text;--> statement-breakpoint ALTER TABLE "document_number_type_configs" ADD CONSTRAINT "document_number_type_configs_document_number_type_id_document_number_types_id_fk" FOREIGN KEY ("document_number_type_id") REFERENCES "public"."document_number_types"("id") ON DELETE cascade ON UPDATE no action;