質問編集履歴
1
修正用ファイルの内容追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -55,6 +55,40 @@
|
|
55
55
|
}
|
56
56
|
}
|
57
57
|
```
|
58
|
+
```2023_09_26_204941_modify_users_table.php
|
59
|
+
<?php
|
60
|
+
|
61
|
+
use Illuminate\Database\Migrations\Migration;
|
62
|
+
use Illuminate\Database\Schema\Blueprint;
|
63
|
+
use Illuminate\Support\Facades\Schema;
|
64
|
+
|
65
|
+
class ModifyUsersTable extends Migration
|
66
|
+
{
|
67
|
+
/**
|
68
|
+
* Run the migrations.
|
69
|
+
*
|
70
|
+
* @return void
|
71
|
+
*/
|
72
|
+
public function up()
|
73
|
+
{
|
74
|
+
Schema::table('users', function (Blueprint $table) {
|
75
|
+
$table->string('password')->nullable()->change();
|
76
|
+
});
|
77
|
+
}
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Reverse the migrations.
|
81
|
+
*
|
82
|
+
* @return void
|
83
|
+
*/
|
84
|
+
public function down()
|
85
|
+
{
|
86
|
+
Schema::table('users', function (Blueprint $table) {
|
87
|
+
//
|
88
|
+
});
|
89
|
+
}
|
90
|
+
}
|
91
|
+
```
|
58
92
|
|
59
93
|
### 試したこと
|
60
94
|
|