34 lines
711 B
PHP
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']);
|
|
});
|
|
}
|
|
}
|