mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-29 22:14:23 +01:00
Our foreign key constraint checks were checking for changes in PRIMARY KEYs, but not unique indexes - which are in practice the same thing, apart from the `INTEGER PRIMARY KEY` special case, where the PRIMARY KEY is an alias for the rowid of the table. Closes #3648 Closes #3652 (reimplements) Reviewed-by: Preston Thorpe <preston@turso.tech> Closes #3825