Be sure to make email nullable

This commit is contained in:
James Brooks
2017-01-04 19:46:45 +00:00
parent f1ac1122b9
commit f03d55783c

View File

@@ -23,6 +23,7 @@ class AlterTableSubscribersAddPhoneNumberSlackColumns extends Migration
public function up()
{
Schema::table('subscribers', function (Blueprint $table) {
$table->string('email')->nullable()->default(null)->change();
$table->string('phone_number')->nullable()->default(null)->after('verify_code');
$table->string('slack_webhook_url')->nullable()->default(null)->after('phone_number');
});