user add provider_id

This commit is contained in:
xiaomlove
2025-05-02 14:49:50 +07:00
parent cd6ac587c2
commit 14f06778b2
4 changed files with 41 additions and 4 deletions

View File

@@ -0,0 +1,28 @@
<?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->bigInteger("provider_id")->default(0);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn("provider_id");
});
}
};