|  | @@ 2348-2360 (lines=13) @@ | 
                                                            
                                    | 2345 |  |      * | 
                                                            
                                    | 2346 |  |      * @throws \InvalidArgumentException | 
                                                            
                                    | 2347 |  |      */ | 
                                                            
                                    | 2348 |  |     public function getUniqueConstraintDeclarationSQL($name, Index $index) | 
                                                            
                                    | 2349 |  |     { | 
                                                            
                                    | 2350 |  |         $columns = $index->getQuotedColumns($this); | 
                                                            
                                    | 2351 |  |         $name = new Identifier($name); | 
                                                            
                                    | 2352 |  |  | 
                                                            
                                    | 2353 |  |         if (count($columns) === 0) { | 
                                                            
                                    | 2354 |  |             throw new \InvalidArgumentException("Incomplete definition. 'columns' required."); | 
                                                            
                                    | 2355 |  |         } | 
                                                            
                                    | 2356 |  |  | 
                                                            
                                    | 2357 |  |         return 'CONSTRAINT ' . $name->getQuotedName($this) . ' UNIQUE (' | 
                                                            
                                    | 2358 |  |              . $this->getIndexFieldDeclarationListSQL($columns) | 
                                                            
                                    | 2359 |  |              . ')' . $this->getPartialIndexSQL($index); | 
                                                            
                                    | 2360 |  |     } | 
                                                            
                                    | 2361 |  |  | 
                                                            
                                    | 2362 |  |     /** | 
                                                            
                                    | 2363 |  |      * Obtains DBMS specific SQL code portion needed to set an index | 
                                                                                
                                |  | @@ 2373-2385 (lines=13) @@ | 
                                                            
                                    | 2370 |  |      * | 
                                                            
                                    | 2371 |  |      * @throws \InvalidArgumentException | 
                                                            
                                    | 2372 |  |      */ | 
                                                            
                                    | 2373 |  |     public function getIndexDeclarationSQL($name, Index $index) | 
                                                            
                                    | 2374 |  |     { | 
                                                            
                                    | 2375 |  |         $columns = $index->getQuotedColumns($this); | 
                                                            
                                    | 2376 |  |         $name = new Identifier($name); | 
                                                            
                                    | 2377 |  |  | 
                                                            
                                    | 2378 |  |         if (count($columns) === 0) { | 
                                                            
                                    | 2379 |  |             throw new \InvalidArgumentException("Incomplete definition. 'columns' required."); | 
                                                            
                                    | 2380 |  |         } | 
                                                            
                                    | 2381 |  |  | 
                                                            
                                    | 2382 |  |         return $this->getCreateIndexSQLFlags($index) . 'INDEX ' . $name->getQuotedName($this) . ' (' | 
                                                            
                                    | 2383 |  |             . $this->getIndexFieldDeclarationListSQL($columns) | 
                                                            
                                    | 2384 |  |             . ')' . $this->getPartialIndexSQL($index); | 
                                                            
                                    | 2385 |  |     } | 
                                                            
                                    | 2386 |  |  | 
                                                            
                                    | 2387 |  |     /** | 
                                                            
                                    | 2388 |  |      * Obtains SQL code portion needed to create a custom column, |