mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-21 15:42:31 -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) {
|
Schema::create('blog', function(Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->increments('id');
|
||||||
$table->integer('user_id')->unsigned();
|
$table->bigInteger('user_id')->unsigned();
|
||||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||||
$table->string('title')->nullable();
|
$table->string('title')->nullable();
|
||||||
$table->text('body')->nullable();
|
$table->text('body')->nullable();
|
||||||
|
|
Loading…
Reference in a new issue