質問編集履歴
1
db情報の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -33,6 +33,51 @@
|
|
33
33
|
|
34
34
|

|
35
35
|
|
36
|
-
|
36
|
+
2019_05_03_000001_create_customer_columnsの内容は以下のようになっています。
|
37
37
|
|
38
|
+
```ここに言語を入力
|
39
|
+
<?php
|
40
|
+
|
41
|
+
use Illuminate\Database\Migrations\Migration;
|
42
|
+
use Illuminate\Database\Schema\Blueprint;
|
43
|
+
use Illuminate\Support\Facades\Schema;
|
44
|
+
|
45
|
+
class CreateCustomerColumns extends Migration
|
46
|
+
{
|
47
|
+
/**
|
48
|
+
* Run the migrations.
|
49
|
+
*
|
50
|
+
* @return void
|
51
|
+
*/
|
52
|
+
public function up()
|
53
|
+
{
|
54
|
+
Schema::table('users', function (Blueprint $table) {
|
55
|
+
$table->string('stripe_id')->nullable()->index();
|
56
|
+
$table->string('pm_type')->nullable();
|
57
|
+
$table->string('pm_last_four', 4)->nullable();
|
58
|
+
$table->timestamp('trial_ends_at')->nullable();
|
59
|
+
});
|
60
|
+
}
|
61
|
+
|
62
|
+
/**
|
63
|
+
* Reverse the migrations.
|
64
|
+
*
|
65
|
+
* @return void
|
66
|
+
*/
|
67
|
+
public function down()
|
68
|
+
{
|
69
|
+
Schema::table('users', function (Blueprint $table) {
|
70
|
+
$table->dropColumn([
|
71
|
+
'stripe_id',
|
72
|
+
'pm_type',
|
73
|
+
'pm_last_four',
|
74
|
+
'trial_ends_at',
|
75
|
+
]);
|
76
|
+
});
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
```
|
81
|
+
|
82
|
+
ちなみに、ローカル環境ではきちんとmigrateできます。
|
38
83
|
このエラーの解決方法をご存知の方がいれば教えていただけないでしょうか。
|