diff --git a/database/migrations/create_user_consent_table.php.stub b/database/migrations/create_user_consent_table.php.stub index 0fe901b..b0a75a1 100644 --- a/database/migrations/create_user_consent_table.php.stub +++ b/database/migrations/create_user_consent_table.php.stub @@ -16,7 +16,7 @@ return new class extends Migration Schema::create('consent_options', function (Blueprint $table) { $table->id(); $table->string('key')->unique(); - $table->unsignedBigInteger('version')->nullable()->default(null); + $table->unsignedBigInteger('version')->nullable()->default(1); $table->string('title')->nullable()->default(null); $table->string('label')->nullable()->default(null); $table->text('text')->nullable()->default(null); diff --git a/src/Resources/ConsentOptionResource/Pages/ListConsentOptions.php b/src/Resources/ConsentOptionResource/Pages/ListConsentOptions.php index 9eba8bf..67a0f31 100644 --- a/src/Resources/ConsentOptionResource/Pages/ListConsentOptions.php +++ b/src/Resources/ConsentOptionResource/Pages/ListConsentOptions.php @@ -13,7 +13,7 @@ class ListConsentOptions extends ListRecords protected function getHeaderActions(): array { return [ - Actions\CreateAction::make()->hidden(), + Actions\CreateAction::make(), ]; } }