Add migrations.

This commit is contained in:
James Cole 2021-06-12 06:28:44 +02:00
parent 351bb81e78
commit 6dde89d1eb
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -0,0 +1,28 @@
<?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('domain')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn(['domain']);
});
}
}