{"action":"created","issue":{"url":"https://api.github.com/repos/robmorgan/phinx/issues/710","labels_url":"https://api.github.com/repos/robmorgan/phinx/issues/710/labels{/name}","comments_url":"https://api.github.com/repos/robmorgan/phinx/issues/710/comments","events_url":"https://api.github.com/repos/robmorgan/phinx/issues/710/events","html_url":"https://github.com/robmorgan/phinx/issues/710","id":121625236,"number":710,"title":"Can't rollback 'create table' using option [id => true] on PostgreSQL","user":{"login":"ikagawa","id":436164,"avatar_url":"https://avatars.githubusercontent.com/u/436164?v=3","gravatar_id":"","url":"https://api.github.com/users/ikagawa","html_url":"https://github.com/ikagawa","followers_url":"https://api.github.com/users/ikagawa/followers","following_url":"https://api.github.com/users/ikagawa/following{/other_user}","gists_url":"https://api.github.com/users/ikagawa/gists{/gist_id}","starred_url":"https://api.github.com/users/ikagawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikagawa/subscriptions","organizations_url":"https://api.github.com/users/ikagawa/orgs","repos_url":"https://api.github.com/users/ikagawa/repos","events_url":"https://api.github.com/users/ikagawa/events{/privacy}","received_events_url":"https://api.github.com/users/ikagawa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-11T02:54:11Z","updated_at":"2015-12-15T09:44:54Z","closed_at":"2015-12-15T05:37:27Z","body":"When I executed migrate command with a code below:\r\n```php\r\npublic function change()\r\n{\r\n    $users = $this->table('users', ['id' => true]);\r\n    $users->addColumn('username', 'text')\r\n          ->addColumn('password', 'text')\r\n          ->save();\r\n}\r\n```\r\nusers table was created correctly.\r\n```sql\r\nCREATE TABLE users\r\n(\r\n  id serial NOT NULL,\r\n  username text NOT NULL,\r\n  password text NOT NULL,\r\n  CONSTRAINT users_pkey PRIMARY KEY (id)\r\n)\r\n```\r\nBut I executed rollback command, users table was still remaining as below:\r\n```sql\r\nCREATE TABLE users\r\n(\r\n  id serial NOT NULL,\r\n  CONSTRAINT users_pkey PRIMARY KEY (id)\r\n)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/robmorgan/phinx/issues/comments/164704170","html_url":"https://github.com/robmorgan/phinx/issues/710#issuecomment-164704170","issue_url":"https://api.github.com/repos/robmorgan/phinx/issues/710","id":164704170,"user":{"login":"robmorgan","id":178939,"avatar_url":"https://avatars.githubusercontent.com/u/178939?v=3","gravatar_id":"","url":"https://api.github.com/users/robmorgan","html_url":"https://github.com/robmorgan","followers_url":"https://api.github.com/users/robmorgan/followers","following_url":"https://api.github.com/users/robmorgan/following{/other_user}","gists_url":"https://api.github.com/users/robmorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/robmorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robmorgan/subscriptions","organizations_url":"https://api.github.com/users/robmorgan/orgs","repos_url":"https://api.github.com/users/robmorgan/repos","events_url":"https://api.github.com/users/robmorgan/events{/privacy}","received_events_url":"https://api.github.com/users/robmorgan/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T09:44:54Z","updated_at":"2015-12-15T09:44:54Z","body":"@ikagawa yes when using the `change()` method always be sure to use either `create()` or `update()`"}}