Files
Docker/Productivite/Snipe-IT/database/migrations/2016_10_16_165052_rename_component_total_qty_to_qty.php
2024-04-21 14:42:52 +02:00

34 lines
668 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class RenameComponentTotalQtyToQty extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('components', function (Blueprint $table) {
//
$table->renameColumn('total_qty', 'qty');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('components', function (Blueprint $table) {
//
$table->renameColumn('qty', 'total_qty');
});
}
}