updated benutzer_table

This commit is contained in:
chrosey 2017-06-10 14:23:36 +02:00
parent 609231b044
commit db293af560

View File

@ -0,0 +1,33 @@
<?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']);
});
}
}