Skip to content

Commit 0265253

Browse files
Adds ULID method to migration section (laravel#8221)
1 parent e07cb24 commit 0265253

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

migrations.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ The schema builder blueprint offers a variety of methods that correspond to the
375375
[float](#column-method-float)
376376
[foreignId](#column-method-foreignId)
377377
[foreignIdFor](#column-method-foreignIdFor)
378+
[foreignUlid](#column-method-foreignUlid)
378379
[foreignUuid](#column-method-foreignUuid)
379380
[geometryCollection](#column-method-geometryCollection)
380381
[geometry](#column-method-geometry)
@@ -423,6 +424,7 @@ The schema builder blueprint offers a variety of methods that correspond to the
423424
[unsignedSmallInteger](#column-method-unsignedSmallInteger)
424425
[unsignedTinyInteger](#column-method-unsignedTinyInteger)
425426
[uuidMorphs](#column-method-uuidMorphs)
427+
[ulid](#column-method-ulid)
426428
[uuid](#column-method-uuid)
427429
[year](#column-method-year)
428430

@@ -526,6 +528,13 @@ The `foreignIdFor` method adds a `{column}_id UNSIGNED BIGINT` equivalent column
526528

527529
$table->foreignIdFor(User::class);
528530

531+
<a name="column-method-foreignUlid"></a>
532+
#### `foreignUlid()` {.collection-method}
533+
534+
The `foreignUlid` method creates a `ULID` equivalent column:
535+
536+
$table->foreignUlid('user_id');
537+
529538
<a name="column-method-foreignUuid"></a>
530539
#### `foreignUuid()` {.collection-method}
531540

@@ -866,6 +875,13 @@ This method is intended to be used when defining the columns necessary for a pol
866875

867876
$table->uuidMorphs('taggable');
868877

878+
<a name="column-method-ulid"></a>
879+
#### `ulid()` {.collection-method}
880+
881+
The `ulid` method creates a `ULID` equivalent column:
882+
883+
$table->ulid('id');
884+
869885
<a name="column-method-uuid"></a>
870886
#### `uuid()` {.collection-method}
871887

0 commit comments

Comments
 (0)