Skip to content

Commit 741addf

Browse files
Update migrations.md (#9192)
1 parent c374962 commit 741addf

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

migrations.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,6 @@ The schema builder blueprint offers a variety of methods that correspond to the
446446
[tinyInteger](#column-method-tinyInteger)
447447
[tinyText](#column-method-tinyText)
448448
[unsignedBigInteger](#column-method-unsignedBigInteger)
449-
[unsignedDecimal](#column-method-unsignedDecimal)
450449
[unsignedInteger](#column-method-unsignedInteger)
451450
[unsignedMediumInteger](#column-method-unsignedMediumInteger)
452451
[unsignedSmallInteger](#column-method-unsignedSmallInteger)
@@ -525,9 +524,9 @@ The `decimal` method creates a `DECIMAL` equivalent column with the given precis
525524
<a name="column-method-double"></a>
526525
#### `double()` {.collection-method}
527526

528-
The `double` method creates a `DOUBLE` equivalent column with the given precision (total digits) and scale (decimal digits):
527+
The `double` method creates a `DOUBLE` equivalent column:
529528

530-
$table->double('amount', 8, 2);
529+
$table->double('amount');
531530

532531
<a name="column-method-enum"></a>
533532
#### `enum()` {.collection-method}
@@ -539,9 +538,9 @@ The `enum` method creates a `ENUM` equivalent column with the given valid values
539538
<a name="column-method-float"></a>
540539
#### `float()` {.collection-method}
541540

542-
The `float` method creates a `FLOAT` equivalent column with the given precision (total digits) and scale (decimal digits):
541+
The `float` method creates a `FLOAT` equivalent column with the given precision:
543542

544-
$table->float('amount', 8, 2);
543+
$table->float('amount', 53);
545544

546545
<a name="column-method-foreignId"></a>
547546
#### `foreignId()` {.collection-method}
@@ -869,13 +868,6 @@ The `unsignedBigInteger` method creates an `UNSIGNED BIGINT` equivalent column:
869868

870869
$table->unsignedBigInteger('votes');
871870

872-
<a name="column-method-unsignedDecimal"></a>
873-
#### `unsignedDecimal()` {.collection-method}
874-
875-
The `unsignedDecimal` method creates an `UNSIGNED DECIMAL` equivalent column with an optional precision (total digits) and scale (decimal digits):
876-
877-
$table->unsignedDecimal('amount', $precision = 8, $scale = 2);
878-
879871
<a name="column-method-unsignedInteger"></a>
880872
#### `unsignedInteger()` {.collection-method}
881873

0 commit comments

Comments
 (0)