Skip to content

Commit

Permalink
Merge pull request #28 from dreammonkey/feature/skip-columns-default
Browse files Browse the repository at this point in the history
add default [] for schema-rules.skip_columns to prevent errors when config is not published.
  • Loading branch information
Sairahcaz authored Aug 13, 2024
2 parents 8541205 + 1fecfc9 commit 573ea1b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
4 changes: 1 addition & 3 deletions src/Exceptions/ColumnDoesNotExistException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class ColumnDoesNotExistException extends Exception
{
}
class ColumnDoesNotExistException extends Exception {}
4 changes: 1 addition & 3 deletions src/Exceptions/MultipleTablesSuppliedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class MultipleTablesSuppliedException extends Exception
{
}
class MultipleTablesSuppliedException extends Exception {}
4 changes: 1 addition & 3 deletions src/Exceptions/TableDoesNotExistException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class TableDoesNotExistException extends Exception
{
}
class TableDoesNotExistException extends Exception {}
4 changes: 1 addition & 3 deletions src/Exceptions/UnsupportedDbDriverException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class UnsupportedDbDriverException extends Exception
{
}
class UnsupportedDbDriverException extends Exception {}
2 changes: 1 addition & 1 deletion src/Resolvers/BaseSchemaRulesResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function generate(): array
{
$tableColumns = $this->getColumnsDefinitionsFromTable();

$skip_columns = config('schema-rules.skip_columns');
$skip_columns = config('schema-rules.skip_columns', []);

$tableRules = [];
foreach ($tableColumns as $column) {
Expand Down

0 comments on commit 573ea1b

Please sign in to comment.