Skip to content

Commit c667788

Browse files
committed
Add decimal schema on docs
Signed-off-by: Purwandi <free6300@gmail.com>
1 parent 2c6ed23 commit c667788

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)