Corrected fingerprints table schema, fixes #26

This commit is contained in:
worldveil 2014-01-26 12:28:40 -05:00
parent 64a6161b90
commit eefcf0991c

View file

@ -63,8 +63,8 @@ class SQLDatabase(Database):
`%s` binary(10) not null,
`%s` mediumint unsigned not null,
`%s` int unsigned not null,
PRIMARY KEY(%s),
UNIQUE(%s, %s, %s),
INDEX (%s),
UNIQUE KEY `unique_constraint` (%s, %s, %s),
FOREIGN KEY (%s) REFERENCES %s(%s) ON DELETE CASCADE
) ENGINE=INNODB;""" % (
FINGERPRINTS_TABLENAME, FIELD_HASH,