Files
pollux/database/migrations/2018_09_07_083025_create_scopes_table.php

40 lines
871 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateScopesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('scopes', function (Blueprint $table) {
$table->increments('id');
// The name of the scope. There are only four of them we need:
// 1. Ideeler Bereich
// 2. Zweckbetrieb
// 3. Vermögensverwaltung
// 4. Wirtschaftlicher Geschäftsbetrieb
$table->string('name');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('scopes');
}
}