wi-events/updates/create_participants_table.php

44 lines
1.3 KiB
PHP
Raw Normal View History

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) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('gender');
$table->string('firstname');
$table->string('lastname');
$table->date('birthday');
$table->string('email');
$table->string('group')->nullable();
$table->string('agegroup');
$table->string('agegroup_leader');
2023-01-07 18:13:03 +01:00
$table->boolean('vorteam')->default(false);
2023-01-07 16:10:18 +01:00
$table->boolean('foto');
$table->string('emergency_phone');
$table->string('address');
$table->string('zip');
$table->string('location');
$table->string('phone');
$table->string('activity');
$table->json('food_preferences');
$table->string('further_food_preferences')->nullable();
$table->text('misc')->nullable();
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('zoomyboy_event_participants');
}
}