mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-09 01:49:37 -06:00
fix(migration): resolve PostgreSQL migration error for Kafka integration
Some checks failed
Some checks failed
- Corrected table reference in migration SQL to align with naming conventions. - Fixed foreign key constraint issue that caused migration failure. - Ensured successful setup of Kafka integration by addressing database migration errors.
This commit is contained in:
parent
4585850741
commit
d8268b0eb1
@ -1,5 +1,13 @@
|
|||||||
# 2.3.5 (develop)
|
# 2.3.5 (develop)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* **Kafka Migration**: Fixed PostgreSQL migration error for Kafka integration
|
||||||
|
- Corrected table reference from `"public"."Instance"` to `"Instance"` in foreign key constraint
|
||||||
|
- Fixed `ERROR: relation "public.Instance" does not exist` issue in migration `20250918182355_add_kafka_integration`
|
||||||
|
- Aligned table naming convention with other Evolution API migrations for consistency
|
||||||
|
- Resolved database migration failure that prevented Kafka integration setup
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
# 2.3.4 (2025-09-23)
|
# 2.3.4 (2025-09-23)
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
-- CreateTable
|
-- CreateTable
|
||||||
CREATE TABLE "public"."Kafka" (
|
CREATE TABLE "Kafka" (
|
||||||
"id" TEXT NOT NULL,
|
"id" TEXT NOT NULL,
|
||||||
"enabled" BOOLEAN NOT NULL DEFAULT false,
|
"enabled" BOOLEAN NOT NULL DEFAULT false,
|
||||||
"events" JSONB NOT NULL,
|
"events" JSONB NOT NULL,
|
||||||
@ -11,7 +11,7 @@ CREATE TABLE "public"."Kafka" (
|
|||||||
);
|
);
|
||||||
|
|
||||||
-- CreateIndex
|
-- CreateIndex
|
||||||
CREATE UNIQUE INDEX "Kafka_instanceId_key" ON "public"."Kafka"("instanceId");
|
CREATE UNIQUE INDEX "Kafka_instanceId_key" ON "Kafka"("instanceId");
|
||||||
|
|
||||||
-- AddForeignKey
|
-- AddForeignKey
|
||||||
ALTER TABLE "public"."Kafka" ADD CONSTRAINT "Kafka_instanceId_fkey" FOREIGN KEY ("instanceId") REFERENCES "public"."Instance"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
ALTER TABLE "Kafka" ADD CONSTRAINT "Kafka_instanceId_fkey" FOREIGN KEY ("instanceId") REFERENCES "Instance"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user