Add table-check; add command-description for Artisan command
This commit is contained in:
parent
81b8243e1d
commit
b39b575fec
2 changed files with 9 additions and 7 deletions
|
@ -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,6 +13,7 @@ class CreateSamlNonceTable extends Migration
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
|
if (! Schema::hasTable('saml_nonces') ) {
|
||||||
Schema::create('saml_nonces', function (Blueprint $table) {
|
Schema::create('saml_nonces', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('nonce')->index();
|
$table->string('nonce')->index();
|
||||||
|
@ -20,6 +21,7 @@ class CreateSamlNonceTable extends Migration
|
||||||
//$table->timestamps();
|
//$table->timestamps();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reverse the migrations.
|
* Reverse the migrations.
|
||||||
|
|
Loading…
Add table
Reference in a new issue