Skip to content

Commit

Permalink
Change settings table saml_idp_metadata to MEDIUMTEXT
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed Jul 5, 2023
1 parent d890d92 commit c85a33b
Showing 1 changed file with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class ChangeSettingsTableIncreaseSamlIdpMetadataSize extends Migration
{
/**
* Run the migrations.
*
* This migration changes the format of the saml_idp_metadata field to MEDIUMTEXT
* to avoid truncating
*
* @return void
*/
public function up()
{
Schema::table('settings', function (Blueprint $table) {
$table->mediumText('saml_idp_metadata')->nullable()->default(null)->change();
});

}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('settings', function (Blueprint $table) {
$table->text('saml_idp_metadata')->nullable()->default(null)->change();
});
}
}

0 comments on commit c85a33b

Please sign in to comment.