Skip to content

Commit

Permalink
remove ref type
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Jul 29, 2024
1 parent 5050629 commit 66d466f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion goose/migrations/1698861371_full_db_snapshot.sql
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ CREATE INDEX idx_created_at ON reference_objects USING btree (created_at DESC);
-- Name: idx_lookup_hash; Type: INDEX; Schema: public; Owner: blobber_user
--

CREATE INDEX idx_lookup_hash ON reference_objects USING btree (lookup_hash) INCLUDE(id,reference_objects.type) where deleted_at IS NULL;
CREATE INDEX idx_lookup_hash ON reference_objects USING btree (lookup_hash) INCLUDE(id,type) where deleted_at IS NULL;


--
Expand Down
2 changes: 1 addition & 1 deletion goose/migrations/1718391849_ref_index.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- +goose StatementBegin
DROP INDEX idx_created_at,idx_updated_at,idx_path_gin_trgm,idx_name_gin,idx_allocation_changes_lookup_hash;

CREATE INDEX idx_is_precommit_deleted_at on reference_objects(allocation_id) INCLUDE(lookup_hash,id,reference_objects.type) WHERE is_precommit=true AND deleted_at IS NULL;
CREATE INDEX idx_is_precommit_deleted_at on reference_objects(allocation_id) INCLUDE(lookup_hash,id,type) WHERE is_precommit=true AND deleted_at IS NULL;

CREATE INDEX idx_is_deleted on reference_objects(allocation_id) WHERE deleted_at IS NOT NULL;
-- +goose StatementEnd

0 comments on commit 66d466f

Please sign in to comment.