Fixed DB calls for MySQL

This commit is contained in:
Julian Prieber 2023-07-19 15:08:07 +02:00
parent 9d7b383c4e
commit 9515017c03
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class CreateUsersTable extends Migration
$table->rememberToken(); $table->rememberToken();
$table->timestamps(); $table->timestamps();
$table->string('theme')->nullable(); $table->string('theme')->nullable();
$table->unsignedBigInteger('auth_as')->nullable(); $table->unsignedInteger('auth_as')->nullable();
}); });
} }

View File

@ -157,7 +157,7 @@ use App\Models\Page;
// Adds new column to the users table // Adds new column to the users table
if (!Schema::hasColumn('users', 'auth_as')) { if (!Schema::hasColumn('users', 'auth_as')) {
Schema::table('users', function (Blueprint $table) { Schema::table('users', function (Blueprint $table) {
$table->unsignedBigInteger('auth_as')->nullable(); $table->unsignedInteger('auth_as')->nullable();
}); });
} }