improve last code
This commit is contained in:
@@ -13,7 +13,7 @@ return new class extends Migration
|
||||
{
|
||||
Schema::table('missions', function (Blueprint $table) {
|
||||
$table->foreignId('machine_id')->nullable()->constrained('cmms_machines');
|
||||
$table->string('machine_name')->nullable();
|
||||
$table->string('machine_code')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ return new class extends Migration
|
||||
{
|
||||
Schema::table('missions', function (Blueprint $table) {
|
||||
$table->dropForeign('missions_machine_id_foreign');
|
||||
$table->dropColumn(['machine_id', 'machine_name']);
|
||||
$table->dropColumn(['machine_id', 'machine_code']);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user