diff --git a/database/migrations/2022_12_18_012352_add_status_id_index_to_media_table.php b/database/migrations/2022_12_18_012352_add_status_id_index_to_media_table.php new file mode 100644 index 000000000..6f400ead2 --- /dev/null +++ b/database/migrations/2022_12_18_012352_add_status_id_index_to_media_table.php @@ -0,0 +1,36 @@ +index('status_id'); + $table->index('replicated_at'); + $table->index('version'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('media', function (Blueprint $table) { + $table->dropIndex('media_status_id_index'); + $table->dropIndex('media_replicated_at_index'); + $table->dropIndex('media_version_index'); + }); + } +};