Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Nov 13, 2024
1 parent 3b45d1e commit 4ce58e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'up' => function (Builder $schema) {
$connection = $schema->getConnection();
$driver = $connection->getDriverName();

$preferences = $connection->getSchemaGrammar()->wrap('preferences');

if ($driver === 'pgsql') {
Expand Down Expand Up @@ -49,7 +49,7 @@
'down' => function (Builder $schema) {
$connection = $schema->getConnection();
$driver = $connection->getDriverName();

$preferences = $connection->getSchemaGrammar()->wrap('preferences');

if ($driver === 'pgsql') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

if ($connection instanceof MariaDbConnection) {
$connection->table('notifications')->update([
'data_json' => $connection->raw("IF(JSON_VALID(CONVERT(data USING utf8mb4)), CONVERT(data USING utf8mb4), NULL)"),
'data_json' => $connection->raw('IF(JSON_VALID(CONVERT(data USING utf8mb4)), CONVERT(data USING utf8mb4), NULL)'),
]);
} elseif ($driver === 'mysql') {
$connection->table('notifications')->update([
Expand All @@ -48,7 +48,7 @@
'down' => function (Builder $schema) {
$connection = $schema->getConnection();
$driver = $connection->getDriverName();

if ($driver === 'pgsql') {
$notifications = $connection->getSchemaGrammar()->wrapTable('notifications');
$data = $connection->getSchemaGrammar()->wrap('data');
Expand Down

0 comments on commit 4ce58e0

Please sign in to comment.