diff --git a/sql/patch_50_51_e.sql b/sql/patch_50_51_e.sql
index a5486956a216a88a979538f48199ea357d65ac30..401221a6d6cb7660da2f0e74395d9c4d4a7c4678 100644
--- a/sql/patch_50_51_e.sql
+++ b/sql/patch_50_51_e.sql
@@ -10,6 +10,6 @@ ALTER TABLE protein_feature ADD COLUMN external_data TEXT;
 ALTER TABLE dna_align_feature ADD COLUMN external_data TEXT;
 
 # patch identifier
-INSERT INTO meta (meta_key, meta_value) VALUES ('patch', 'patch_50_51_e.sql|feature_external_data');
+INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_50_51_e.sql|feature_external_data');