{"action":"created","issue":{"url":"https://api.github.com/repos/the-control-group/voyager/issues/3641","repository_url":"https://api.github.com/repos/the-control-group/voyager","labels_url":"https://api.github.com/repos/the-control-group/voyager/issues/3641/labels{/name}","comments_url":"https://api.github.com/repos/the-control-group/voyager/issues/3641/comments","events_url":"https://api.github.com/repos/the-control-group/voyager/issues/3641/events","html_url":"https://github.com/the-control-group/voyager/issues/3641","id":371271646,"node_id":"MDU6SXNzdWUzNzEyNzE2NDY=","number":3641,"title":"Error with BREAD > Browse if column created_at was not created","user":{"login":"BoFiaZ","id":11406407,"node_id":"MDQ6VXNlcjExNDA2NDA3","avatar_url":"https://avatars1.githubusercontent.com/u/11406407?v=4","gravatar_id":"","url":"https://api.github.com/users/BoFiaZ","html_url":"https://github.com/BoFiaZ","followers_url":"https://api.github.com/users/BoFiaZ/followers","following_url":"https://api.github.com/users/BoFiaZ/following{/other_user}","gists_url":"https://api.github.com/users/BoFiaZ/gists{/gist_id}","starred_url":"https://api.github.com/users/BoFiaZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoFiaZ/subscriptions","organizations_url":"https://api.github.com/users/BoFiaZ/orgs","repos_url":"https://api.github.com/users/BoFiaZ/repos","events_url":"https://api.github.com/users/BoFiaZ/events{/privacy}","received_events_url":"https://api.github.com/users/BoFiaZ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-10-17T21:20:34Z","updated_at":"2018-11-26T15:05:47Z","closed_at":null,"author_association":"NONE","body":"<!---\r\nIF YOU'RE POSTING A QUESTION ABOUT HOW TO USE VOYAGER, PLEASE CONSIDER ASKING IN SLACK FIRST\r\n--->\r\n## Version information\r\n<!--- The following information is required for bug reports.  Issues without it will be closed without response --->\r\n- Laravel: v5.7\r\n- Voyager: v1.1\r\n- PHP: 7.1.3\r\n- Database: MySQL 5.6\r\n\r\n## Description\r\n<!--- Describe the bug --->\r\nBREAD > Browse sorts by created_at by default. If this column was not created, an error occurs.\r\n\r\n`SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_at' in 'order clause' (SQL: select * from `example` order by `created_at` desc)`\r\n\r\n## Steps To Reproduce\r\nSteps to reproduce the behavior:\r\n1. Go to Tools > BREAD\r\n2. Click on Browse\r\n3. See the error if the column created_at was not created for the table."},"comment":{"url":"https://api.github.com/repos/the-control-group/voyager/issues/comments/441670711","html_url":"https://github.com/the-control-group/voyager/issues/3641#issuecomment-441670711","issue_url":"https://api.github.com/repos/the-control-group/voyager/issues/3641","id":441670711,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTY3MDcxMQ==","user":{"login":"DrudgeRajen","id":4613510,"node_id":"MDQ6VXNlcjQ2MTM1MTA=","avatar_url":"https://avatars0.githubusercontent.com/u/4613510?v=4","gravatar_id":"","url":"https://api.github.com/users/DrudgeRajen","html_url":"https://github.com/DrudgeRajen","followers_url":"https://api.github.com/users/DrudgeRajen/followers","following_url":"https://api.github.com/users/DrudgeRajen/following{/other_user}","gists_url":"https://api.github.com/users/DrudgeRajen/gists{/gist_id}","starred_url":"https://api.github.com/users/DrudgeRajen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrudgeRajen/subscriptions","organizations_url":"https://api.github.com/users/DrudgeRajen/orgs","repos_url":"https://api.github.com/users/DrudgeRajen/repos","events_url":"https://api.github.com/users/DrudgeRajen/events{/privacy}","received_events_url":"https://api.github.com/users/DrudgeRajen/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T15:05:47Z","updated_at":"2018-11-26T15:05:47Z","author_association":"NONE","body":"@emptynick yeah got that. The developer should use ```public $timestamps = false;```  if timestamps are not needed. Is it documented? If not, I think it should be mentioned somewhere because viewing from upper-level everyone will think that it is handled in voyager since voyager provides the feature to add timestamps while creating a database. "}}
{"actor":{"display_login":"DrudgeRajen"}}