Skip to content

Instantly share code, notes, and snippets.

@nasrulhazim
Created May 6, 2020 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nasrulhazim/f441622b8ae05adca8d622c8f1193e5f to your computer and use it in GitHub Desktop.
Save nasrulhazim/f441622b8ae05adca8d622c8f1193e5f to your computer and use it in GitHub Desktop.
Webhook Migration
<?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