uploads: add upload_media_assets.page_url.

This is needed for multi-file uploads. We need to know both the image
url and the page url to set the post's source correctly when converting
an upload media asset into a post.
This commit is contained in:
evazion
2022-02-11 02:48:20 -06:00
parent c2ed5c2841
commit 44ca178d7a
3 changed files with 10 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
class AddPageUrlToUploadMediaAssets < ActiveRecord::Migration[7.0]
def change
add_column :upload_media_assets, :page_url, :string, null: true
end
end

View File

@@ -1918,7 +1918,8 @@ CREATE TABLE public.upload_media_assets (
media_asset_id bigint,
status integer DEFAULT 0 NOT NULL,
source_url character varying DEFAULT ''::character varying NOT NULL,
error character varying
error character varying,
page_url character varying
);
@@ -5777,6 +5778,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20220204075610'),
('20220207195123'),
('20220210171310'),
('20220210200157');
('20220210200157'),
('20220211075129');