Enable netmail forwarding for users that receive messages directed at clrghouz
This commit is contained in:
30
database/migrations/2023_08_02_203857_netmail_forward.php
Normal file
30
database/migrations/2023_08_02_203857_netmail_forward.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('users',function (Blueprint $table) {
|
||||
$table->bigInteger('system_id')->nullable();
|
||||
$table->foreign('system_id')->references('id')->on('systems');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('users',function (Blueprint $table) {
|
||||
$table->dropForeign(['system_id']);
|
||||
$table->dropColumn('system_id');
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user