| @@ -99,7 +99,7 @@ | ||
| 99 | 99 | * | 
| 100 | 100 | * @param InputInterface $input | 
| 101 | 101 | * @param OutputInterface $output | 
| 102 | - * @return mixed | |
| 102 | + * @return string | |
| 103 | 103 | * @throws \Exception | 
| 104 | 104 | */ | 
| 105 | 105 | protected function getMigrationPath(InputInterface $input, OutputInterface $output) | 
| @@ -1118,7 +1118,7 @@ | ||
| 1118 | 1118 | |
| 1119 | 1119 | /** | 
| 1120 | 1120 | * Returns MySQL column types (inherited and MySQL specified). | 
| 1121 | - * @return array | |
| 1121 | + * @return string[] | |
| 1122 | 1122 | */ | 
| 1123 | 1123 | public function getColumnTypes() | 
| 1124 | 1124 |      { | 
| @@ -340,6 +340,9 @@ discard block | ||
| 340 | 340 | $this->execute($sql); | 
| 341 | 341 | } | 
| 342 | 342 | |
| 343 | + /** | |
| 344 | + * @return string | |
| 345 | + */ | |
| 343 | 346 | public function getColumnComment($tableName, $columnName) | 
| 344 | 347 |      { | 
| 345 | 348 |          $sql = sprintf("SELECT cast(extended_properties.[value] as nvarchar(4000)) comment | 
| @@ -464,6 +467,11 @@ discard block | ||
| 464 | 467 | ); | 
| 465 | 468 | } | 
| 466 | 469 | |
| 470 | + /** | |
| 471 | + * @param string $tableName | |
| 472 | + * @param string $columnName | |
| 473 | + * @param string $newColumnName | |
| 474 | + */ | |
| 467 | 475 | protected function renameDefault($tableName, $columnName, $newColumnName) | 
| 468 | 476 |      { | 
| 469 | 477 |          $oldConstraintName = "DF_{$tableName}_{$columnName}"; | 
| @@ -481,6 +489,9 @@ discard block | ||
| 481 | 489 | )); | 
| 482 | 490 | } | 
| 483 | 491 | |
| 492 | + /** | |
| 493 | + * @param string $tableName | |
| 494 | + */ | |
| 484 | 495 | public function changeDefault($tableName, Column $newColumn) | 
| 485 | 496 |      { | 
| 486 | 497 |          $constraintName = "DF_{$tableName}_{$newColumn->getName()}"; | 
| @@ -555,6 +566,10 @@ discard block | ||
| 555 | 566 | ); | 
| 556 | 567 | } | 
| 557 | 568 | |
| 569 | + /** | |
| 570 | + * @param string $tableName | |
| 571 | + * @param string $columnName | |
| 572 | + */ | |
| 558 | 573 | protected function dropDefaultConstraint($tableName, $columnName) | 
| 559 | 574 |      { | 
| 560 | 575 | $defaultConstraint = $this->getDefaultConstraint($tableName, $columnName); | 
| @@ -1069,6 +1084,7 @@ discard block | ||
| 1069 | 1084 | * Gets the SqlServer Index Definition for an Index object. | 
| 1070 | 1085 | * | 
| 1071 | 1086 | * @param Index $index Index | 
| 1087 | + * @param string $tableName | |
| 1072 | 1088 | * @return string | 
| 1073 | 1089 | */ | 
| 1074 | 1090 | protected function getIndexSqlDefinition(Index $index, $tableName) | 
| @@ -1097,6 +1113,7 @@ discard block | ||
| 1097 | 1113 | * Gets the SqlServer Foreign Key Definition for an ForeignKey object. | 
| 1098 | 1114 | * | 
| 1099 | 1115 | * @param ForeignKey $foreignKey | 
| 1116 | + * @param string $tableName | |
| 1100 | 1117 | * @return string | 
| 1101 | 1118 | */ | 
| 1102 | 1119 | protected function getForeignKeySqlDefinition(ForeignKey $foreignKey, $tableName) | 
| @@ -272,7 +272,7 @@ discard block | ||
| 272 | 272 | /** | 
| 273 | 273 | * Gets an array of foreign keys waiting to be commited. | 
| 274 | 274 | * | 
| 275 | - * @return array|ForeignKey[] | |
| 275 | + * @return ForeignKey[] | |
| 276 | 276 | */ | 
| 277 | 277 | public function getForeignKeys() | 
| 278 | 278 |      { | 
| @@ -322,7 +322,7 @@ discard block | ||
| 322 | 322 | * | 
| 323 | 323 | * Valid options can be: limit, default, null, precision or scale. | 
| 324 | 324 | * | 
| 325 | - * @param string|Column $columnName Column Name | |
| 325 | + * @param string $columnName Column Name | |
| 326 | 326 | * @param string $type Column Type | 
| 327 | 327 | * @param array $options Column Options | 
| 328 | 328 | * @throws \RuntimeException | 
| @@ -478,7 +478,6 @@ discard block | ||
| 478 | 478 | * Checks to see if an index exists. | 
| 479 | 479 | * | 
| 480 | 480 | * @param string|array $columns Columns | 
| 481 | - * @param array $options Options | |
| 482 | 481 | * @return boolean | 
| 483 | 482 | */ | 
| 484 | 483 | public function hasIndex($columns) | 
| @@ -213,7 +213,7 @@ | ||
| 213 | 213 | * | 
| 214 | 214 | * @param string $key | 
| 215 | 215 | * @param string $value | 
| 216 | - * @return object | |
| 216 | + * @return TextWrapper | |
| 217 | 217 | */ | 
| 218 | 218 | public function setOption($key, $value) | 
| 219 | 219 |      { |