Skip to content

Commit

Permalink
Force columns to be nullable, needed for Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Ribeiro committed Apr 2, 2024
1 parent 8411029 commit bc18eb0
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ class UpdateMetadataDescriptionFields extends Migration
public function up()
{
Schema::table('metadata', function (Blueprint $table) {
$table->text('description')->change();
$table->text('og_description')->change();
$table->text('description')->nullable()->change();
$table->text('og_description')->nullable()->change();
});

Schema::table('metadata_translations', function (Blueprint $table) {
$table->text('description')->change();
$table->text('og_description')->change();
$table->text('description')->nullable()->change();
$table->text('og_description')->nullable()->change();
});
}

public function down()
{
Schema::table('metadata', function (Blueprint $table) {
$table->string('description')->change();
$table->string('og_description')->change();
$table->string('description')->nullable()->change();
$table->string('og_description')->nullable()->change();
});

Schema::table('metadata_translations', function (Blueprint $table) {
$table->string('description')->change();
$table->string('og_description')->change();
$table->string('description')->nullable()->change();
$table->string('og_description')->nullable()->change();
});
}
}

0 comments on commit bc18eb0

Please sign in to comment.