Permalink
Browse files

Adding support for bigint pk

  • Loading branch information...
1 parent 1c3ba95 commit d7e4d2882a2e687e4779d143a5138d528d8debac @marcanuy committed Feb 17, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/migrations/2014_01_19_151755_create_popularity_stats_table.php
View
5 src/migrations/2014_01_19_151755_create_popularity_stats_table.php
@@ -14,8 +14,9 @@ public function up()
{
Schema::create('popularity_stats', function(Blueprint $table)
{
- $table->increments('id');
- $table->morphs('trackable');
+ $table->bigIncrements('id');
+ $table->bigInteger('trackable_id')->unsigned();
+ $table->string('trackable_type');
$table->integer('one_day_stats')->default(0);
$table->integer('seven_days_stats')->default(0);
$table->integer('thirty_days_stats')->default(0);

0 comments on commit d7e4d28

Please sign in to comment.