feat: agregar columna unit_of_measure_id a la tabla de inventarios y ajustar movimiento_id en la tabla de seriales
This commit is contained in:
parent
da5acc11c5
commit
7ebca6456f
@ -13,6 +13,7 @@ public function up(): void
|
||||
{
|
||||
Schema::table('inventories', function (Blueprint $table) {
|
||||
$table->foreignId('unit_of_measure_id')
|
||||
->nullable()
|
||||
->after('category_id')
|
||||
->constrained('units_of_measurement')
|
||||
->onDelete('restrict');
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('inventory_serials', function (Blueprint $table) {
|
||||
$table->foreignId('movement_id')->nullable()->constrained('inventory_movements')->nullOnDelete();
|
||||
$table->foreignId('movement_id')->after('inventory_id')->nullable()->constrained('inventory_movements')->nullOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user