diff --git a/database/migrations/2022_01_08_103817_add_index_to_followers_table.php b/database/migrations/2022_01_08_103817_add_index_to_followers_table.php new file mode 100644 index 00000000..202aafbc --- /dev/null +++ b/database/migrations/2022_01_08_103817_add_index_to_followers_table.php @@ -0,0 +1,33 @@ +index('profile_id'); + $table->index('following_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('followers', function (Blueprint $table) { + // + }); + } +} diff --git a/database/migrations/2023_01_29_034653_create_status_edits_table.php b/database/migrations/2023_01_29_034653_create_status_edits_table.php new file mode 100644 index 00000000..959fc9b8 --- /dev/null +++ b/database/migrations/2023_01_29_034653_create_status_edits_table.php @@ -0,0 +1,39 @@ +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'); + } +};