From b66f84c0c7adb087345e140f74b346562765f2ed Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 20 Sep 2022 21:25:43 -0500 Subject: [PATCH] db: drop normalized_url column from artist_urls. Unused since 0d480eb832. --- ...408_drop_normalized_url_from_artist_urls.rb | 5 +++++ db/structure.sql | 18 ++---------------- 2 files changed, 7 insertions(+), 16 deletions(-) create mode 100644 db/migrate/20220921022408_drop_normalized_url_from_artist_urls.rb diff --git a/db/migrate/20220921022408_drop_normalized_url_from_artist_urls.rb b/db/migrate/20220921022408_drop_normalized_url_from_artist_urls.rb new file mode 100644 index 000000000..e1dced048 --- /dev/null +++ b/db/migrate/20220921022408_drop_normalized_url_from_artist_urls.rb @@ -0,0 +1,5 @@ +class DropNormalizedURLFromArtistURLs < ActiveRecord::Migration[7.0] + def change + remove_column :artist_urls, :normalized_url, :text + end +end diff --git a/db/structure.sql b/db/structure.sql index 1d6bd0fca..1c3387560 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -232,7 +232,6 @@ CREATE TABLE public.artist_urls ( id integer NOT NULL, artist_id integer NOT NULL, url text NOT NULL, - normalized_url text, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, is_active boolean DEFAULT true NOT NULL @@ -3432,20 +3431,6 @@ CREATE INDEX index_artist_commentary_versions_on_updater_id_and_post_id ON publi CREATE INDEX index_artist_urls_on_artist_id ON public.artist_urls USING btree (artist_id); --- --- Name: index_artist_urls_on_normalized_url_pattern; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_artist_urls_on_normalized_url_pattern ON public.artist_urls USING btree (normalized_url text_pattern_ops); - - --- --- Name: index_artist_urls_on_normalized_url_trgm; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_artist_urls_on_normalized_url_trgm ON public.artist_urls USING gin (normalized_url public.gin_trgm_ops); - - -- -- Name: index_artist_urls_on_regexp_replace_lower_url; Type: INDEX; Schema: public; Owner: - -- @@ -6650,6 +6635,7 @@ INSERT INTO "schema_migrations" (version) VALUES ('20220917204044'), ('20220918031429'), ('20220919041622'), -('20220920224005'); +('20220920224005'), +('20220921022408');