{"action":"opened","issue":{"url":"https://api.github.com/repos/sdispater/orator/issues/111","repository_url":"https://api.github.com/repos/sdispater/orator","labels_url":"https://api.github.com/repos/sdispater/orator/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/sdispater/orator/issues/111/comments","events_url":"https://api.github.com/repos/sdispater/orator/issues/111/events","html_url":"https://github.com/sdispater/orator/issues/111","id":183603754,"number":111,"title":"Migration error in version 0.9.2","user":{"login":"krupenin","id":2031932,"avatar_url":"https://avatars.githubusercontent.com/u/2031932?v=3","gravatar_id":"","url":"https://api.github.com/users/krupenin","html_url":"https://github.com/krupenin","followers_url":"https://api.github.com/users/krupenin/followers","following_url":"https://api.github.com/users/krupenin/following{/other_user}","gists_url":"https://api.github.com/users/krupenin/gists{/gist_id}","starred_url":"https://api.github.com/users/krupenin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krupenin/subscriptions","organizations_url":"https://api.github.com/users/krupenin/orgs","repos_url":"https://api.github.com/users/krupenin/repos","events_url":"https://api.github.com/users/krupenin/events{/privacy}","received_events_url":"https://api.github.com/users/krupenin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-18T06:50:43Z","updated_at":"2016-10-18T06:50:43Z","closed_at":null,"body":"```\r\n$ orator migrate -c config/database.yml -vvv\r\n\r\nAre you sure you want to proceed with the migration? y\r\n\r\n\r\n\r\n  [QueryException]\r\n  syntax error at or near \"migrations\"\r\n  LINE 1: ...OM information_schema.tables WHERE table_name = ''migrations...\r\n                                                               ^\r\n   (SQL: SELECT * FROM information_schema.tables WHERE table_name = '%s' (['migrations']))\r\n\r\n\r\nException trace:\r\n /home/konstantin/projects/edotest/.venv/lib/python3.5/site-packages/cleo/application.py in run() at line 96\r\n   status_code = self.do_run(input_, output_)\r\n /home/konstantin/projects/edotest/.venv/lib/python3.5/site-packages/cleo/application.py in do_run() at line 188\r\n   status_code = command.run(input_, output_)\r\n /home/konstantin/projects/edotest/.venv/lib/python3.5/site-packages/cleo/commands/command.py in run() at line 90\r\n   return super(Command, self).run(i, o)\r\n /home/konstantin/projects/edotest/.venv/lib/python3.5/site-packages/cleo/commands/base_command.py in run() at line 144\r\n   status_code = self.execute(input_, output_)\r\n /home/konstantin/projects/edotest/.venv/lib/python3.5/site-packages/orator/commands/command.py in execute() at line 39\r\n   return self.handle()\r\n /home/konstantin/projects/edotest/.venv/lib/python3.5/site-packages/orator/commands/migrations/migrate_command.py in handle() at line 33\r\n   self._prepare_database(migrator, database)\r\n /home/konstantin/projects/edotest/.venv/lib/python3.5/site-packages/orator/commands/migrations/migrate_command.py in _prepare_database() at line 68\r\n   if not migrator.repository_exists():\r\n /home/konstantin/projects/edotest/.venv/lib/python3.5/site-packages/orator/migrations/migrator.py in repository_exists() at line 298\r\n   return self._repository.repository_exists()\r\n /home/konstantin/projects/edotest/.venv/lib/python3.5/site-packages/orator/migrations/database_migration_repository.py in repository_exists() at line 94\r\n   return schema.has_table(self._table)\r\n /home/konstantin/projects/edotest/.venv/lib/python3.5/site-packages/orator/schema/builder.py in has_table() at line 30\r\n   return len(self._connection.select(sql, [table])) > 0\r\n /home/konstantin/projects/edotest/.venv/lib/python3.5/site-packages/orator/connections/connection.py in _run() at line 34\r\n   e, query, bindings, wrapped\r\n /home/konstantin/projects/edotest/.venv/lib/python3.5/site-packages/orator/connections/connection.py in _try_again_if_caused_by_lost_connection() at line 317\r\n   raise QueryException(query, bindings, e)\r\n\r\nmigrate [-c|--config CONFIG] [-d|--database DATABASE] [-p|--path PATH] [-s|--seed] [--seed-path SEED-PATH] [-P|--pretend]\r\n```\r\n\r\nhttps://github.com/sdispater/orator/blob/bce3c000b21016d4e6804a7660838e27b0626026/orator/schema/grammars/postgres_grammar.py#L48\r\nIf you will remove the quotation marks, the error would be desapeared"}}
{"actor":{"display_login":"krupenin"}}