2023-01-07 16:10:18 +01:00
|
|
|
<?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) {
|
2023-02-12 01:25:16 +01:00
|
|
|
$table->id();
|
2023-01-07 16:10:18 +01:00
|
|
|
$table->string('firstname');
|
|
|
|
$table->string('lastname');
|
|
|
|
$table->string('email');
|
2023-02-12 21:30:52 +01:00
|
|
|
$table->json('payload');
|
2023-01-07 16:10:18 +01:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('zoomyboy_event_participants');
|
|
|
|
}
|
|
|
|
}
|