File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -6034,14 +6034,19 @@ sub mysql_tables {
6034
6034
infoprint " Current Fieldtype: $current_type " ;
6035
6035
# infoprint " Optimal Fieldtype: Not available";
6036
6036
}
6037
- elsif ( $current_type ne $optimal_type ) {
6037
+ elsif ( $current_type ne $optimal_type and $current_type !~ / .*DATETIME.* / and $current_type !~ / .*TIMESTAMP.* / ) {
6038
6038
infoprint " Current Fieldtype: $current_type " ;
6039
- infoprint " Optimal Fieldtype: $optimal_type " ;
6040
- badprint
6039
+ if ($optimal_type =~ / .*ENUM\( .*/ ) {
6040
+ $optimal_type =" ENUM( ... )" ;
6041
+ }
6042
+ infoprint " Optimal Fieldtype: $optimal_type " ;
6043
+ if ($optimal_type !~ / .*ENUM\( .*/ ) {
6044
+ badprint
6041
6045
" Consider changing type for column $_ in table $dbname .$tbname " ;
6042
6046
push ( @generalrec ,
6043
6047
" ALTER TABLE \` $dbname \` .\` $tbname \` MODIFY \` $_ \` $optimal_type ;"
6044
6048
);
6049
+ }
6045
6050
6046
6051
}
6047
6052
else {
You can’t perform that action at this time.
0 commit comments