Combined patches from RT#70734 and RT#44769
[dbsrgits/SQL-Translator.git] / t / 48xml-to-sqlite.t
index 9d0baa4..c567bbc 100644 (file)
@@ -49,7 +49,7 @@ CREATE TABLE 'Basic' (
   'emptytagdef' varchar DEFAULT '',
   'another_id' int(10) DEFAULT 2,
   'timest' timestamp,
-  FOREIGN KEY('another_id') REFERENCES 'Another'()
+  FOREIGN KEY ('another_id') REFERENCES 'Another'('id')
 );
 
 CREATE INDEX 'titleindex' ON 'Basic' ('title');
@@ -107,7 +107,7 @@ eq_or_diff(\@sql,
   'emptytagdef' varchar DEFAULT '',
   'another_id' int(10) DEFAULT 2,
   'timest' timestamp,
-  FOREIGN KEY('another_id') REFERENCES 'Another'()
+  FOREIGN KEY ('another_id') REFERENCES 'Another'('id')
 )>,
           q<CREATE INDEX 'titleindex' ON 'Basic' ('title')>,
           q<CREATE UNIQUE INDEX 'emailuniqueindex' ON 'Basic' ('email')>,