mirror of
https://github.com/correl/dejavu.git
synced 2024-11-23 19:19:53 +00:00
added missing quotation marks
This commit is contained in:
parent
ade00317f9
commit
213069a05d
1 changed files with 4 additions and 4 deletions
|
@ -59,10 +59,10 @@ CREATE_FINGERPRINTS_TABLE = f"""
|
||||||
, `{FIELD_OFFSET}` INT UNSIGNED NOT NULL
|
, `{FIELD_OFFSET}` INT UNSIGNED NOT NULL
|
||||||
, `date_created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
, `date_created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
, `date_modified` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
, `date_modified` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
||||||
, INDEX ({FIELD_HASH})
|
, INDEX (`{FIELD_HASH}`)
|
||||||
, CONSTRAINT `uq_{FINGERPRINTS_TABLENAME}` UNIQUE KEY ({FIELD_SONG_ID}, {FIELD_OFFSET}, {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})
|
, CONSTRAINT `fk_{FINGERPRINTS_TABLENAME}_{FIELD_SONG_ID}` FOREIGN KEY (`{FIELD_SONG_ID}`)
|
||||||
REFERENCES {SONGS_TABLENAME}({FIELD_SONG_ID}) ON DELETE CASCADE
|
REFERENCES `{SONGS_TABLENAME}`(`{FIELD_SONG_ID}`) ON DELETE CASCADE
|
||||||
) ENGINE=INNODB;
|
) ENGINE=INNODB;
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue