Skip to content

Commit 738b7ed

Browse files
committed
Better naming
1 parent 49f2a11 commit 738b7ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Schema/Blueprint/ModifiesIndexes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trait ModifiesIndexes
1515
*/
1616
public function shardKey($columns)
1717
{
18-
return $this->indexCommand('shardKey', $columns, 'shardKeyName');
18+
return $this->indexCommand('shardKey', $columns, 'shardKeyDummyName');
1919
}
2020

2121
/**
@@ -25,7 +25,7 @@ public function shardKey($columns)
2525
*/
2626
public function sortKey($columns, $direction = 'asc')
2727
{
28-
$command = $this->indexCommand('sortKey', $columns, 'sortKeyName');
28+
$command = $this->indexCommand('sortKey', $columns, 'sortKeyDummyName');
2929
$command->direction = $direction;
3030

3131
return $command;

src/Schema/Grammar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ protected function columnizeWithDirection(array $columns, string $direction)
204204

205205
return implode(', ', array_map(function ($column) use ($direction) {
206206
if (is_array($column)) {
207-
throw new InvalidArgumentException('You must set the direction for each key column or use the second parameter to set the direction for all key columns');
207+
throw new InvalidArgumentException('You must set the direction for each sort key column or use the second parameter to set the direction for all sort key columns');
208208
}
209209

210210
return $column.' '.$direction;

0 commit comments

Comments
 (0)