mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
Merge remote-tracking branch 'origin/php8' into php8
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void
|
||||
{
|
||||
if (Schema::hasTable('user_passkeys')) return;
|
||||
Schema::create('user_passkeys', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedMediumInteger('user_id');
|
||||
$table->text('AAGUID')->nullable();
|
||||
$table->text('credential_id');
|
||||
$table->text('public_key');
|
||||
$table->unsignedInteger('counter')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('user_passkeys');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user