Enable systems to configure their packet type

This commit is contained in:
2023-06-26 21:19:42 +12:00
parent a26f61d75d
commit 75549590fc
8 changed files with 63 additions and 11 deletions

View File

@@ -29,6 +29,8 @@ return new class extends Migration
*/
public function down()
{
//
Schema::table('files',function (Blueprint $table) {
$table->dropUnique(['filearea_id','name']);
});
}
};

View File

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