소스 검색

feat: enable create index for primary key

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 년 전
부모
커밋
25cbaa30ab
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      client/src/pages/databases/collections/overview/IndexTypeElement.tsx

+ 1 - 2
client/src/pages/databases/collections/overview/IndexTypeElement.tsx

@@ -172,7 +172,7 @@ const IndexTypeElement: FC<{
     );
 
     return tooltip ? (
-      <Tooltip interactive arrow title={tooltip} placement="top">
+      <Tooltip arrow title={tooltip} placement="top">
         <div>
           <IndexElem />
         </div>
@@ -184,7 +184,6 @@ const IndexTypeElement: FC<{
 
   const generateElement = () => {
     if (
-      field.is_primary_key ||
       NONE_INDEXABLE_DATA_TYPES.indexOf(
         field.data_type as DataTypeStringEnum
       ) !== -1