When ALTER TABLE RENAME TO is used to change the name of a table that is the parent table of a foreign key constraint, modify that foreign key constraint to use the new table name.
FossilOrigin-Name: b4a10c39e726dc190e9597e382baddc034294114
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index cbf7cd5..60414f7 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -2952,6 +2952,7 @@
void sqlite3FkActions(Parse*, Table*, ExprList*, int);
int sqlite3FkRequired(Parse*, Table*, ExprList*);
u32 sqlite3FkOldmask(Parse*, Table*, ExprList*);
+ FKey *sqlite3FkReferences(Table *);
#else
#define sqlite3FkCheck(a,b,c,d,e)
#define sqlite3FkActions(a,b,c,d)