fix: make radio migrations safe for existing schemas

This commit is contained in:
Simo committed 2026-07-11 22:18:45 +02:00
1 parent 6c63ed52cd
commit d99b71a2d3
5 files changed
+52 -20

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { describe, expect, it } from "vitest";
import { mysqlConnectionUrl } from "./db-url";
describe("mysqlConnectionUrl", () => {
it("removes Prisma-only pool options before passing the URL to MySQL2", () => {
const result = mysqlConnectionUrl("mysql://user:pass@localhost:3306/cms?connection_limit=20&pool_timeout=30&charset=utf8mb4");
expect(result).not.toContain("connection_limit");
expect(result).not.toContain("pool_timeout");
expect(result).toContain("charset=utf8mb4");
});
});