Skip to content

Commit 4ce58e0

Browse files
committed
Apply fixes from StyleCI
1 parent 3b45d1e commit 4ce58e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

framework/core/migrations/2024_05_05_000001_convert_preferences_to_json_in_users.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'up' => function (Builder $schema) {
1616
$connection = $schema->getConnection();
1717
$driver = $connection->getDriverName();
18-
18+
1919
$preferences = $connection->getSchemaGrammar()->wrap('preferences');
2020

2121
if ($driver === 'pgsql') {
@@ -49,7 +49,7 @@
4949
'down' => function (Builder $schema) {
5050
$connection = $schema->getConnection();
5151
$driver = $connection->getDriverName();
52-
52+
5353
$preferences = $connection->getSchemaGrammar()->wrap('preferences');
5454

5555
if ($driver === 'pgsql') {

framework/core/migrations/2024_05_07_000001_convert_data_to_json_in_notifications.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
if ($connection instanceof MariaDbConnection) {
2929
$connection->table('notifications')->update([
30-
'data_json' => $connection->raw("IF(JSON_VALID(CONVERT(data USING utf8mb4)), CONVERT(data USING utf8mb4), NULL)"),
30+
'data_json' => $connection->raw('IF(JSON_VALID(CONVERT(data USING utf8mb4)), CONVERT(data USING utf8mb4), NULL)'),
3131
]);
3232
} elseif ($driver === 'mysql') {
3333
$connection->table('notifications')->update([
@@ -48,7 +48,7 @@
4848
'down' => function (Builder $schema) {
4949
$connection = $schema->getConnection();
5050
$driver = $connection->getDriverName();
51-
51+
5252
if ($driver === 'pgsql') {
5353
$notifications = $connection->getSchemaGrammar()->wrapTable('notifications');
5454
$data = $connection->getSchemaGrammar()->wrap('data');

0 commit comments

Comments
 (0)