dienstplan/database/migrations/2017_06_10_111705_create_veranstaltungs_table.php
2017-06-10 14:14:53 +02:00

37 lines
792 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateVeranstaltungsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('veranstaltungen', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->dateTime('beginn');
$table->string('name',200);
$table->integer('gaeste')->unsigned();
$table->string('hinweise',2000);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('veranstaltungen');
}
}