fix: make radio migrations safe for existing schemas
This commit is contained in:
1 parent
6c63ed52cd
commit
d99b71a2d3
5 files changed
+52
-20
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user