diff --git a/framework/core/migrations/2024_05_05_000001_convert_preferences_to_json_in_users.php b/framework/core/migrations/2024_05_05_000001_convert_preferences_to_json_in_users.php index bd00b285e7..5181c8558c 100644 --- a/framework/core/migrations/2024_05_05_000001_convert_preferences_to_json_in_users.php +++ b/framework/core/migrations/2024_05_05_000001_convert_preferences_to_json_in_users.php @@ -15,7 +15,7 @@ 'up' => function (Builder $schema) { $connection = $schema->getConnection(); $driver = $connection->getDriverName(); - + $preferences = $connection->getSchemaGrammar()->wrap('preferences'); if ($driver === 'pgsql') { @@ -49,7 +49,7 @@ 'down' => function (Builder $schema) { $connection = $schema->getConnection(); $driver = $connection->getDriverName(); - + $preferences = $connection->getSchemaGrammar()->wrap('preferences'); if ($driver === 'pgsql') { diff --git a/framework/core/migrations/2024_05_07_000001_convert_data_to_json_in_notifications.php b/framework/core/migrations/2024_05_07_000001_convert_data_to_json_in_notifications.php index fbcea9fe42..3ecc2842ab 100644 --- a/framework/core/migrations/2024_05_07_000001_convert_data_to_json_in_notifications.php +++ b/framework/core/migrations/2024_05_07_000001_convert_data_to_json_in_notifications.php @@ -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([ @@ -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');