diff --git a/app/Console/Commands/SamlClearExpiredNonces.php b/app/Console/Commands/SamlClearExpiredNonces.php index ec20bc37a..f03b55095 100644 --- a/app/Console/Commands/SamlClearExpiredNonces.php +++ b/app/Console/Commands/SamlClearExpiredNonces.php @@ -19,7 +19,7 @@ class SamlClearExpiredNonces extends Command * * @var string */ - protected $description = 'Command description'; + protected $description = 'Clears out expired SAML assertions from the saml_nonces table'; /** * Create a new command instance. diff --git a/database/migrations/2024_01_24_145544_create_saml_nonce_table.php b/database/migrations/2024_01_24_145544_create_saml_nonce_table.php index 92c3a1635..f12615160 100644 --- a/database/migrations/2024_01_24_145544_create_saml_nonce_table.php +++ b/database/migrations/2024_01_24_145544_create_saml_nonce_table.php @@ -13,12 +13,14 @@ class CreateSamlNonceTable extends Migration */ public function up() { - Schema::create('saml_nonces', function (Blueprint $table) { - $table->id(); - $table->string('nonce')->index(); - $table->datetime('not_valid_after')->index(); - //$table->timestamps(); - }); + if (! Schema::hasTable('saml_nonces') ) { + Schema::create('saml_nonces', function (Blueprint $table) { + $table->id(); + $table->string('nonce')->index(); + $table->datetime('not_valid_after')->index(); + //$table->timestamps(); + }); + } } /**