From f32eabdf19a0fe08088852c356aefd9246a0a590 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 25 May 2023 00:01:50 -0600 Subject: [PATCH 1/2] Add migration --- ...08_103817_add_index_to_followers_table.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 database/migrations/2022_01_08_103817_add_index_to_followers_table.php 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 000000000..202aafbcb --- /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) { + // + }); + } +} From fb77ee764b9e137ebf14fd6263acce10f9d7df54 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 25 May 2023 00:03:00 -0600 Subject: [PATCH 2/2] Add status_edits migration --- ...01_29_034653_create_status_edits_table.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 database/migrations/2023_01_29_034653_create_status_edits_table.php 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 000000000..959fc9b89 --- /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'); + } +};