Reputation: 85
How can I do a biginteger type in a table row with Schema builder in Laravel 4.
Thx for all.
Upvotes: 2
Views: 3777
Reputation: 87719
bigInteger() is present in Laravel 4's Schema Builder, so your migration should look like this:
public function up()
{
Schema::create('users', function($table)
{
$table->increments('id');
$table->bigInteger('human_lives');
});
}
Upvotes: 5