Add SHA1 to files

This commit is contained in:
Némunaire 2013-10-10 05:04:19 +02:00
parent ef983a3a82
commit 0640a261d6

View File

@ -41,6 +41,7 @@ CREATE TABLE IF NOT EXISTS `exercice_files` (
`id_exercice` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `id_exercice` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`path` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `path` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`sha1` binary(32) NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;