Files
cssd-back/database/migrations/2023_08_27_124700_update_items_table.php
2023-09-25 11:29:16 +03:30

35 lines
730 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateItemsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('items', function (Blueprint $table) {
$table->string('udi')->nullable();
$table->tinyInteger('status')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('items', function (Blueprint $table) {
$table->dropColumn('udi');
$table->dropColumn('status');
});
}
}