mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 10:36:22 +00:00
fix: eliminar indice unico
en realidad lo queremos mantener...
This commit is contained in:
parent
b255acf2fd
commit
d1a87177a5
2 changed files with 9 additions and 7 deletions
|
@ -0,0 +1,8 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# A veces tenemos varias acciones sobre el mismo objeto
|
||||||
|
class RemoveUniqueIndexFromActivityPubs < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
remove_index :activity_pubs, %i[site_id object_id object_type], unique: true
|
||||||
|
end
|
||||||
|
end
|
|
@ -2167,13 +2167,6 @@ CREATE INDEX index_activity_pub_remote_flags_on_site_id ON public.activity_pub_r
|
||||||
CREATE UNIQUE INDEX index_activity_pub_remote_flags_on_site_id_and_actor_id ON public.activity_pub_remote_flags USING btree (site_id, actor_id);
|
CREATE UNIQUE INDEX index_activity_pub_remote_flags_on_site_id_and_actor_id ON public.activity_pub_remote_flags USING btree (site_id, actor_id);
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: index_activity_pubs_on_site_id_and_object_id_and_object_type; Type: INDEX; Schema: public; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE UNIQUE INDEX index_activity_pubs_on_site_id_and_object_id_and_object_type ON public.activity_pubs USING btree (site_id, object_id, object_type);
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: index_actor_moderations_on_actor_id; Type: INDEX; Schema: public; Owner: -
|
-- Name: index_actor_moderations_on_actor_id; Type: INDEX; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -2701,6 +2694,7 @@ INSERT INTO "schema_migrations" (version) VALUES
|
||||||
('20240228202830'),
|
('20240228202830'),
|
||||||
('20240229201155'),
|
('20240229201155'),
|
||||||
('20240301181224'),
|
('20240301181224'),
|
||||||
|
('20240301194154'),
|
||||||
('20240301202955');
|
('20240301202955');
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue