set avatar column nullable for users and social logins tables
This commit is contained in:
parent
22da268739
commit
23c2e00792
@ -0,0 +1,36 @@
|
||||
<?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('avatar')->nullable()->change();
|
||||
});
|
||||
|
||||
Schema::table('social_logins', function (Blueprint $table) {
|
||||
$table->string('avatar')->nullable()->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->string('avatar')->nullable(false)->change();
|
||||
});
|
||||
|
||||
Schema::table('social_logins', function (Blueprint $table) {
|
||||
$table->string('avatar')->nullable(false)->change();
|
||||
});
|
||||
}
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user