mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-12-22 09:40:23 -05:00
Update the blog foreign key so it uses a bigInteger to match the use of bigIncrements for users
This commit is contained in:
parent
ed380f804f
commit
2a88427c2f
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class AddBlogTable extends Migration
|
|||
{
|
||||
Schema::create('blog', function(Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('user_id')->unsigned();
|
||||
$table->bigInteger('user_id')->unsigned();
|
||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
$table->string('title')->nullable();
|
||||
$table->text('body')->nullable();
|
||||
|
|
Loading…
Reference in a new issue