{"action":"created","issue":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/1842","repository_url":"https://api.github.com/repos/typeorm/typeorm","labels_url":"https://api.github.com/repos/typeorm/typeorm/issues/1842/labels{/name}","comments_url":"https://api.github.com/repos/typeorm/typeorm/issues/1842/comments","events_url":"https://api.github.com/repos/typeorm/typeorm/issues/1842/events","html_url":"https://github.com/typeorm/typeorm/issues/1842","id":309245170,"node_id":"MDU6SXNzdWUzMDkyNDUxNzA=","number":1842,"title":"Do not generate enum values in enum columns","user":{"login":"hillin","id":13517745,"node_id":"MDQ6VXNlcjEzNTE3NzQ1","avatar_url":"https://avatars0.githubusercontent.com/u/13517745?v=4","gravatar_id":"","url":"https://api.github.com/users/hillin","html_url":"https://github.com/hillin","followers_url":"https://api.github.com/users/hillin/followers","following_url":"https://api.github.com/users/hillin/following{/other_user}","gists_url":"https://api.github.com/users/hillin/gists{/gist_id}","starred_url":"https://api.github.com/users/hillin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hillin/subscriptions","organizations_url":"https://api.github.com/users/hillin/orgs","repos_url":"https://api.github.com/users/hillin/repos","events_url":"https://api.github.com/users/hillin/events{/privacy}","received_events_url":"https://api.github.com/users/hillin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-03-28T07:07:05Z","updated_at":"2018-12-18T05:58:12Z","closed_at":"2018-03-28T09:41:50Z","author_association":"NONE","body":"**Issue type:**\r\n\r\n[ ] question\r\n[ ] bug report\r\n[x] feature request\r\n[ ] documentation issue\r\n\r\n**Database system/driver:**\r\n\r\n[ ] `cordova`\r\n[ ] `mongodb`\r\n[ ] `mssql`\r\n[x] `mysql` / `mariadb`\r\n[ ] `oracle`\r\n[ ] `postgres`\r\n[ ] `sqlite`\r\n[ ] `sqljs`\r\n[ ] `websql`\r\n\r\n**TypeORM version:**\r\n\r\n[x] `latest`\r\n[ ] `@next`\r\n[ ] `0.x.x` (or put your version here)\r\n\r\n**Steps to reproduce or a small repository showing the problem:**\r\n\r\nWhen generating a migration, a column of `enum` type will emit an `enum` clause in the generated SQL, where both the enum keys and values are included. For instance,\r\n\r\n```typescript\r\nenum Colors {\r\n  Red,\r\n  Green,\r\n  Blue\r\n}\r\n\r\n@Column(\"enum\", { enum: Colors })\r\npublic color: Colors;\r\n```\r\n\r\nwill emit\r\n```sql\r\n`color` enum('Red', 'Green', 'Blue', '0', '1', '2') NOT NULL\r\n```\r\nwhere I believe `'0', '1', '2'` is not desired in most scenarios. I hope there is at least an option to allow only generating the keys, but omitting the values."},"comment":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/comments/448106211","html_url":"https://github.com/typeorm/typeorm/issues/1842#issuecomment-448106211","issue_url":"https://api.github.com/repos/typeorm/typeorm/issues/1842","id":448106211,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODEwNjIxMQ==","user":{"login":"pleerock","id":1753397,"node_id":"MDQ6VXNlcjE3NTMzOTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1753397?v=4","gravatar_id":"","url":"https://api.github.com/users/pleerock","html_url":"https://github.com/pleerock","followers_url":"https://api.github.com/users/pleerock/followers","following_url":"https://api.github.com/users/pleerock/following{/other_user}","gists_url":"https://api.github.com/users/pleerock/gists{/gist_id}","starred_url":"https://api.github.com/users/pleerock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pleerock/subscriptions","organizations_url":"https://api.github.com/users/pleerock/orgs","repos_url":"https://api.github.com/users/pleerock/repos","events_url":"https://api.github.com/users/pleerock/events{/privacy}","received_events_url":"https://api.github.com/users/pleerock/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T05:58:12Z","updated_at":"2018-12-18T05:58:12Z","author_association":"MEMBER","body":"`+1` for what? As I told this is how TypeScript behaves (read my first comment)"}}
{"actor":{"display_login":"pleerock"}}