{"action":"created","issue":{"url":"https://api.github.com/repos/strapi/strapi/issues/2432","repository_url":"https://api.github.com/repos/strapi/strapi","labels_url":"https://api.github.com/repos/strapi/strapi/issues/2432/labels{/name}","comments_url":"https://api.github.com/repos/strapi/strapi/issues/2432/comments","events_url":"https://api.github.com/repos/strapi/strapi/issues/2432/events","html_url":"https://github.com/strapi/strapi/issues/2432","id":387704050,"node_id":"MDU6SXNzdWUzODc3MDQwNTA=","number":2432,"title":"Add force option when database not empty with bookshelf","user":{"login":"chaitanyya","id":13115490,"node_id":"MDQ6VXNlcjEzMTE1NDkw","avatar_url":"https://avatars0.githubusercontent.com/u/13115490?v=4","gravatar_id":"","url":"https://api.github.com/users/chaitanyya","html_url":"https://github.com/chaitanyya","followers_url":"https://api.github.com/users/chaitanyya/followers","following_url":"https://api.github.com/users/chaitanyya/following{/other_user}","gists_url":"https://api.github.com/users/chaitanyya/gists{/gist_id}","starred_url":"https://api.github.com/users/chaitanyya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaitanyya/subscriptions","organizations_url":"https://api.github.com/users/chaitanyya/orgs","repos_url":"https://api.github.com/users/chaitanyya/repos","events_url":"https://api.github.com/users/chaitanyya/events{/privacy}","received_events_url":"https://api.github.com/users/chaitanyya/received_events","type":"User","site_admin":false},"labels":[{"id":758314049,"node_id":"MDU6TGFiZWw3NTgzMTQwNDk=","url":"https://api.github.com/repos/strapi/strapi/labels/Good%20for%20new%20contributors","name":"Good for new contributors","color":"9158b5","default":false},{"id":749108959,"node_id":"MDU6TGFiZWw3NDkxMDg5NTk=","url":"https://api.github.com/repos/strapi/strapi/labels/priority:%20medium","name":"priority: medium","color":"fbc307","default":false},{"id":267208745,"node_id":"MDU6TGFiZWwyNjcyMDg3NDU=","url":"https://api.github.com/repos/strapi/strapi/labels/type:%20enhancement%20%F0%9F%92%85","name":"type: enhancement 💅","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":{"login":"lauriejim","id":5716596,"node_id":"MDQ6VXNlcjU3MTY1OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5716596?v=4","gravatar_id":"","url":"https://api.github.com/users/lauriejim","html_url":"https://github.com/lauriejim","followers_url":"https://api.github.com/users/lauriejim/followers","following_url":"https://api.github.com/users/lauriejim/following{/other_user}","gists_url":"https://api.github.com/users/lauriejim/gists{/gist_id}","starred_url":"https://api.github.com/users/lauriejim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauriejim/subscriptions","organizations_url":"https://api.github.com/users/lauriejim/orgs","repos_url":"https://api.github.com/users/lauriejim/repos","events_url":"https://api.github.com/users/lauriejim/events{/privacy}","received_events_url":"https://api.github.com/users/lauriejim/received_events","type":"User","site_admin":false},"assignees":[{"login":"lauriejim","id":5716596,"node_id":"MDQ6VXNlcjU3MTY1OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5716596?v=4","gravatar_id":"","url":"https://api.github.com/users/lauriejim","html_url":"https://github.com/lauriejim","followers_url":"https://api.github.com/users/lauriejim/followers","following_url":"https://api.github.com/users/lauriejim/following{/other_user}","gists_url":"https://api.github.com/users/lauriejim/gists{/gist_id}","starred_url":"https://api.github.com/users/lauriejim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauriejim/subscriptions","organizations_url":"https://api.github.com/users/lauriejim/orgs","repos_url":"https://api.github.com/users/lauriejim/repos","events_url":"https://api.github.com/users/lauriejim/events{/privacy}","received_events_url":"https://api.github.com/users/lauriejim/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-12-05T11:02:54Z","updated_at":"2018-12-24T08:31:05Z","closed_at":null,"author_association":"NONE","body":"<!-- ⚠️ If you do not respect this template your issue will be closed. -->\r\n\r\n<!-- =============================================================================== -->\r\n<!-- ⚠️ If you are not using the current Strapi release, you will be asked to update. -->\r\n<!-- Please see the wiki for guides on upgrading to the latest release. -->\r\n<!-- =============================================================================== -->\r\n\r\n<!-- ⚠️ Make sure to browse the opened and closed issues before submitting your issue. -->\r\n\r\n<!-- ⚠️ Before writing your issue make sure you are using:-->\r\n<!-- Node 10.x.x -->\r\n<!-- npm 6.x.x -->\r\n<!-- The latest version of Strapi. -->\r\n\r\n**Informations**\r\n- **Node.js version**: v10.14.1 <!-- Please ensure you are using the Node LTS version (v10) -->\r\n- **NPM version**: v6.4.1\r\n- **Strapi version**: 3.0.0-alpha.16 <!-- Please make sure you are on the latest version -->\r\n- **Database**: Postgres\r\n- **Operating system**: 64bit Amazon Linux/2.12.4\r\n\r\n\r\n**What is the current behavior?**\r\nCurrently if there's existing data in the database used by Strapi the application creation process is blocked by:\r\n\r\n```bash\r\nIt seems that your database is not empty. Be aware that Strapi is going to automatically creates tables & columns, and might update columns which can corrupt data or cause data loss.\r\n\r\nAre you sure you want to continue with the <DB_NAME> database: (Y/n)\r\n```\r\n\r\nThis is blocking for somebody how's using an automated process to setup the application. It'd be nice if we can have an option flag which can be used when the process is blocked by the interactive command.\r\n\r\n**Steps to reproduce the problem**\r\n1. Use database config which already contains some data.\r\n2. Run the following command to set up a new Strapi application.\r\n```bash\r\nstrapi new ${APP_NAME} --dbclient=$DATABASE_CLIENT --dbhost=$DATABASE_HOST --dbport=$DATABASE_PORT --dbname=$DATABASE_NAME --dbusername=$DATABASE_USERNAME --dbpassword=$DATABASE_PASSWORD --dbssl=$DATABASE_SSL\r\n```\r\n3. The process is blocked by an interactive input statement.\r\n\r\n\r\n**What is the expected behavior?**\r\nThe CLI provides an option flag to set the default value for the blocking interactive statement and uses it when setting up the application.\r\n\r\n\r\n**Suggested solutions**\r\nAn option flag `--force` or something similar to proceed with value `Yes` instead of blocking the application setup. \r\n\r\nI'd like to contribute on this one, would like to know your thoughts first."},"comment":{"url":"https://api.github.com/repos/strapi/strapi/issues/comments/449702598","html_url":"https://github.com/strapi/strapi/issues/2432#issuecomment-449702598","issue_url":"https://api.github.com/repos/strapi/strapi/issues/2432","id":449702598,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTcwMjU5OA==","user":{"login":"chaitanyya","id":13115490,"node_id":"MDQ6VXNlcjEzMTE1NDkw","avatar_url":"https://avatars0.githubusercontent.com/u/13115490?v=4","gravatar_id":"","url":"https://api.github.com/users/chaitanyya","html_url":"https://github.com/chaitanyya","followers_url":"https://api.github.com/users/chaitanyya/followers","following_url":"https://api.github.com/users/chaitanyya/following{/other_user}","gists_url":"https://api.github.com/users/chaitanyya/gists{/gist_id}","starred_url":"https://api.github.com/users/chaitanyya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaitanyya/subscriptions","organizations_url":"https://api.github.com/users/chaitanyya/orgs","repos_url":"https://api.github.com/users/chaitanyya/repos","events_url":"https://api.github.com/users/chaitanyya/events{/privacy}","received_events_url":"https://api.github.com/users/chaitanyya/received_events","type":"User","site_admin":false},"created_at":"2018-12-24T08:31:05Z","updated_at":"2018-12-24T08:31:05Z","author_association":"NONE","body":"Thanks for the update. @lauriejim \r\n\r\n> I suggest you to update the path of the connectivity\r\n\r\nSo, if I understand it correctly instead of using the temp path I should use the path to the files in the repository.\r\n\r\n> An option to let it be easier to the future is to define the path depending of scope.developerMode.\r\n\r\nIn order to make it easier for future development this path can be defined based on the options of the `strapi new`\r\n\r\nI hope this makes sense."}}
{"actor":{"display_login":"chaitanyya"}}