mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Add table-check; add command-description for Artisan command
This commit is contained in:
parent
81b8243e1d
commit
b39b575fec
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue