Skip to content

Commit d8268b0

Browse files
committed
fix(migration): resolve PostgreSQL migration error for Kafka integration
- 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.
1 parent 4585850 commit d8268b0

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# 2.3.5 (develop)
22

3+
### Fixed
4+
5+
* **Kafka Migration**: Fixed PostgreSQL migration error for Kafka integration
6+
- Corrected table reference from `"public"."Instance"` to `"Instance"` in foreign key constraint
7+
- Fixed `ERROR: relation "public.Instance" does not exist` issue in migration `20250918182355_add_kafka_integration`
8+
- Aligned table naming convention with other Evolution API migrations for consistency
9+
- Resolved database migration failure that prevented Kafka integration setup
10+
311
###
412

513
# 2.3.4 (2025-09-23)

prisma/postgresql-migrations/20250918182355_add_kafka_integration/migration.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- CreateTable
2-
CREATE TABLE "public"."Kafka" (
2+
CREATE TABLE "Kafka" (
33
"id" TEXT NOT NULL,
44
"enabled" BOOLEAN NOT NULL DEFAULT false,
55
"events" JSONB NOT NULL,
@@ -11,7 +11,7 @@ CREATE TABLE "public"."Kafka" (
1111
);
1212

1313
-- CreateIndex
14-
CREATE UNIQUE INDEX "Kafka_instanceId_key" ON "public"."Kafka"("instanceId");
14+
CREATE UNIQUE INDEX "Kafka_instanceId_key" ON "Kafka"("instanceId");
1515

1616
-- AddForeignKey
17-
ALTER TABLE "public"."Kafka" ADD CONSTRAINT "Kafka_instanceId_fkey" FOREIGN KEY ("instanceId") REFERENCES "public"."Instance"("id") ON DELETE CASCADE ON UPDATE CASCADE;
17+
ALTER TABLE "Kafka" ADD CONSTRAINT "Kafka_instanceId_fkey" FOREIGN KEY ("instanceId") REFERENCES "Instance"("id") ON DELETE CASCADE ON UPDATE CASCADE;

0 commit comments

Comments
 (0)