Created
May 6, 2020 21:58
-
-
Save nasrulhazim/f441622b8ae05adca8d622c8f1193e5f to your computer and use it in GitHub Desktop.
Webhook Migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
class CreateWebhookCallsTable extends Migration | |
{ | |
public function up() | |
{ | |
Schema::create('webhook_calls', function (Blueprint $table) { | |
$table->bigIncrements('id'); | |
$table->uuid('uuid')->default('-'); | |
$table->string('name'); | |
$table->text('header')->nullable(); | |
$table->text('payload')->nullable(); | |
$table->text('exception')->nullable(); | |
$table->boolean('is_sent')->default(false); | |
$table->timestamps(); | |
}); | |
} | |
public function down() | |
{ | |
Schema::dropIfExists('webhook_calls'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment