Browse Source

Merge pull request #970 from franzliedke/patch-26

[Docs] Schema default helper
Taylor Otwell 12 years ago
parent
commit
a73a6fb6c4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      laravel/documentation/database/schema.md

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

@@ -69,6 +69,7 @@ Command  | Description
 `$table->text('description');`  |  TEXT equivalent to the table
 `$table->text('description');`  |  TEXT equivalent to the table
 `$table->blob('data');`  |  BLOB equivalent to the table
 `$table->blob('data');`  |  BLOB equivalent to the table
 `->nullable()`  |  Designate that the column allows NULL values
 `->nullable()`  |  Designate that the column allows NULL values
+`->default($value)`  |  Declare a default value for a column
 
 
 > **Note:** Laravel's "boolean" type maps to a small integer column on all database systems.
 > **Note:** Laravel's "boolean" type maps to a small integer column on all database systems.