This uses only public EntitySchema, migrator, and schema-generator APIs.
docker run --rm --name mikro-trigger-repro \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=trigger_repro \
-p 127.0.0.1:54329:5432 \
postgres:17-alpineIn another terminal:
pnpm install
DB_PORT=54329 pnpm reprocreateInitial() splits the dollar-quoted PostgreSQL function into two
migration statements:
create or replace function ... as $$ begin update ...;
return NEW;; end; $$ language plpgsql;
The same metadata then fails through orm.schema.refresh():
syntax error at or near ";"
Expected: semicolons and newlines inside a dollar-quoted function body do not split the generated SQL statement.