質問編集履歴
1
マイグレーションファイルの中身を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -73,3 +73,67 @@
|
|
73
73
|
|
74
74
|
|
75
75
|
ここにより詳細な情報を記載してください。
|
76
|
+
|
77
|
+
<?php
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
use Illuminate\Support\Facades\Schema;
|
82
|
+
|
83
|
+
use Illuminate\Database\Schema\Blueprint;
|
84
|
+
|
85
|
+
use Illuminate\Database\Migrations\Migration;
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
class CreateTasksTable extends Migration
|
90
|
+
|
91
|
+
{
|
92
|
+
|
93
|
+
/**
|
94
|
+
|
95
|
+
* Run the migrations.
|
96
|
+
|
97
|
+
*
|
98
|
+
|
99
|
+
* @return void
|
100
|
+
|
101
|
+
*/
|
102
|
+
|
103
|
+
public function up()
|
104
|
+
|
105
|
+
{
|
106
|
+
|
107
|
+
Schema::create('tasks', function (Blueprint $table) {
|
108
|
+
|
109
|
+
$table->increments('id');
|
110
|
+
|
111
|
+
$table->string('content');
|
112
|
+
|
113
|
+
$table->timestamps();
|
114
|
+
|
115
|
+
});
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
/**
|
122
|
+
|
123
|
+
* Reverse the migrations.
|
124
|
+
|
125
|
+
*
|
126
|
+
|
127
|
+
* @return void
|
128
|
+
|
129
|
+
*/
|
130
|
+
|
131
|
+
public function down()
|
132
|
+
|
133
|
+
{
|
134
|
+
|
135
|
+
Schema::dropIfExists('tasks');
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
}
|