wi-events/updates/create_participants_table.php

28 lines
645 B
PHP

<?php
namespace Zoomyboy\Event\Updates;
use Schema;
use Winter\Storm\Database\Schema\Blueprint;
use Winter\Storm\Database\Updates\Migration;
class CreateParticipantsTable extends Migration
{
public function up()
{
Schema::create('zoomyboy_event_participants', function (Blueprint $table) {
$table->id();
$table->string('firstname');
$table->string('lastname');
$table->string('email');
$table->json('payload');
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('zoomyboy_event_participants');
}
}