This commit is contained in:
Lizandro Guarnizo
2026-01-29 20:39:21 -05:00
parent 324c83021e
commit 02490b3d39
5 changed files with 225 additions and 104 deletions
@@ -0,0 +1,38 @@
<?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('ojales', function (Blueprint $table) {
$table->string('tipo')->nullable()->after('orden_produccion_id');
$table->boolean('terminada')->default(false)->after('perdidas');
});
Schema::table('prensillas', function (Blueprint $table) {
$table->string('tipo')->nullable()->after('orden_produccion_id');
$table->boolean('terminada')->default(false)->after('perdidas');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('ojales', function (Blueprint $table) {
$table->dropColumn(['tipo', 'terminada']);
});
Schema::table('prensillas', function (Blueprint $table) {
$table->dropColumn(['tipo', 'terminada']);
});
}
};