classify admin
This commit is contained in:
35
database/migrations/2025_12_03_113259_v2.9.0.php
Normal file
35
database/migrations/2025_12_03_113259_v2.9.0.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->string('region_code')->nullable()->after('country_code');
|
||||
});
|
||||
|
||||
Schema::table('items', function (Blueprint $table) {
|
||||
$table->string('region_code')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropColumn('region_code');
|
||||
});
|
||||
Schema::table('items', function (Blueprint $table) {
|
||||
$table->dropColumn('region_code');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user