30 lines
663 B
PHP
30 lines
663 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
||
|
class AddLdapColumnsToUsersTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::table('users', function (Blueprint $table) {
|
||
|
$table->string('guid')->unique()->nullable();
|
||
|
$table->string('domain')->nullable();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::table('users', function (Blueprint $table) {
|
||
|
$table->dropColumn(['guid', 'domain']);
|
||
|
});
|
||
|
}
|
||
|
}
|