{"action":"created","issue":{"url":"https://api.github.com/repos/graphcool/prisma/issues/2082","repository_url":"https://api.github.com/repos/graphcool/prisma","labels_url":"https://api.github.com/repos/graphcool/prisma/issues/2082/labels{/name}","comments_url":"https://api.github.com/repos/graphcool/prisma/issues/2082/comments","events_url":"https://api.github.com/repos/graphcool/prisma/issues/2082/events","html_url":"https://github.com/graphcool/prisma/issues/2082","id":304759429,"number":2082,"title":"SQL_INTERNAL_DATABASE not used to bootstrap new prisma server ","user":{"login":"piscis","id":326163,"avatar_url":"https://avatars0.githubusercontent.com/u/326163?v=4","gravatar_id":"","url":"https://api.github.com/users/piscis","html_url":"https://github.com/piscis","followers_url":"https://api.github.com/users/piscis/followers","following_url":"https://api.github.com/users/piscis/following{/other_user}","gists_url":"https://api.github.com/users/piscis/gists{/gist_id}","starred_url":"https://api.github.com/users/piscis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piscis/subscriptions","organizations_url":"https://api.github.com/users/piscis/orgs","repos_url":"https://api.github.com/users/piscis/repos","events_url":"https://api.github.com/users/piscis/events{/privacy}","received_events_url":"https://api.github.com/users/piscis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-13T13:14:22Z","updated_at":"2018-03-13T13:46:39Z","closed_at":null,"author_association":"NONE","body":"# Bug Report\r\n\r\n**Current behavior**\r\nWhen I deploy primsa (v1.3.5) via docker-compose and set the environment SQL_INTERNAL_DATABASE to something else then graphcool this will not be picked up by the prisma bootstrapping process for a new not.\r\n\r\n```\r\n:Query is: CREATE SCHEMA IF NOT EXISTS `graphcool` DEFAULT CHARACTER SET latin1;[1]:\t\r\nat org.mariadb.jdbc.internal.util.LogQueryTool.exceptionWithQuery(LogQueryTool.java:146)[1]:\t\r\nat org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:217)[1]:\t\r\nat org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:218)[1]:\r\n... 24 more[1]:Listening for transport dt_socket at address: 8000\r\n```\r\n**Reproduction**\r\n\r\n1. Deploy a new cluster via docker-compose.yml (fresh mysql instance + prisma)\r\n2. Set the SQL_INTERNAL_DATABASE to something else than graphcool\r\n3. Deploy the config via docker compose.\r\n4. whatch the logs to see if the database will be bootstrap\r\n\r\n**Expected behavior?**\r\nIt should take the environment variable SQL_INTERNAL_DATABASE via environment variable to initial create a schema for prisma."},"comment":{"url":"https://api.github.com/repos/graphcool/prisma/issues/comments/372670224","html_url":"https://github.com/graphcool/prisma/issues/2082#issuecomment-372670224","issue_url":"https://api.github.com/repos/graphcool/prisma/issues/2082","id":372670224,"user":{"login":"piscis","id":326163,"avatar_url":"https://avatars0.githubusercontent.com/u/326163?v=4","gravatar_id":"","url":"https://api.github.com/users/piscis","html_url":"https://github.com/piscis","followers_url":"https://api.github.com/users/piscis/followers","following_url":"https://api.github.com/users/piscis/following{/other_user}","gists_url":"https://api.github.com/users/piscis/gists{/gist_id}","starred_url":"https://api.github.com/users/piscis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piscis/subscriptions","organizations_url":"https://api.github.com/users/piscis/orgs","repos_url":"https://api.github.com/users/piscis/repos","events_url":"https://api.github.com/users/piscis/events{/privacy}","received_events_url":"https://api.github.com/users/piscis/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T13:46:39Z","updated_at":"2018-03-13T13:46:39Z","author_association":"NONE","body":"Could this be the problem?\r\n\r\nhttps://github.com/graphcool/prisma/blob/c77e582b5fd6edc62d18bb03d060f5f2d3d2172a/server/connectors/deploy-connector-mysql/src/main/scala/com/prisma/deploy/connector/mysql/database/InternalDatabaseSchema.scala#L15-L18"}}
{"actor":{"display_login":"piscis"}}