{"html_url": "https://github.com/simonw/sqlite-utils/issues/119#issuecomment-698575545", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/119", "id": 698575545, "node_id": "MDEyOklzc3VlQ29tbWVudDY5ODU3NTU0NQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-24T20:36:59Z", "updated_at": "2020-09-24T20:36:59Z", "author_association": "OWNER", "body": "This was implemented in #161.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 652700770, "label": "Ability to remove a foreign key"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/119#issuecomment-683146200", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/119", "id": 683146200, "node_id": "MDEyOklzc3VlQ29tbWVudDY4MzE0NjIwMA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-08-28T21:05:37Z", "updated_at": "2020-08-28T21:05:37Z", "author_association": "OWNER", "body": "Maybe use `transform_table()` in #114 for this? Would be less efficient as it would copy the whole table but it would reduce library complexity a bit.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 652700770, "label": "Ability to remove a foreign key"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/119#issuecomment-655674910", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/119", "id": 655674910, "node_id": "MDEyOklzc3VlQ29tbWVudDY1NTY3NDkxMA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-08T18:10:18Z", "updated_at": "2020-07-08T18:10:18Z", "author_association": "OWNER", "body": "This will work similar to how `.add_foreign_keys()` works: turn on `writable_schema` and rewrite the `sql` for that table in the `sqlite_master` table.\r\n\r\nHere's that code today - it could be adapted to include removal of foreign keys that we no longer want:\r\n\r\nhttps://github.com/simonw/sqlite-utils/blob/a236a6bc771a5a6a9d7e814f1986d461afc422d2/sqlite_utils/db.py#L391-L401", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 652700770, "label": "Ability to remove a foreign key"}, "performed_via_github_app": null}