Add decimal schema on docs
Signed-off-by: Purwandi <free6300@gmail.com>
This commit is contained in:
parent
2c6ed23b45
commit
c667788be7
|
@ -62,6 +62,7 @@ ## Adding Columns
|
||||||
`$table->string('name', 100);` | VARCHAR equivalent with a length
|
`$table->string('name', 100);` | VARCHAR equivalent with a length
|
||||||
`$table->integer('votes');` | INTEGER equivalent to the table
|
`$table->integer('votes');` | INTEGER equivalent to the table
|
||||||
`$table->float('amount');` | FLOAT equivalent to the table
|
`$table->float('amount');` | FLOAT equivalent to the table
|
||||||
|
`$table->decimal('amount', 5, 2);` | DECIMAL equivalent with a precision and scale
|
||||||
`$table->boolean('confirmed');` | BOOLEAN equivalent to the table
|
`$table->boolean('confirmed');` | BOOLEAN equivalent to the table
|
||||||
`$table->date('created_at');` | DATE equivalent to the table
|
`$table->date('created_at');` | DATE equivalent to the table
|
||||||
`$table->timestamp('added_on');` | TIMESTAMP equivalent to the table
|
`$table->timestamp('added_on');` | TIMESTAMP equivalent to the table
|
||||||
|
|
Loading…
Reference in New Issue