Asignar campo utilidad

This commit is contained in:
Felipe
2023-10-09 14:56:06 -05:00
parent 83b7bfe16b
commit 8dc97fb2df
15 changed files with 161 additions and 17 deletions
@@ -14,7 +14,7 @@ return new class extends Migration
public function up()
{
Schema::table('promociones', function (Blueprint $table) {
$table->string('precio_compra')->nullable();
$table->string('utilidad')->nullable();
});
}
@@ -26,7 +26,7 @@ return new class extends Migration
public function down()
{
Schema::table('promociones', function (Blueprint $table) {
//
$table->dropColumn('utilidad');
});
}
};
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('usuario_tarifas', function (Blueprint $table) {
$table->string('utilidad')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('usuario_tarifas', function (Blueprint $table) {
$table->dropColumn('utilidad');
});
}
};
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('usuario_promos', function (Blueprint $table) {
$table->string('utilidad')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('usuario_promos', function (Blueprint $table) {
$table->dropColumn('utilidad');
});
}
};
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('historiales', function (Blueprint $table) {
$table->string('utilidad')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('historiales', function (Blueprint $table) {
$table->dropColumn('utilidad');
});
}
};
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('tarifas', function (Blueprint $table) {
$table->string('utilidad')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('tarifas', function (Blueprint $table) {
$table->dropColumn('utilidad');
});
}
};