mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
DEV: create missing indexes
These indexes should have been created in aa2a9da4
This commit is contained in:
parent
aa2a9da4b2
commit
f4a53bd8f0
@ -16,6 +16,16 @@ class AddTopicThumbnailInformation < ActiveRecord::Migration[6.0]
|
|||||||
ADD COLUMN IF NOT EXISTS image_upload_id bigint
|
ADD COLUMN IF NOT EXISTS image_upload_id bigint
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
|
execute <<~SQL
|
||||||
|
CREATE INDEX CONCURRENTLY IF NOT EXISTS
|
||||||
|
index_posts_on_image_upload_id ON posts USING btree (image_upload_id);
|
||||||
|
SQL
|
||||||
|
|
||||||
|
execute <<~SQL
|
||||||
|
CREATE INDEX CONCURRENTLY IF NOT EXISTS
|
||||||
|
index_topics_on_image_upload_id ON public.topics USING btree (image_upload_id);
|
||||||
|
SQL
|
||||||
|
|
||||||
ActiveRecord::Base.transaction do
|
ActiveRecord::Base.transaction do
|
||||||
add_column :theme_modifier_sets, :topic_thumbnail_sizes, :string, array: true
|
add_column :theme_modifier_sets, :topic_thumbnail_sizes, :string, array: true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user