Skip to content

Commit 0e30d97

Browse files
BenQodermusonza
authored andcommitted
Fixing Issue Faced When Migrating Also Can Be Seen On #153 (#154)
1 parent a3ffc22 commit 0e30d97

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

database/migrations/create_chat_tables.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public function up()
3939
Schema::create('mc_messages', function (Blueprint $table) {
4040
$table->bigIncrements('id');
4141
$table->text('body');
42-
$table->integer('conversation_id')->unsignedBigIntegers();
43-
$table->integer('user_id')->unsignedBigIntegers();
42+
$table->bigInteger('conversation_id')->unsigned();
43+
$table->bigInteger('user_id')->unsigned();
4444
$table->string('type')->default('text');
4545
$table->timestamps();
4646

@@ -56,8 +56,8 @@ public function up()
5656
});
5757

5858
Schema::create('mc_conversation_user', function (Blueprint $table) {
59-
$table->integer('user_id')->unsignedBigIntegers();
60-
$table->integer('conversation_id')->unsignedBigIntegers();
59+
$table->bigInteger('user_id')->unsigned();
60+
$table->bigInteger('conversation_id')->unsigned();
6161
$table->primary(['user_id', 'conversation_id']);
6262
$table->timestamps();
6363

@@ -73,9 +73,9 @@ public function up()
7373

7474
Schema::create('mc_message_notification', function (Blueprint $table) {
7575
$table->bigIncrements('id');
76-
$table->integer('message_id')->unsignedBigIntegers();
77-
$table->integer('conversation_id')->unsignedBigIntegers();
78-
$table->integer('user_id')->unsignedBigIntegers();
76+
$table->bigInteger('message_id')->unsigned();
77+
$table->bigInteger('conversation_id')->unsigned();
78+
$table->bigInteger('user_id')->unsigned();
7979
$table->boolean('is_seen')->default(false);
8080
$table->boolean('is_sender')->default(false);
8181
$table->boolean('flagged')->default(false);

0 commit comments

Comments
 (0)