Update PhinxExtend.php

This commit is contained in:
邹景立 2025-08-16 00:17:06 +08:00
parent 47b93ca03a
commit f71d2d289d

View File

@ -144,7 +144,7 @@ class PhinxExtend
return $part[0] ?? ''; return $part[0] ?? '';
}, explode('_', $str))); }, explode('_', $str)));
}; };
return sprintf('idx_%s_%s_%s', substr(md5($table), -4), $getInitials($table), $getInitials($name)); return sprintf('idx_%s_%s_%s', substr(md5($table), -4), $getInitials($table), $name);
} }