mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -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
|
* @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.
|
||||||
|
|
|
@ -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();
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue