diff --git a/dejavu/database_sql.py b/dejavu/database_sql.py index 565d83f..07f5853 100644 --- a/dejavu/database_sql.py +++ b/dejavu/database_sql.py @@ -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,