Skip to content

Commit 4d25f50

Browse files
committed
Merge pull request laravel#1016 from purwandi/develop
Add decimal schema on docs
2 parents 29a4ac2 + c667788 commit 4d25f50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

laravel/documentation/database/schema.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Command | Description
6262
`$table->string('name', 100);` | VARCHAR equivalent with a length
6363
`$table->integer('votes');` | INTEGER equivalent to the table
6464
`$table->float('amount');` | FLOAT equivalent to the table
65+
`$table->decimal('amount', 5, 2);` | DECIMAL equivalent with a precision and scale
6566
`$table->boolean('confirmed');` | BOOLEAN equivalent to the table
6667
`$table->date('created_at');` | DATE equivalent to the table
6768
`$table->timestamp('added_on');` | TIMESTAMP equivalent to the table

0 commit comments

Comments
 (0)