fix: make radio migrations safe for existing schemas

This commit is contained in:
simoleo89
2026-07-11 22:18:45 +02:00
parent 6c63ed52cd
commit d99b71a2d3
5 changed files with 52 additions and 20 deletions
+7
View File
@@ -0,0 +1,7 @@
const MYSQL2_UNSUPPORTED_OPTIONS = ["connection_limit", "pool_timeout"] as const;
export function mysqlConnectionUrl(value: string): string {
const url = new URL(value);
for (const option of MYSQL2_UNSUPPORTED_OPTIONS) url.searchParams.delete(option);
return url.toString();
}