{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/10183","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/10183/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/10183/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/10183/events","html_url":"https://github.com/yiisoft/yii2/issues/10183","id":117568248,"number":10183,"title":"Неправильное накатывание миграции PostgreSQL","user":{"login":"exru","id":5754949,"avatar_url":"https://avatars.githubusercontent.com/u/5754949?v=3","gravatar_id":"","url":"https://api.github.com/users/exru","html_url":"https://github.com/exru","followers_url":"https://api.github.com/users/exru/followers","following_url":"https://api.github.com/users/exru/following{/other_user}","gists_url":"https://api.github.com/users/exru/gists{/gist_id}","starred_url":"https://api.github.com/users/exru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exru/subscriptions","organizations_url":"https://api.github.com/users/exru/orgs","repos_url":"https://api.github.com/users/exru/repos","events_url":"https://api.github.com/users/exru/events{/privacy}","received_events_url":"https://api.github.com/users/exru/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-18T11:34:18Z","updated_at":"2015-11-18T11:44:58Z","closed_at":"2015-11-18T11:44:58Z","body":"```php\r\n$this->createTable('{{%auction_log}}', [\r\n            'id' => $this->primaryKey(),                # ID\r\n            'auction_id' => $this->integer(),           # ID аукциона\r\n            'date' => $this->timestamp()->defaultValue('current_timestamp'),\r\n            'category' => $this->string(),              # Категория сообщений\r\n            'message' => $this->text(),                 # Сообщение\r\n        ]);\r\n/*\r\n> create table {{%auction_log}} ...Exception: SQLSTATE[0A000]: Feature not supported: 7 ОШИБКА:  значение \"current\" для даты/времени больше не поддерживается\r\nThe SQL being executed was: CREATE TABLE \"auction_log\" (\r\n        \"id\" serial NOT NULL PRIMARY KEY,\r\n        \"auction_id\" integer,\r\n        \"date\" timestamp(0) DEFAULT 'current_timestamp',\r\n        \"category\" varchar(255),\r\n        \"message\" text\r\n)\r\npsql (PostgreSQL) 9.4.5\r\n*/\r\n```"}}