fix(migration): move JenisMigrasi enum creation before MigrasiPenduduk table

Enum must be created before it's used in CREATE TABLE.
This fixes P3018 error on staging where JenisMigrasi type does not exist.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
2026-04-14 11:58:08 +08:00
parent b1289831f3
commit e80e333eed

View File

@@ -1,3 +1,6 @@
-- CreateEnum
CREATE TYPE "JenisMigrasi" AS ENUM ('MASUK', 'KELUAR');
-- CreateTable
CREATE TABLE "DataBanjar" (
"id" TEXT NOT NULL,
@@ -107,6 +110,3 @@ CREATE INDEX "DinamikaPenduduk_isActive_idx" ON "DinamikaPenduduk"("isActive");
-- CreateIndex
CREATE UNIQUE INDEX "DinamikaPenduduk_tahun_key" ON "DinamikaPenduduk"("tahun");
-- CreateEnum
CREATE TYPE "JenisMigrasi" AS ENUM ('MASUK', 'KELUAR');