{"action":"created","issue":{"url":"https://api.github.com/repos/gabordemooij/redbean/issues/692","repository_url":"https://api.github.com/repos/gabordemooij/redbean","labels_url":"https://api.github.com/repos/gabordemooij/redbean/issues/692/labels{/name}","comments_url":"https://api.github.com/repos/gabordemooij/redbean/issues/692/comments","events_url":"https://api.github.com/repos/gabordemooij/redbean/issues/692/events","html_url":"https://github.com/gabordemooij/redbean/issues/692","id":390729796,"node_id":"MDU6SXNzdWUzOTA3Mjk3OTY=","number":692,"title":"Nuke control","user":{"login":"rivets","id":1358994,"node_id":"MDQ6VXNlcjEzNTg5OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1358994?v=4","gravatar_id":"","url":"https://api.github.com/users/rivets","html_url":"https://github.com/rivets","followers_url":"https://api.github.com/users/rivets/followers","following_url":"https://api.github.com/users/rivets/following{/other_user}","gists_url":"https://api.github.com/users/rivets/gists{/gist_id}","starred_url":"https://api.github.com/users/rivets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rivets/subscriptions","organizations_url":"https://api.github.com/users/rivets/orgs","repos_url":"https://api.github.com/users/rivets/repos","events_url":"https://api.github.com/users/rivets/events{/privacy}","received_events_url":"https://api.github.com/users/rivets/received_events","type":"User","site_admin":false},"labels":[{"id":1008127723,"node_id":"MDU6TGFiZWwxMDA4MTI3NzIz","url":"https://api.github.com/repos/gabordemooij/redbean/labels/5.3","name":"5.3","color":"cced38","default":false},{"id":339600330,"node_id":"MDU6TGFiZWwzMzk2MDAzMzA=","url":"https://api.github.com/repos/gabordemooij/redbean/labels/feature%20request%20(accepted)","name":"feature request (accepted)","color":"fbca04","default":false},{"id":569676565,"node_id":"MDU6TGFiZWw1Njk2NzY1NjU=","url":"https://api.github.com/repos/gabordemooij/redbean/labels/researching","name":"researching","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-12-13T15:27:38Z","updated_at":"2018-12-23T10:52:34Z","closed_at":null,"author_association":"NONE","body":"This is a feature request rather than an issue. The real issue is users who don't understand.... I use RedBean as part of my teaching and a student managed to accidentally call nuke and delete their whole database. It would be nice for such teaching situations to have a switch that disables nuke to prevent that kind of disaster."},"comment":{"url":"https://api.github.com/repos/gabordemooij/redbean/issues/comments/449628420","html_url":"https://github.com/gabordemooij/redbean/issues/692#issuecomment-449628420","issue_url":"https://api.github.com/repos/gabordemooij/redbean/issues/692","id":449628420,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTYyODQyMA==","user":{"login":"marios88","id":302688,"node_id":"MDQ6VXNlcjMwMjY4OA==","avatar_url":"https://avatars3.githubusercontent.com/u/302688?v=4","gravatar_id":"","url":"https://api.github.com/users/marios88","html_url":"https://github.com/marios88","followers_url":"https://api.github.com/users/marios88/followers","following_url":"https://api.github.com/users/marios88/following{/other_user}","gists_url":"https://api.github.com/users/marios88/gists{/gist_id}","starred_url":"https://api.github.com/users/marios88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marios88/subscriptions","organizations_url":"https://api.github.com/users/marios88/orgs","repos_url":"https://api.github.com/users/marios88/repos","events_url":"https://api.github.com/users/marios88/events{/privacy}","received_events_url":"https://api.github.com/users/marios88/received_events","type":"User","site_admin":false},"created_at":"2018-12-23T10:52:34Z","updated_at":"2018-12-23T10:52:34Z","author_association":"CONTRIBUTOR","body":"I personally use R::nuke only when working with temp databases, and its pretty useful\r\nie very fast workflow to test changes made to the seed file\r\n\r\nIts a nice feature that saves time. Still, i could see having to call `R::allowNuke()` before using it or a get an exception\r\n`R::nuke() will DROP all the tables in your current database.As a failsafe, to use it, you must enable it, calling R::allowNuke() first`\r\n\r\n-----\r\n\r\nI only have enough experience with mysqldump, it gets the job done and is battle tested.\r\nR::backup sounds nice but probably a feature i would not risk using on production.  \r\nAlso note, there might be tables not managed by redbean, on the same database"}}
{"actor":{"display_login":"marios88"}}