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` binary(10) not null,
`%s` mediumint unsigned not null, `%s` mediumint unsigned not null,
`%s` int unsigned not null, `%s` int unsigned not null,
PRIMARY KEY(%s), INDEX (%s),
UNIQUE(%s, %s, %s), UNIQUE KEY `unique_constraint` (%s, %s, %s),
FOREIGN KEY (%s) REFERENCES %s(%s) ON DELETE CASCADE FOREIGN KEY (%s) REFERENCES %s(%s) ON DELETE CASCADE
) ENGINE=INNODB;""" % ( ) ENGINE=INNODB;""" % (
FINGERPRINTS_TABLENAME, FIELD_HASH, FINGERPRINTS_TABLENAME, FIELD_HASH,