A free open source IT asset/license management system
Add table-check; add command-description for Artisan command
Brady Wetheringtonb39b575fecb0
diff --git a/app/Console/Commands/SamlClearExpiredNonces.php b/app/Console/Commands/SamlClearExpiredNonces.phpindex ec20bc37a9..f03b55095e 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.phpindex 92c3a16358..f12615160e 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();+ });+ }}/**