diff --git a/migrations/026_create_file_identities_table.sql b/migrations/026_create_file_identities_table.sql index 991a3892..8c40cd25 100644 --- a/migrations/026_create_file_identities_table.sql +++ b/migrations/026_create_file_identities_table.sql @@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS file_identities ( CONSTRAINT fk_file_identities_video FOREIGN KEY (file_uuid) - REFERENCES videos(uuid) + REFERENCES videos(file_uuid) ON DELETE CASCADE, CONSTRAINT fk_file_identities_identity