Skip to content

Commit

Permalink
Merge pull request #26 from antonioribeiro/fix-dbal-laravel-11
Browse files Browse the repository at this point in the history
Force columns to be nullable, needed for Laravel 11
  • Loading branch information
pauldwight authored May 1, 2024
2 parents 8411029 + bc18eb0 commit 7b80df2
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 7b80df2

Please sign in to comment.