Skip to content

Firefly III: a personal finances manager

Add migrations.

James Cole6dde89d1eb6f
diff --git a/database/migrations/2021_05_09_064644_add_ldap_columns_to_users_table.php b/database/migrations/2021_05_09_064644_add_ldap_columns_to_users_table.php
new file mode 100644
index 0000000000..48e0f08e50
--- /dev/null
+++ b/database/migrations/2021_05_09_064644_add_ldap_columns_to_users_table.php
@@ -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']);
+ });
+ }
+}