ALTER TABLE todos_todo ADD COLUMN owner_id int(11) UNSIGNED DEFAULT NULL;
ALTER TABLE todos_todo ADD INDEX owner_id (owner_id);
ALTER TABLE todos_todo
ADD CONSTRAINT owner_id
FOREIGN KEY(owner_id
) REFERENCES todos_todo
(id) ON DELETE SET NULL ON UPDATE SET NULL;
Comment on This Data Unit