From eefcf0991cf615a181fe6295b2daf3cf75aa404e Mon Sep 17 00:00:00 2001 From: worldveil Date: Sun, 26 Jan 2014 12:28:40 -0500 Subject: [PATCH] Corrected fingerprints table schema, fixes #26 --- dejavu/database_sql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,