From 5982ebcb030864454262943d2ed6154060444b00 Mon Sep 17 00:00:00 2001 From: Hafez Divandari Date: Wed, 13 Dec 2023 00:30:59 +0330 Subject: [PATCH] Update migrations.md --- migrations.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/migrations.md b/migrations.md index d9e6c666869..ac110593aad 100644 --- a/migrations.md +++ b/migrations.md @@ -446,7 +446,6 @@ The schema builder blueprint offers a variety of methods that correspond to the [tinyInteger](#column-method-tinyInteger) [tinyText](#column-method-tinyText) [unsignedBigInteger](#column-method-unsignedBigInteger) -[unsignedDecimal](#column-method-unsignedDecimal) [unsignedInteger](#column-method-unsignedInteger) [unsignedMediumInteger](#column-method-unsignedMediumInteger) [unsignedSmallInteger](#column-method-unsignedSmallInteger) @@ -525,9 +524,9 @@ The `decimal` method creates a `DECIMAL` equivalent column with the given precis #### `double()` {.collection-method} -The `double` method creates a `DOUBLE` equivalent column with the given precision (total digits) and scale (decimal digits): +The `double` method creates a `DOUBLE` equivalent column: - $table->double('amount', 8, 2); + $table->double('amount'); #### `enum()` {.collection-method} @@ -539,9 +538,9 @@ The `enum` method creates a `ENUM` equivalent column with the given valid values #### `float()` {.collection-method} -The `float` method creates a `FLOAT` equivalent column with the given precision (total digits) and scale (decimal digits): +The `float` method creates a `FLOAT` equivalent column with the given precision: - $table->float('amount', 8, 2); + $table->float('amount', 53); #### `foreignId()` {.collection-method} @@ -869,13 +868,6 @@ The `unsignedBigInteger` method creates an `UNSIGNED BIGINT` equivalent column: $table->unsignedBigInteger('votes'); - -#### `unsignedDecimal()` {.collection-method} - -The `unsignedDecimal` method creates an `UNSIGNED DECIMAL` equivalent column with an optional precision (total digits) and scale (decimal digits): - - $table->unsignedDecimal('amount', $precision = 8, $scale = 2); - #### `unsignedInteger()` {.collection-method}