From 213069a05d48ab1bef07ed3fcfa5d0e47f6b2c94 Mon Sep 17 00:00:00 2001 From: mrepetto Date: Thu, 19 Sep 2019 17:39:33 -0300 Subject: [PATCH] added missing quotation marks --- dejavu/database_handler/mysql_queries.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dejavu/database_handler/mysql_queries.py b/dejavu/database_handler/mysql_queries.py index fa4b6d7..298c977 100644 --- a/dejavu/database_handler/mysql_queries.py +++ b/dejavu/database_handler/mysql_queries.py @@ -59,10 +59,10 @@ CREATE_FINGERPRINTS_TABLE = f""" , `{FIELD_OFFSET}` INT UNSIGNED NOT NULL , `date_created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP , `date_modified` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP - , INDEX ({FIELD_HASH}) - , CONSTRAINT `uq_{FINGERPRINTS_TABLENAME}` UNIQUE KEY ({FIELD_SONG_ID}, {FIELD_OFFSET}, {FIELD_HASH}) - , CONSTRAINT `fk_{FINGERPRINTS_TABLENAME}_{FIELD_SONG_ID}` FOREIGN KEY ({FIELD_SONG_ID}) - REFERENCES {SONGS_TABLENAME}({FIELD_SONG_ID}) ON DELETE CASCADE + , INDEX (`{FIELD_HASH}`) + , CONSTRAINT `uq_{FINGERPRINTS_TABLENAME}` UNIQUE KEY (`{FIELD_SONG_ID}`, `{FIELD_OFFSET}`, `{FIELD_HASH}`) + , CONSTRAINT `fk_{FINGERPRINTS_TABLENAME}_{FIELD_SONG_ID}` FOREIGN KEY (`{FIELD_SONG_ID}`) + REFERENCES `{SONGS_TABLENAME}`(`{FIELD_SONG_ID}`) ON DELETE CASCADE ) ENGINE=INNODB; """