diff --git a/database/migrations/2016_09_23_135248_create_annotation_label_index.php b/database/migrations/2016_09_23_135248_create_annotation_label_index.php new file mode 100644 index 000000000..311997c04 --- /dev/null +++ b/database/migrations/2016_09_23_135248_create_annotation_label_index.php @@ -0,0 +1,36 @@ +index('annotation_id'); + $table->index('label_id'); + $table->index('user_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('annotation_labels', function (Blueprint $table) { + $table->dropIndex('annotation_labels_annotation_id_index'); + $table->dropIndex('annotation_labels_label_id_index'); + $table->dropIndex('annotation_labels_user_id_index'); + }); + } +}