dienstplan/database/migrations/2017_06_10_121932_update_benutzer_table.php
2017-06-15 12:46:34 +02:00

34 lines
705 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('users', function (Blueprint $table){
$table->string('anzeigename',20)->unique();
$table->string('telefon',20);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table){
$table->dropColumn(['anzeigename','telefon']);
});
}
}