Files
cssd-back/database/migrations/2023_10_26_124700_update_packages_table2.php
2023-12-09 19:11:33 +03:30

35 lines
741 B
PHP

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