ALTER TABLE dc_post_media ADD COLUMN link_type VARCHAR(32) NOT NULL DEFAULT 'attachment';
ALTER TABLE dc_post_media DROP CONSTRAINT dc_pk_post_media;
ALTER TABLE dc_post_media ADD CONSTRAINT dc_pk_post_media PRIMARY KEY (media_id,post_id,link_type);
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';
