Merge branch 'master' into feat-public-favgroups
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
class AddMetadataToPostReplacements < ActiveRecord::Migration
|
||||
def change
|
||||
PostReplacement.without_timeout do
|
||||
add_column :post_replacements, :file_ext_was, :string
|
||||
add_column :post_replacements, :file_size_was, :integer
|
||||
add_column :post_replacements, :image_width_was, :integer
|
||||
add_column :post_replacements, :image_height_was, :integer
|
||||
add_column :post_replacements, :md5_was, :string
|
||||
|
||||
add_column :post_replacements, :file_ext, :string
|
||||
add_column :post_replacements, :file_size, :integer
|
||||
add_column :post_replacements, :image_width, :integer
|
||||
add_column :post_replacements, :image_height, :integer
|
||||
add_column :post_replacements, :md5, :string
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -2667,7 +2667,17 @@ CREATE TABLE post_replacements (
|
||||
original_url text NOT NULL,
|
||||
replacement_url text NOT NULL,
|
||||
created_at timestamp without time zone NOT NULL,
|
||||
updated_at timestamp without time zone NOT NULL
|
||||
updated_at timestamp without time zone NOT NULL,
|
||||
file_ext_was character varying,
|
||||
file_size_was integer,
|
||||
image_width_was integer,
|
||||
image_height_was integer,
|
||||
md5_was character varying,
|
||||
file_ext character varying,
|
||||
file_size integer,
|
||||
image_width integer,
|
||||
image_height integer,
|
||||
md5 character varying
|
||||
);
|
||||
|
||||
|
||||
@@ -7533,3 +7543,5 @@ INSERT INTO schema_migrations (version) VALUES ('20171127195124');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20171219001521');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20171218213037');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user