I have the following table:
CREATE TABLE child(
id INTEGER PRIMARY KEY,
parent_id INTEGER,
description TEXT);
How do I add a foreign key constraint on parent_idparent_id? Assume foreign keys are enabled.
Most examples assume you're creating the table - I'd like to add the constraint to an existing one.