I created a database in sqlite3
in version 3.9.2 and had problems with the foreign key.
alter table table_01 add column tab_2 integer foreign key references table_02(id);
// Esse deu erro de sintaxe no foreign key
alter table table_01 add column tab_2 integer foreigin key references table_02(id);
// Já esse, adicionou o campo com sucesso.
As it's in the code, gdb has accepted foreigin instead of foreign , could someone please tell me something about it?