Changed MySQL checksum colum to be UNIQUE, NOT NULL

This commit is contained in:
jleaman 2016-08-16 09:39:33 +01:00
parent 475ae5748b
commit 2ebd7213e8

View File

@ -22,7 +22,7 @@ CREATE TABLE IF NOT EXISTS `?` (
`star` tinyint(1) NOT NULL, `star` tinyint(1) NOT NULL,
`thumbUrl` char(37) NOT NULL, `thumbUrl` char(37) NOT NULL,
`album` bigint(20) unsigned NOT NULL, `album` bigint(20) unsigned NOT NULL,
`checksum` char(40) DEFAULT NULL, `checksum` char(40) NOT NULL UNIQUE,
`medium` tinyint(1) NOT NULL DEFAULT '0', `medium` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `Index_album` (`album`), KEY `Index_album` (`album`),