mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
added migration and new json field for store domain statuses history
This commit is contained in:
parent
ded22685c9
commit
fb352fb718
2 changed files with 17 additions and 2 deletions
|
@ -0,0 +1,6 @@
|
||||||
|
class AddJsonStatusesHistoryFieldToDomain < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
add_column :domains, :json_statuses_history, :jsonb
|
||||||
|
add_index :domains, :json_statuses_history, using: :gin
|
||||||
|
end
|
||||||
|
end
|
|
@ -933,7 +933,8 @@ CREATE TABLE public.domains (
|
||||||
uuid uuid DEFAULT public.gen_random_uuid() NOT NULL,
|
uuid uuid DEFAULT public.gen_random_uuid() NOT NULL,
|
||||||
locked_by_registrant_at timestamp without time zone,
|
locked_by_registrant_at timestamp without time zone,
|
||||||
force_delete_start timestamp without time zone,
|
force_delete_start timestamp without time zone,
|
||||||
force_delete_data public.hstore
|
force_delete_data public.hstore,
|
||||||
|
json_statuses_history jsonb
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -3985,6 +3986,13 @@ CREATE INDEX index_domain_transfers_on_domain_id ON public.domain_transfers USIN
|
||||||
CREATE INDEX index_domains_on_delete_date ON public.domains USING btree (delete_date);
|
CREATE INDEX index_domains_on_delete_date ON public.domains USING btree (delete_date);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: index_domains_on_json_statuses_history; Type: INDEX; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE INDEX index_domains_on_json_statuses_history ON public.domains USING gin (json_statuses_history);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: index_domains_on_name; Type: INDEX; Schema: public; Owner: -
|
-- Name: index_domains_on_name; Type: INDEX; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -5152,6 +5160,7 @@ INSERT INTO "schema_migrations" (version) VALUES
|
||||||
('20200917104213'),
|
('20200917104213'),
|
||||||
('20200921084356'),
|
('20200921084356'),
|
||||||
('20210215101019'),
|
('20210215101019'),
|
||||||
('20210616112332');
|
('20210616112332'),
|
||||||
|
('20210708131814');
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue