Skip to content

Add support for MySQL 9#495

Draft
timacdonald wants to merge 3 commits into1.xfrom
mysql-9
Draft

Add support for MySQL 9#495
timacdonald wants to merge 3 commits into1.xfrom
mysql-9

Conversation

@timacdonald
Copy link
Copy Markdown
Member

No description provided.

@timacdonald timacdonald force-pushed the mysql-9 branch 5 times, most recently from 20408b5 to a3d40ed Compare March 19, 2026 01:22
DB_PASSWORD: password
DB_COLLATION: utf8mb4_unicode_ci

mysql-9:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test against mysql 9 specifically

Comment thread src/Pulse.php
use UnitEnum;

use function Illuminate\Support\enum_value;
use function Laravel\Pulse\Support\enum_value;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was introduced in another PR but the tests were failing before we merged it. I've backported the functionality.

'components' => [],
])
->assertOk();
expect(Route::getRoutes()->get('POST')[ltrim(livewireUpdateEndpoint(), '/')]->gatherMiddleware())
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Livewire has changed a lot of internals. I've made this test more of a unit test. Isn't 100, but should do the trick

->throw()
->output();
[$firstEntryKey, $lastEntryKey] = collect(explode("\n", $output))->only([17, 21])->values();
$lines = collect(explode("\n", $output));
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redis has changed its output format.

Comment thread tests/Pest.php
Gate::define('viewPulse', fn ($user = null) => true);
Config::set('pulse.ingest.trim.lottery', [1, 1]);
Config::set([
'database.redis.options.prefix' => 'laravel_database_',
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Laravel 13 has changed the default key. Setting it to stick to the original.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant