The PRIMARY KEY definition for snippetAttachment table is changed to consist of the columns cid, user, id, and referenceId to support having multiple attachments per snippet.

For storing binary attachment data in database, the table snippetAttachmentBinary is added to database schema layout:

CREATE TABLE (
int(10) unsigned NOT NULL,
varchar(64) CHARACTER SET latin1 NOT NULL,
mediumblob NOT NULL,
PRIMARY KEY (,)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci