Browse Source

Merge pull request #1016 from purwandi/develop

Add decimal schema on docs
Taylor Otwell 12 years ago
parent
commit
4d25f50f4b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      laravel/documentation/database/schema.md

+ 1 - 0
laravel/documentation/database/schema.md

@@ -62,6 +62,7 @@ Command  | Description
 `$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