ALTER TABLE dc_post_media ADD COLUMN link_type VARCHAR(32) NOT NULL DEFAULT 'attachment';
ALTER TABLE dc_post_media DROP PRIMARY KEY, ADD PRIMARY KEY(media_id,post_id,link_type);
ALTER TABLE dc_post_media ADD INDEX dc_idx_post_media_media_id USING btree (media_id);
UPDATE dc_setting SET setting_value = '/\.php$/i' WHERE setting_id = 'media_exclusion' AND setting_value = '';
UPDATE dc_version SET module = 'core', version = '2.4.0' WHERE module='core';

