1
0
Fork 0
forked from mirror/pixelfed

Merge pull request #5318 from pixelfed/staging

Create 2024_10_06_035032_modify_caption_field_in_media_table.php
This commit is contained in:
daniel 2024-10-05 21:52:17 -06:00 committed by GitHub
commit f27141ed89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('media', function (Blueprint $table) {
$table->text('caption')->nullable()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('media', function (Blueprint $table) {
$table->text('caption')->nullable(false)->change();
});
}
};