{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9546","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9546/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9546/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9546/events","html_url":"https://github.com/yiisoft/yii2/issues/9546","id":103837486,"number":9546,"title":"problem with new migration 2.0.6","user":{"login":"spiritdead","id":3202978,"avatar_url":"https://avatars.githubusercontent.com/u/3202978?v=3","gravatar_id":"","url":"https://api.github.com/users/spiritdead","html_url":"https://github.com/spiritdead","followers_url":"https://api.github.com/users/spiritdead/followers","following_url":"https://api.github.com/users/spiritdead/following{/other_user}","gists_url":"https://api.github.com/users/spiritdead/gists{/gist_id}","starred_url":"https://api.github.com/users/spiritdead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spiritdead/subscriptions","organizations_url":"https://api.github.com/users/spiritdead/orgs","repos_url":"https://api.github.com/users/spiritdead/repos","events_url":"https://api.github.com/users/spiritdead/events{/privacy}","received_events_url":"https://api.github.com/users/spiritdead/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:enhancement","name":"type:enhancement","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/6","html_url":"https://github.com/yiisoft/yii2/milestones/2.1.x","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/6/labels","id":458001,"number":6,"title":"2.1.x","description":"","creator":{"login":"qiangxue","id":993322,"avatar_url":"https://avatars.githubusercontent.com/u/993322?v=3","gravatar_id":"","url":"https://api.github.com/users/qiangxue","html_url":"https://github.com/qiangxue","followers_url":"https://api.github.com/users/qiangxue/followers","following_url":"https://api.github.com/users/qiangxue/following{/other_user}","gists_url":"https://api.github.com/users/qiangxue/gists{/gist_id}","starred_url":"https://api.github.com/users/qiangxue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiangxue/subscriptions","organizations_url":"https://api.github.com/users/qiangxue/orgs","repos_url":"https://api.github.com/users/qiangxue/repos","events_url":"https://api.github.com/users/qiangxue/events{/privacy}","received_events_url":"https://api.github.com/users/qiangxue/received_events","type":"User","site_admin":false},"open_issues":114,"closed_issues":0,"state":"open","created_at":"2013-10-17T21:06:09Z","updated_at":"2015-08-29T19:33:24Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-08-29T07:52:53Z","updated_at":"2015-08-29T19:33:41Z","closed_at":null,"body":"hi all im trying this\r\n\r\n'id' => Schema::TYPE_STRING . '(64) PRIMARY KEY',\r\n\r\nbut in the new migration i cant make this\r\n'id' => $this->string(64)->primaryKey();\r\n\r\nis a bug or this not exist in this case i cant define string to primary key ?\r\n\r\nmy suggestion is modify the primary key for support int and strings\r\n\r\n$this->string()->primaryKey()->autoincrement(false);\r\n\r\nor \r\n\r\n$this->string->primaryKey($autoincrement = false);\r\n\r\ni need this for the table sessions in this case \r\n```php\r\n$this->createTable('session',[\r\n            'id' => Schema::TYPE_STRING . '(64) PRIMARY KEY',\r\n            'user_id' => Schema::TYPE_INTEGER,\r\n            'ip' => Schema::TYPE_STRING,\r\n            'is_trusted' => Schema::TYPE_BOOLEAN,\r\n            'expire' => Schema::TYPE_INTEGER,\r\n            'data' => Schema::TYPE_STRING,\r\n            'controllerCurrent' => Schema::TYPE_STRING,\r\n            'actionCurrent' => Schema::TYPE_STRING,\r\n            'pageCurrent' => Schema::TYPE_STRING,\r\n            'is_guest' => Schema::TYPE_BOOLEAN,\r\n        ],$tableOptions);\r\n```\r\nin this case i don't need autoincrement,etc and the string is primary key"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/136028752","html_url":"https://github.com/yiisoft/yii2/issues/9546#issuecomment-136028752","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/9546","id":136028752,"user":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T19:33:41Z","updated_at":"2015-08-29T19:33:41Z","body":"I don't think it's possible w/o breaking compatibility."}}