Skip to content

Commit dde9f07

Browse files
authored
Add new vector method to migrations (#10007)
add dimensions missing parameter to vector revert whitespace changes
1 parent 1e8496c commit dde9f07

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

migrations.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ The schema builder blueprint offers a variety of methods that correspond to the
458458
[uuidMorphs](#column-method-uuidMorphs)
459459
[ulid](#column-method-ulid)
460460
[uuid](#column-method-uuid)
461+
[vector](#column-method-vector)
461462
[year](#column-method-year)
462463

463464
</div>
@@ -918,6 +919,13 @@ The `uuid` method creates a `UUID` equivalent column:
918919

919920
$table->uuid('id');
920921

922+
<a name="column-method-vector"></a>
923+
#### `vector()` {.collection-method}
924+
925+
The `vector` method creates a `vector` equivalent column:
926+
927+
$table->vector('embedding', dimensions: 100);
928+
921929
<a name="column-method-year"></a>
922930
#### `year()` {.collection-method}
923931

0 commit comments

Comments
 (0)