This commit is contained in:
Lizandro Guarnizo
2026-01-29 23:08:32 -05:00
parent 1fff8f8999
commit 7662d6c09e
3 changed files with 50 additions and 1 deletions
-1
View File
@@ -12,7 +12,6 @@ class Tela extends Model
'color',
'proveedor_id',
'metros_comprados',
'metros_disponibles',
'fecha_compra',
'valor_total',
'costo_por_metro',
@@ -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('telas', function (Blueprint $table) {
//
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('telas', function (Blueprint $table) {
//
});
}
};
@@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('telas', function (Blueprint $table) {
$table->integer('metros_disponibles')->nullable()->change();
});
}
public function down(): void
{
Schema::table('telas', function (Blueprint $table) {
$table->integer('metros_disponibles')->nullable(false)->change();
});
}
};