mirror of
https://github.com/snipe/snipe-it.git
synced 2026-03-29 20:04:21 +00:00
Add table-check; add command-description for Artisan command
This commit is contained in:
@ -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.
|
||||
|
||||
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user