Skip to content

Commit ec4e996

Browse files
committed
rename newly added migration files
1 parent 51be475 commit ec4e996

5 files changed

+4
-4
lines changed

database/migrations/2018_11_10_164802_add_title_column_to_messages_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AddTitleColumnToMessagesTable extends Migration
1414
public function up()
1515
{
1616
Schema::table('messages', function (Blueprint $table) {
17-
$table->varchar('title')->change();
17+
$table->string('title');
1818
});
1919
}
2020

database/migrations/2018_11_10_160722_add_is_read_column_to_conversations_table.php renamed to database/migrations/2018_11_10_170722_add_is_read_column_to_conversations_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AddIsReadColumnToConversationsTable extends Migration
1414
public function up()
1515
{
1616
Schema::table('conversations', function (Blueprint $table) {
17-
$table->boolean('is_read')->default(0)->change();
17+
$table->boolean('is_read')->default(0);
1818
});
1919
}
2020

database/migrations/2020_03_29_014907_make_user1_nullable_in_conversations_table.php renamed to database/migrations/2020_03_29_014907_make_user_one_nullable_in_conversations_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateConversationsTable extends Migration
7+
class MakeUserOneNullableInConversationsTable extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -14,7 +14,7 @@ class CreateConversationsTable extends Migration
1414
public function up()
1515
{
1616
Schema::table('conversations', function (Blueprint $table) {
17-
$table->integer('user_one')->nullable();
17+
$table->integer('user_one')->nullable()->change();
1818
});
1919
}
2020

0 commit comments

Comments
 (0)