Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant