Skip to content

[11.x] Support Optional Dimensions for vector Column Type#53316

Merged
taylorotwell merged 2 commits into
laravel:11.xfrom
akr4m:11.x
Oct 29, 2024
Merged

[11.x] Support Optional Dimensions for vector Column Type#53316
taylorotwell merged 2 commits into
laravel:11.xfrom
akr4m:11.x

Conversation

@akr4m
Copy link
Copy Markdown
Contributor

@akr4m akr4m commented Oct 27, 2024

The vector method to support adding a new vector column without specifying dimensions. The changes include:

  • Modified the vector method to handle cases where the $dimensions parameter is not provided or is null.
  • Ensures that the code gracefully defaults to an empty options array when dimensions are not defined, allowing for flexibility when creating vector columns.

These changes provide more flexibility in defining vector columns, making the dimensions parameter truly optional.

Comment thread src/Illuminate/Database/Schema/Blueprint.php Outdated
Comment thread src/Illuminate/Database/Schema/Blueprint.php Outdated
Comment thread src/Illuminate/Database/Schema/Blueprint.php
Comment thread src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php
Comment thread src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php
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.

3 participants