Completed
Push — master ( 912e26...8f493e )
by José
01:58
created
src/Phinx/Db/Adapter/SqlServerAdapter.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -332,6 +332,9 @@  discard block
 block discarded – undo
332 332
         $this->execute($sql);
333 333
     }
334 334
 
335
+    /**
336
+     * @return string
337
+     */
335 338
     public function getColumnComment($tableName, $columnName)
336 339
     {
337 340
         $sql = sprintf("SELECT cast(extended_properties.[value] as nvarchar(4000)) comment
@@ -456,6 +459,11 @@  discard block
 block discarded – undo
456 459
         );
457 460
     }
458 461
 
462
+    /**
463
+     * @param string $tableName
464
+     * @param string $columnName
465
+     * @param string $newColumnName
466
+     */
459 467
     protected function renameDefault($tableName, $columnName, $newColumnName)
460 468
     {
461 469
         $oldConstraintName = "DF_{$tableName}_{$columnName}";
@@ -473,6 +481,9 @@  discard block
 block discarded – undo
473 481
         ));
474 482
     }
475 483
 
484
+    /**
485
+     * @param string $tableName
486
+     */
476 487
     public function changeDefault($tableName, Column $newColumn)
477 488
     {
478 489
         $constraintName = "DF_{$tableName}_{$newColumn->getName()}";
@@ -547,6 +558,10 @@  discard block
 block discarded – undo
547 558
         );
548 559
     }
549 560
 
561
+    /**
562
+     * @param string $tableName
563
+     * @param string|null $columnName
564
+     */
550 565
     protected function dropDefaultConstraint($tableName, $columnName)
551 566
     {
552 567
         $defaultConstraint = $this->getDefaultConstraint($tableName, $columnName);
@@ -1055,6 +1070,7 @@  discard block
 block discarded – undo
1055 1070
      * Gets the SqlServer Index Definition for an Index object.
1056 1071
      *
1057 1072
      * @param \Phinx\Db\Table\Index $index Index
1073
+     * @param string|null $tableName
1058 1074
      * @return string
1059 1075
      */
1060 1076
     protected function getIndexSqlDefinition(Index $index, $tableName)
@@ -1083,6 +1099,7 @@  discard block
 block discarded – undo
1083 1099
      * Gets the SqlServer Foreign Key Definition for an ForeignKey object.
1084 1100
      *
1085 1101
      * @param \Phinx\Db\Table\ForeignKey $foreignKey
1102
+     * @param string|null $tableName
1086 1103
      * @return string
1087 1104
      */
1088 1105
     protected function getForeignKeySqlDefinition(ForeignKey $foreignKey, $tableName)
Please login to merge, or discard this patch.