Enable systems to configure their packet type
This commit is contained in:
@@ -29,6 +29,8 @@ return new class extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
Schema::table('files',function (Blueprint $table) {
|
||||
$table->dropUnique(['filearea_id','name']);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
28
database/migrations/2023_06_26_185441_node_packet_type.php
Normal file
28
database/migrations/2023_06_26_185441_node_packet_type.php
Normal 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']);
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user