File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,15 @@ public function createDatabasePlatformForVersion($version)
36
36
{
37
37
$ mariadb = stripos ($ version , 'mariadb ' ) !== false ;
38
38
if ($ mariadb ) {
39
- if (version_compare ($ this ->getMariaDbMysqlVersionNumber ($ version ), '10.5.2 ' , '>= ' )) {
39
+ $ mariaDbVersion = $ this ->getMariaDbMysqlVersionNumber ($ version );
40
+ if (version_compare ($ mariaDbVersion , '10.5.2 ' , '>= ' )) {
40
41
return new MariaDb1052Platform ();
41
42
}
42
43
43
- if (version_compare ($ this -> getMariaDbMysqlVersionNumber ( $ version ) , '10.2.7 ' , '>= ' )) {
44
+ if (version_compare ($ mariaDbVersion , '10.2.7 ' , '>= ' )) {
44
45
return new MariaDb1027Platform ();
45
46
}
46
- }
47
-
48
- if (! $ mariadb ) {
47
+ } else {
49
48
$ oracleMysqlVersion = $ this ->getOracleMysqlVersionNumber ($ version );
50
49
if (version_compare ($ oracleMysqlVersion , '8 ' , '>= ' )) {
51
50
if (! version_compare ($ version , '8.0.0 ' , '>= ' )) {
You can’t perform that action at this time.
0 commit comments