dienstplan/database/migrations/2017_06_10_121932_update_benutzer_table.php
2017-06-10 14:23:36 +02:00

34 lines
711 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateBenutzerTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('benutzer', function (Blueprint $table){
$table->string('anzeigename',20)->unique();
$table->string('telefon',20);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('benutzer', function (Blueprint $table){
$table->dropColumn(['anzeigename','telefon']);
});
}
}