fix pachage fields

This commit is contained in:
mahdi purHosseini
2023-11-09 13:27:03 +03:30
parent 4c3b7793c0
commit 0269f24ac4
5 changed files with 35 additions and 16 deletions
@@ -0,0 +1,34 @@
<?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('uid');
$table->dropColumn('unique_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('packages', function (Blueprint $table) {
$table->string('uid')->nullable();
$table->string('unique_id')->nullable();
});
}
}