{"action":"created","issue":{"url":"https://api.github.com/repos/yii2mod/yii2-enum/issues/2","labels_url":"https://api.github.com/repos/yii2mod/yii2-enum/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/yii2mod/yii2-enum/issues/2/comments","events_url":"https://api.github.com/repos/yii2mod/yii2-enum/issues/2/events","html_url":"https://github.com/yii2mod/yii2-enum/issues/2","id":102285208,"number":2,"title":"Enum Migrations","user":{"login":"vercotux","id":2930526,"avatar_url":"https://avatars.githubusercontent.com/u/2930526?v=3","gravatar_id":"","url":"https://api.github.com/users/vercotux","html_url":"https://github.com/vercotux","followers_url":"https://api.github.com/users/vercotux/followers","following_url":"https://api.github.com/users/vercotux/following{/other_user}","gists_url":"https://api.github.com/users/vercotux/gists{/gist_id}","starred_url":"https://api.github.com/users/vercotux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vercotux/subscriptions","organizations_url":"https://api.github.com/users/vercotux/orgs","repos_url":"https://api.github.com/users/vercotux/repos","events_url":"https://api.github.com/users/vercotux/events{/privacy}","received_events_url":"https://api.github.com/users/vercotux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-21T03:00:57Z","updated_at":"2015-09-21T19:26:59Z","closed_at":null,"body":"An incredibly useful feature would be the ability to migrate/synchronize enums into the database. This is just a proposal. I will probably end up implementing it myself, but I wanted to share the idea.\r\n\r\nHaving a class like *EnumMigration* which extends from *Migration* that:\r\n * Requires one single parameter: the enum class\r\n * Creates the enum table in the database if it does not yet exist\r\n * Inserts all missing enum KV pairs\r\n * Removes all nonexisting enum KV pairs"},"comment":{"url":"https://api.github.com/repos/yii2mod/yii2-enum/issues/comments/142085076","html_url":"https://github.com/yii2mod/yii2-enum/issues/2#issuecomment-142085076","issue_url":"https://api.github.com/repos/yii2mod/yii2-enum/issues/2","id":142085076,"user":{"login":"disem","id":672118,"avatar_url":"https://avatars.githubusercontent.com/u/672118?v=3","gravatar_id":"","url":"https://api.github.com/users/disem","html_url":"https://github.com/disem","followers_url":"https://api.github.com/users/disem/followers","following_url":"https://api.github.com/users/disem/following{/other_user}","gists_url":"https://api.github.com/users/disem/gists{/gist_id}","starred_url":"https://api.github.com/users/disem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/disem/subscriptions","organizations_url":"https://api.github.com/users/disem/orgs","repos_url":"https://api.github.com/users/disem/repos","events_url":"https://api.github.com/users/disem/events{/privacy}","received_events_url":"https://api.github.com/users/disem/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T19:26:59Z","updated_at":"2015-09-21T19:26:59Z","body":"Can you provide use case for this feature? Not sure I understand it's purpose.."}}