Commit 6316ebc
committed
Fix doctrine:database:create failing without server_version for some connections
getDatabasePlatform() triggers a connection to auto-detect the server version when
server_version is not configured. Since the target database does not exist yet at
this point, the connection fails. Switch to getDriver() which identifies the driver
type without opening any connection.1 parent c747e6a commit 6316ebc
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments