diff --git a/migrations/20201117163953_create_unique_index_for_users_table.down.fizz b/migrations/20201117163953_create_unique_index_for_users_table.down.fizz new file mode 100644 index 0000000..189db56 --- /dev/null +++ b/migrations/20201117163953_create_unique_index_for_users_table.down.fizz @@ -0,0 +1 @@ +drop_index("users", "users_email_idx") \ No newline at end of file diff --git a/migrations/20201117163953_create_unique_index_for_users_table.up.fizz b/migrations/20201117163953_create_unique_index_for_users_table.up.fizz new file mode 100644 index 0000000..0429385 --- /dev/null +++ b/migrations/20201117163953_create_unique_index_for_users_table.up.fizz @@ -0,0 +1 @@ +add_index("users", "email", {"unique": true}) \ No newline at end of file diff --git a/migrations/20201117164210_create_indices_on_room_restrictions.down.fizz b/migrations/20201117164210_create_indices_on_room_restrictions.down.fizz new file mode 100644 index 0000000..1fcf693 --- /dev/null +++ b/migrations/20201117164210_create_indices_on_room_restrictions.down.fizz @@ -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") \ No newline at end of file diff --git a/migrations/20201117164210_create_indices_on_room_restrictions.up.fizz b/migrations/20201117164210_create_indices_on_room_restrictions.up.fizz new file mode 100644 index 0000000..a44d789 --- /dev/null +++ b/migrations/20201117164210_create_indices_on_room_restrictions.up.fizz @@ -0,0 +1,3 @@ +add_index("room_restrictions", ["start_date", "end_date"], {}) +add_index("room_restrictions", "room_id", {}) +add_index("room_restrictions", "reservation_id", {}) \ No newline at end of file