@@ -285,6 +285,10 @@ discard block |
||
285 | 285 | } |
286 | 286 | } |
287 | 287 | |
288 | + /** |
|
289 | + * @param string $sequenceName |
|
290 | + * @param string $newSequenceName |
|
291 | + */ |
|
288 | 292 | public function renameSequence($sequenceName, $newSequenceName) |
289 | 293 | { |
290 | 294 | $this->execute(sprintf('rename "%s" to "%s"', $sequenceName, $newSequenceName)); |
@@ -312,6 +316,9 @@ discard block |
||
312 | 316 | $this->execute($sql); |
313 | 317 | } |
314 | 318 | |
319 | + /** |
|
320 | + * @return string |
|
321 | + */ |
|
315 | 322 | public function getColumnComment($tableName, $columnName) |
316 | 323 | { |
317 | 324 | $sql = sprintf("select COMMENTS from ALL_COL_COMMENTS WHERE COLUMN_NAME = '%s' and TABLE_NAME = '%s'", |
@@ -925,6 +932,7 @@ discard block |
||
925 | 932 | * Gets the Oracle Index Definition for an Index object. |
926 | 933 | * |
927 | 934 | * @param \Phinx\Db\Table\Index $index Index |
935 | + * @param string $tableName |
|
928 | 936 | * @return string |
929 | 937 | */ |
930 | 938 | protected function getIndexSqlDefinition(Index $index, $tableName) |
@@ -953,6 +961,7 @@ discard block |
||
953 | 961 | * Gets the Oracle Foreign Key Definition for an ForeignKey object. |
954 | 962 | * |
955 | 963 | * @param \Phinx\Db\Table\ForeignKey $foreignKey |
964 | + * @param string $tableName |
|
956 | 965 | * @return string |
957 | 966 | */ |
958 | 967 | protected function getForeignKeySqlDefinition(ForeignKey $foreignKey, $tableName) |
@@ -1066,6 +1075,9 @@ discard block |
||
1066 | 1075 | $stmt->execute($vals); |
1067 | 1076 | } |
1068 | 1077 | |
1078 | + /** |
|
1079 | + * @param string $sequence |
|
1080 | + */ |
|
1069 | 1081 | protected function getNextValSequence($sequence) |
1070 | 1082 | { |
1071 | 1083 | $sql = "SELECT %s.NEXTVAL FROM DUAL"; |