[GH-ISSUE #1611] DB errors #886

Closed
opened 2026-02-26 02:34:32 +03:00 by kerem · 6 comments
Owner

Originally created by @henrym94 on GitHub (Dec 2, 2022).
Original GitHub issue: https://github.com/koel/koel/issues/1611

When i run "php artisan koel:init"

Next Illuminate\Database\QueryException: SQLSTATE[42000]: Syntax error or access violation: 1074 Column length too big for column 'name' (max = 16383);

how can i fix this? thanks

Originally created by @henrym94 on GitHub (Dec 2, 2022). Original GitHub issue: https://github.com/koel/koel/issues/1611 When i run "php artisan koel:init" Next Illuminate\Database\QueryException: SQLSTATE[42000]: Syntax error or access violation: 1074 Column length too big for column 'name' (max = 16383); how can i fix this? thanks
kerem closed this issue 2026-02-26 02:34:32 +03:00
Author
Owner

@nebulade commented on GitHub (Dec 3, 2022):

Was just about to report this as well. In our case this is on mysql v8.
It seems to be hitting https://github.com/koel/koel/blob/master/database/migrations/2021_12_06_164648_increase_string_columns_length.php#L16 although this has not changed since a long time, so maybe some dependency update causes this?

<!-- gh-comment-id:1336141508 --> @nebulade commented on GitHub (Dec 3, 2022): Was just about to report this as well. In our case this is on mysql v8. It seems to be hitting https://github.com/koel/koel/blob/master/database/migrations/2021_12_06_164648_increase_string_columns_length.php#L16 although this has not changed since a long time, so maybe some dependency update causes this?
Author
Owner

@jSML4ThWwBID69YC commented on GitHub (Dec 4, 2022):

Here too.

Running php artisan koel:init --no-assets

Next Illuminate\Database\QueryException: SQLSTATE[42000]: Syntax error or access violation: 1074 Column length too big for column 'name' (max = 16383); use BLOB or TEXT instead (SQL: ALTER TABLE artists CHANGE name name VARCHAR(65504) CHA
RACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`) in /apps/koel/vendor/laravel/framework/src/Illuminate/Database/Connection.php:759

I'm using Galera on MariaDB 10.6.
The issue started with v6.8.2 and exists in v6.8.3. Version 6.8.1 works fine.

<!-- gh-comment-id:1336307086 --> @jSML4ThWwBID69YC commented on GitHub (Dec 4, 2022): Here too. Running _php artisan koel:init --no-assets_ ``` Next Illuminate\Database\QueryException: SQLSTATE[42000]: Syntax error or access violation: 1074 Column length too big for column 'name' (max = 16383); use BLOB or TEXT instead (SQL: ALTER TABLE artists CHANGE name name VARCHAR(65504) CHA RACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`) in /apps/koel/vendor/laravel/framework/src/Illuminate/Database/Connection.php:759 ``` I'm using Galera on MariaDB 10.6. The issue started with v6.8.2 and exists in v6.8.3. Version 6.8.1 works fine.
Author
Owner

@henrym94 commented on GitHub (Dec 4, 2022):

@phanan

<!-- gh-comment-id:1336361946 --> @henrym94 commented on GitHub (Dec 4, 2022): @phanan
Author
Owner

@phanan commented on GitHub (Dec 4, 2022):

Looking into it.

<!-- gh-comment-id:1336392228 --> @phanan commented on GitHub (Dec 4, 2022): Looking into it.
Author
Owner

@phanan commented on GitHub (Dec 4, 2022):

Fixed (I think) and released in v6.8.4. Thanks everyone for reporting the issue :)

<!-- gh-comment-id:1336402629 --> @phanan commented on GitHub (Dec 4, 2022): Fixed (I think) and released in v6.8.4. Thanks everyone for reporting the issue :)
Author
Owner

@nebulade commented on GitHub (Dec 5, 2022):

Thanks for the quick fix, I can confirm it is resolved for us.

<!-- gh-comment-id:1337069327 --> @nebulade commented on GitHub (Dec 5, 2022): Thanks for the quick fix, I can confirm it is resolved for us.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#886
No description provided.