Add username and password fields to VirtualMachines model and database migration; update related email templates to use config for frontend URL
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('virtual_machines', function (Blueprint $table) {
|
||||
$table->string('username')->nullable()->after('ip');
|
||||
$table->string('password')->nullable()->after('username');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('virtual_machines', function (Blueprint $table) {
|
||||
$table->dropColumn(['username', 'password']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user