feat: gpu enabled containers
feat: move advanced settings to different view
This commit is contained in:
36
database/migrations/2023_11_20_094628_add_gpu_settings.php
Normal file
36
database/migrations/2023_11_20_094628_add_gpu_settings.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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('application_settings', function (Blueprint $table) {
|
||||
$table->boolean('is_gpu_enabled')->default(false);
|
||||
$table->string('gpu_driver')->default('nvidia');
|
||||
$table->string('gpu_count')->nullable();
|
||||
$table->string('gpu_device_ids')->nullable();
|
||||
$table->longText('gpu_options')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('application_settings', function (Blueprint $table) {
|
||||
$table->dropColumn('is_gpu_enabled');
|
||||
$table->dropColumn('gpu_driver');
|
||||
$table->dropColumn('gpu_count');
|
||||
$table->dropColumn('gpu_device_ids');
|
||||
$table->dropColumn('gpu_options');
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user