html_url,issue_url,id,node_id,user,user_label,created_at,updated_at,author_association,body,reactions,issue,issue_label,performed_via_github_app https://github.com/simonw/sqlite-utils/issues/16#issuecomment-496756348,https://api.github.com/repos/simonw/sqlite-utils/issues/16,496756348,MDEyOklzc3VlQ29tbWVudDQ5Njc1NjM0OA==,9599,simonw,2019-05-29T02:12:43Z,2019-05-29T02:12:43Z,OWNER,"For the CLI I'm thinking: sqlite-utils add-column data.db mytable col text --fk othertable id So the foreign key is added using `--fk othertable othercolumn` If the user doesn't provide the column type we can derive it from the foreign key. Can we make the `othercolumn` optional? That would be neat - then we could automatically detect it using the sole primary key of the referenced table.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",413867537,add_column() should support REFERENCES {other_table}({other_column}), https://github.com/simonw/sqlite-utils/issues/16#issuecomment-496756758,https://api.github.com/repos/simonw/sqlite-utils/issues/16,496756758,MDEyOklzc3VlQ29tbWVudDQ5Njc1Njc1OA==,9599,simonw,2019-05-29T02:14:50Z,2019-05-29T02:14:50Z,OWNER,"Hmm... probably not: > For options, only a fixed number of arguments is supported.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",413867537,add_column() should support REFERENCES {other_table}({other_column}), https://github.com/simonw/sqlite-utils/issues/16#issuecomment-496757010,https://api.github.com/repos/simonw/sqlite-utils/issues/16,496757010,MDEyOklzc3VlQ29tbWVudDQ5Njc1NzAxMA==,9599,simonw,2019-05-29T02:16:17Z,2019-05-29T02:16:17Z,OWNER,"In that case `--fk othertable` detects the primary key. If you want to point at a different column, use `--fk-col X`","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",413867537,add_column() should support REFERENCES {other_table}({other_column}), https://github.com/simonw/sqlite-utils/issues/21#issuecomment-496786354,https://api.github.com/repos/simonw/sqlite-utils/issues/21,496786354,MDEyOklzc3VlQ29tbWVudDQ5Njc4NjM1NA==,9599,simonw,2019-05-29T05:09:01Z,2019-05-29T05:09:01Z,OWNER,Shipped this feature in sqlite-utils 1.1: https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-1,"{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",448391492,Option to ignore inserts if primary key exists already, https://github.com/simonw/sqlite-utils/issues/16#issuecomment-496787958,https://api.github.com/repos/simonw/sqlite-utils/issues/16,496787958,MDEyOklzc3VlQ29tbWVudDQ5Njc4Nzk1OA==,9599,simonw,2019-05-29T05:17:58Z,2019-05-29T05:17:58Z,OWNER,Shipped this feature in sqlite-utils 1.1: https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-1,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",413867537,add_column() should support REFERENCES {other_table}({other_column}), https://github.com/simonw/datasette/issues/120#issuecomment-496966227,https://api.github.com/repos/simonw/datasette/issues/120,496966227,MDEyOklzc3VlQ29tbWVudDQ5Njk2NjIyNw==,26342344,duarteocarmo,2019-05-29T14:40:52Z,2019-05-29T14:40:52Z,NONE,I would really like this. If you give me some pointers @simonw I'm willing to PR!,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",275087397,Plugin that adds an authentication layer of some sort, https://github.com/simonw/datasette/issues/492#issuecomment-496970219,https://api.github.com/repos/simonw/datasette/issues/492,496970219,MDEyOklzc3VlQ29tbWVudDQ5Njk3MDIxOQ==,9599,simonw,2019-05-29T14:50:10Z,2019-05-29T14:50:10Z,OWNER,"Code in question: https://github.com/simonw/datasette/blob/2a4b892d6c0f6609ea48df0dc393397af2b7b1c1/datasette/templates/table.html#L84-L86","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",449854604,Facets not correctly persisted in hidden form fields, https://github.com/simonw/datasette/issues/485#issuecomment-497116074,https://api.github.com/repos/simonw/datasette/issues/485,497116074,MDEyOklzc3VlQ29tbWVudDQ5NzExNjA3NA==,9599,simonw,2019-05-29T21:29:16Z,2019-05-29T21:29:16Z,OWNER,Another good rule of thumb: look for text fields with a unique constraint?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",447469253,Improvements to table label detection ,