Add table-check; add command-description for Artisan command

This commit is contained in:
Brady Wetherington 2024-01-25 20:07:18 +00:00
parent 81b8243e1d
commit b39b575fec
2 changed files with 9 additions and 7 deletions

View file

@ -19,7 +19,7 @@ class SamlClearExpiredNonces extends Command
* *
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Clears out expired SAML assertions from the saml_nonces table';
/** /**
* Create a new command instance. * Create a new command instance.

View file

@ -13,12 +13,14 @@ class CreateSamlNonceTable extends Migration
*/ */
public function up() public function up()
{ {
Schema::create('saml_nonces', function (Blueprint $table) { if (! Schema::hasTable('saml_nonces') ) {
$table->id(); Schema::create('saml_nonces', function (Blueprint $table) {
$table->string('nonce')->index(); $table->id();
$table->datetime('not_valid_after')->index(); $table->string('nonce')->index();
//$table->timestamps(); $table->datetime('not_valid_after')->index();
}); //$table->timestamps();
});
}
} }
/** /**