Skip to content

Commit

Permalink
indices
Browse files Browse the repository at this point in the history
  • Loading branch information
tsawler committed Apr 5, 2021
1 parent 6c8fe33 commit e99cbf6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
drop_index("users", "users_email_idx")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_index("users", "email", {"unique": true})
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
drop_index("room_restrictions", "room_restrictions_reservation_id_idx")
drop_index("room_restrictions", "room_restrictions_room_id_idx")
drop_index("room_restrictions", "room_restrictions_start_date_end_date_id_idx")
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
add_index("room_restrictions", ["start_date", "end_date"], {})
add_index("room_restrictions", "room_id", {})
add_index("room_restrictions", "reservation_id", {})

0 comments on commit e99cbf6

Please sign in to comment.