Table "rule_dependencies" reference to "rule_info"?


(Quan Yong Zhai) #1

But the table “rule_info” does not exists, a typo ?

https://github.com/apple/swift-llbuild/blob/master/lib/Core/SQLiteBuildDB.cpp Line 145-151

result = sqlite3_exec(

db, ("CREATE TABLE rule_dependencies ("

"rule_id INTEGER, "

"key STRING, "

"PRIMARY KEY (rule_id, key) "

"FOREIGN KEY(rule_id) REFERENCES rule_info(id)) "

"WITHOUT ROWID;"),