Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PPF-647 dump auth0 table #1557

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions database/migrations/2024_11_29_134955_drop_auth0_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class () extends Migration {
public function up(): void
{
Schema::dropIfExists('auth0_clients');
}

public function down(): void
{
Schema::create('auth0_clients', static function (Blueprint $table) {
$table->uuid('id')->primary();
$table->uuid('integration_id')->index();
$table->string('auth0_client_id')->index();
$table->string('auth0_client_secret');
$table->string('auth0_tenant')->index();
$table->unique(['integration_id', 'auth0_tenant']);
$table->unique(['auth0_client_id', 'auth0_tenant']);
$table->softDeletes();
$table->timestamps();
});
}
};
Loading