mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
Created migration files for log_domains table json columns
This commit is contained in:
parent
e2c6c9ef97
commit
b4429a53f7
3 changed files with 47 additions and 9 deletions
|
@ -1670,14 +1670,14 @@ CREATE TABLE public.log_domains (
|
|||
item_id integer NOT NULL,
|
||||
event character varying NOT NULL,
|
||||
whodunnit character varying,
|
||||
object_json jsonb,
|
||||
object_changes_json json,
|
||||
created_at timestamp without time zone,
|
||||
session character varying,
|
||||
children jsonb,
|
||||
uuid character varying,
|
||||
object_changes jsonb,
|
||||
object jsonb
|
||||
object_changes_jsonb jsonb,
|
||||
object_jsonb jsonb,
|
||||
object_changes json,
|
||||
object json
|
||||
);
|
||||
|
||||
|
||||
|
@ -4442,17 +4442,17 @@ CREATE INDEX index_log_domains_on_item_type_and_item_id ON public.log_domains US
|
|||
|
||||
|
||||
--
|
||||
-- Name: index_log_domains_on_object; Type: INDEX; Schema: public; Owner: -
|
||||
-- Name: index_log_domains_on_object_changes_jsonb; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX index_log_domains_on_object ON public.log_domains USING gin (object);
|
||||
CREATE INDEX index_log_domains_on_object_changes_jsonb ON public.log_domains USING gin (object_changes_jsonb);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_log_domains_on_object_changes; Type: INDEX; Schema: public; Owner: -
|
||||
-- Name: index_log_domains_on_object_jsonb; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX index_log_domains_on_object_changes ON public.log_domains USING gin (object_changes);
|
||||
CREATE INDEX index_log_domains_on_object_jsonb ON public.log_domains USING gin (object_jsonb);
|
||||
|
||||
|
||||
--
|
||||
|
@ -5469,6 +5469,8 @@ INSERT INTO "schema_migrations" (version) VALUES
|
|||
('20221206091556'),
|
||||
('20221207102831'),
|
||||
('20221214073933'),
|
||||
('20221214074252');
|
||||
('20221214074252'),
|
||||
('20230103095457'),
|
||||
('20230103100621');
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue