diff --git a/database/migrations/2023_03_27_155714_add_index_to_releasefiles_crc32.php b/database/migrations/2023_03_27_155714_add_index_to_releasefiles_crc32.php new file mode 100644 index 000000000..87f4183d8 --- /dev/null +++ b/database/migrations/2023_03_27_155714_add_index_to_releasefiles_crc32.php @@ -0,0 +1,28 @@ +index(['crc32'], 'ix_releasefiles_crc32'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('release_files', function (Blueprint $table) { + $table->dropIndex('ix_releasefiles_crc32'); + }); + } +}; diff --git a/database/migrations/2023_05_05_155714_add_index_to_releases_categories_id_leftguid.php b/database/migrations/2023_05_05_155714_add_index_to_releases_categories_id_leftguid.php new file mode 100644 index 000000000..1e792aba9 --- /dev/null +++ b/database/migrations/2023_05_05_155714_add_index_to_releases_categories_id_leftguid.php @@ -0,0 +1,28 @@ +index(['categories_id', 'leftguid'], 'ix_releases_categories_id_leftguid'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('releases', function (Blueprint $table) { + $table->dropIndex('ix_releases_categories_id_leftguid'); + }); + } +};