File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -119,12 +119,10 @@ public function fieldRules(string $tableName): array
119
119
$ dataTypeDetails = $ this ->getFieldDataType ($ tableName , $ field );
120
120
$ checkFields [$ field ]['datatype ' ] = $ dataTypeDetails ;
121
121
122
- if (connection_driver () === ' mysql ' && $ dataTypeDetails ['data_type ' ] === Constant::DATATYPE_VARCHAR
122
+ if (connection_driver () === Constant:: MYSQL_DB && $ dataTypeDetails ['data_type ' ] === Constant::DATATYPE_VARCHAR
123
123
&& $ dataTypeDetails ['size ' ] <= Constant::DATATYPE_VARCHAR_SIZE
124
124
) {
125
125
$ checkFields [$ field ]['suggestion ' ] = __ ('Lang::messages.standard.error_message.datatype_change ' );
126
- } elseif (connection_driver () === 'mysql ' ) {
127
- $ checkFields [$ field ]['suggestion ' ] = __ ('Lang::messages.standard.error_message.datatype_change ' );
128
126
}
129
127
}
130
128
} catch (Exception $ exception ) {
You can’t perform that action at this time.
0 commit comments