@@ -1845,7 +1845,6 @@ public function createAttribute(string $collection, string $id, string $type, in
18451845 );
18461846
18471847 $ created = false ;
1848- $ duplicateInSharedTable = false ;
18491848
18501849 try {
18511850 $ created = $ this ->adapter ->createAttribute ($ collection ->getId (), $ id , $ type , $ size , $ signed , $ array , $ required );
@@ -1858,7 +1857,6 @@ public function createAttribute(string $collection, string $id, string $type, in
18581857 if (!$ this ->adapter ->getSharedTables () || !$ this ->isMigrating ()) {
18591858 throw $ e ;
18601859 }
1861- $ duplicateInSharedTable = true ;
18621860 }
18631861
18641862 $ collection ->setAttribute ('attributes ' , $ attribute , Document::SET_TYPE_APPEND );
@@ -1959,7 +1957,6 @@ public function createAttributes(string $collection, array $attributes): bool
19591957 }
19601958
19611959 $ created = false ;
1962- $ duplicateInSharedTable = false ;
19631960
19641961 try {
19651962 $ created = $ this ->adapter ->createAttributes ($ collection ->getId (), $ attributes );
@@ -1973,7 +1970,6 @@ public function createAttributes(string $collection, array $attributes): bool
19731970 if (!$ this ->adapter ->getSharedTables () || !$ this ->isMigrating ()) {
19741971 throw $ e ;
19751972 }
1976- $ duplicateInSharedTable = true ;
19771973 }
19781974
19791975 foreach ($ attributeDocuments as $ attributeDocument ) {
@@ -3836,7 +3832,6 @@ public function createIndex(string $collection, string $id, string $type, array
38363832 }
38373833
38383834 $ created = false ;
3839- $ duplicateInSharedTable = false ;
38403835
38413836 try {
38423837 $ created = $ this ->adapter ->createIndex ($ collection ->getId (), $ id , $ type , $ attributes , $ lengths , $ orders , $ indexAttributesWithTypes );
@@ -3849,7 +3844,6 @@ public function createIndex(string $collection, string $id, string $type, array
38493844 if (!$ this ->adapter ->getSharedTables () || !$ this ->isMigrating ()) {
38503845 throw $ e ;
38513846 }
3852- $ duplicateInSharedTable = true ;
38533847 }
38543848
38553849 $ collection ->setAttribute ('indexes ' , $ index , Document::SET_TYPE_APPEND );
0 commit comments