Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero index may be absent, when creating bread for a table with a lot of indexes #5892

Open
almakano opened this issue Oct 3, 2024 · 0 comments

Comments

@almakano
Copy link

almakano commented Oct 3, 2024

Laravel version

11.26.0

PHP version

8.3

Voyager version

1.8.0

Database

sqlite

Description

Change $indexes[0]['type'] to reset($indexes)['type'] to fix it
at src/Database/Schema/SchemaManager.php#L77

Steps to reproduce

Create table in sqlite database with many indexes, and id-key not the first one. And create bread for this table from /admin/bread/ url

Expected behavior

Creating bread without errors

Screenshots

No response

Additional context

No response

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

No branches or pull requests

1 participant