Add status_edits migration

pull/4414/head
Daniel Supernault 2023-05-25 00:03:00 -06:00
rodzic f32eabdf19
commit fb77ee764b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 39 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,39 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('status_edits', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('status_id')->unsigned()->index();
$table->bigInteger('profile_id')->unsigned()->index();
$table->text('caption')->nullable();
$table->text('spoiler_text')->nullable();
$table->json('ordered_media_attachment_ids')->nullable();
$table->json('media_descriptions')->nullable();
$table->json('poll_options')->nullable();
$table->boolean('is_nsfw')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('status_edits');
}
};