{"action":"created","comment":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/comments/53625289","id":53625289,"diff_hunk":"@@ -30,7 +30,7 @@ public function up(Schema $schema)\n         $this->addSql('CREATE TABLE sylius_product_review (id INT AUTO_INCREMENT NOT NULL, product_id INT NOT NULL, author_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, rating INT NOT NULL, comment LONGTEXT DEFAULT NULL, status VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_C7056A994584665A (product_id), INDEX IDX_C7056A99F675F31B (author_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n         $this->addSql('ALTER TABLE sylius_product_review ADD CONSTRAINT FK_C7056A994584665A FOREIGN KEY (product_id) REFERENCES sylius_product (id) ON DELETE CASCADE');\n         $this->addSql('ALTER TABLE sylius_product_review ADD CONSTRAINT FK_C7056A99F675F31B FOREIGN KEY (author_id) REFERENCES sylius_customer (id)');\n-        $this->addSql('ALTER TABLE sylius_product ADD average_rating DOUBLE PRECISION DEFAULT NULL');\n+        $this->addSql('ALTER TABLE sylius_product ADD average_rating DOUBLE PRECISION NOT NULL');","path":"app/migrations/Version20160205083520.php","position":5,"original_position":5,"commit_id":"78d8e95de46dc2668ef33b200e37e10e207ff8cd","original_commit_id":"78d8e95de46dc2668ef33b200e37e10e207ff8cd","user":{"login":"michalmarcinkowski","id":7572437,"avatar_url":"https://avatars.githubusercontent.com/u/7572437?v=3","gravatar_id":"","url":"https://api.github.com/users/michalmarcinkowski","html_url":"https://github.com/michalmarcinkowski","followers_url":"https://api.github.com/users/michalmarcinkowski/followers","following_url":"https://api.github.com/users/michalmarcinkowski/following{/other_user}","gists_url":"https://api.github.com/users/michalmarcinkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/michalmarcinkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalmarcinkowski/subscriptions","organizations_url":"https://api.github.com/users/michalmarcinkowski/orgs","repos_url":"https://api.github.com/users/michalmarcinkowski/repos","events_url":"https://api.github.com/users/michalmarcinkowski/events{/privacy}","received_events_url":"https://api.github.com/users/michalmarcinkowski/received_events","type":"User","site_admin":false},"body":"How about ...DOUBLE PRECISION NOT NULL **DEFAULT 0**?","created_at":"2016-02-22T13:41:55Z","updated_at":"2016-02-22T13:41:55Z","html_url":"https://github.com/Sylius/Sylius/pull/4254#discussion_r53625289","pull_request_url":"https://api.github.com/repos/Sylius/Sylius/pulls/4254","_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/comments/53625289"},"html":{"href":"https://github.com/Sylius/Sylius/pull/4254#discussion_r53625289"},"pull_request":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/4254"}}},"pull_request":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/4254","id":60172891,"html_url":"https://github.com/Sylius/Sylius/pull/4254","diff_url":"https://github.com/Sylius/Sylius/pull/4254.diff","patch_url":"https://github.com/Sylius/Sylius/pull/4254.patch","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/4254","number":4254,"state":"open","locked":false,"title":"[review] - migration fix to be consistent with model","user":{"login":"nakashu","id":1550659,"avatar_url":"https://avatars.githubusercontent.com/u/1550659?v=3","gravatar_id":"","url":"https://api.github.com/users/nakashu","html_url":"https://github.com/nakashu","followers_url":"https://api.github.com/users/nakashu/followers","following_url":"https://api.github.com/users/nakashu/following{/other_user}","gists_url":"https://api.github.com/users/nakashu/gists{/gist_id}","starred_url":"https://api.github.com/users/nakashu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakashu/subscriptions","organizations_url":"https://api.github.com/users/nakashu/orgs","repos_url":"https://api.github.com/users/nakashu/repos","events_url":"https://api.github.com/users/nakashu/events{/privacy}","received_events_url":"https://api.github.com/users/nakashu/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Fixed tickets | #4248\r\n| License       | MIT\r\n","created_at":"2016-02-22T13:29:53Z","updated_at":"2016-02-22T13:41:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f6064dff3a3459455e48f404282aa0cee1fda86","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sylius/Sylius/pulls/4254/commits","review_comments_url":"https://api.github.com/repos/Sylius/Sylius/pulls/4254/comments","review_comment_url":"https://api.github.com/repos/Sylius/Sylius/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/4254/comments","statuses_url":"https://api.github.com/repos/Sylius/Sylius/statuses/78d8e95de46dc2668ef33b200e37e10e207ff8cd","head":{"label":"nakashu:fix/average_rating-review-migration","ref":"fix/average_rating-review-migration","sha":"78d8e95de46dc2668ef33b200e37e10e207ff8cd","user":{"login":"nakashu","id":1550659,"avatar_url":"https://avatars.githubusercontent.com/u/1550659?v=3","gravatar_id":"","url":"https://api.github.com/users/nakashu","html_url":"https://github.com/nakashu","followers_url":"https://api.github.com/users/nakashu/followers","following_url":"https://api.github.com/users/nakashu/following{/other_user}","gists_url":"https://api.github.com/users/nakashu/gists{/gist_id}","starred_url":"https://api.github.com/users/nakashu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakashu/subscriptions","organizations_url":"https://api.github.com/users/nakashu/orgs","repos_url":"https://api.github.com/users/nakashu/repos","events_url":"https://api.github.com/users/nakashu/events{/privacy}","received_events_url":"https://api.github.com/users/nakashu/received_events","type":"User","site_admin":false},"repo":{"id":42724236,"name":"Sylius","full_name":"nakashu/Sylius","owner":{"login":"nakashu","id":1550659,"avatar_url":"https://avatars.githubusercontent.com/u/1550659?v=3","gravatar_id":"","url":"https://api.github.com/users/nakashu","html_url":"https://github.com/nakashu","followers_url":"https://api.github.com/users/nakashu/followers","following_url":"https://api.github.com/users/nakashu/following{/other_user}","gists_url":"https://api.github.com/users/nakashu/gists{/gist_id}","starred_url":"https://api.github.com/users/nakashu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakashu/subscriptions","organizations_url":"https://api.github.com/users/nakashu/orgs","repos_url":"https://api.github.com/users/nakashu/repos","events_url":"https://api.github.com/users/nakashu/events{/privacy}","received_events_url":"https://api.github.com/users/nakashu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nakashu/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":true,"url":"https://api.github.com/repos/nakashu/Sylius","forks_url":"https://api.github.com/repos/nakashu/Sylius/forks","keys_url":"https://api.github.com/repos/nakashu/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nakashu/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nakashu/Sylius/teams","hooks_url":"https://api.github.com/repos/nakashu/Sylius/hooks","issue_events_url":"https://api.github.com/repos/nakashu/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/nakashu/Sylius/events","assignees_url":"https://api.github.com/repos/nakashu/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/nakashu/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/nakashu/Sylius/tags","blobs_url":"https://api.github.com/repos/nakashu/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nakashu/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nakashu/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/nakashu/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nakashu/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/nakashu/Sylius/languages","stargazers_url":"https://api.github.com/repos/nakashu/Sylius/stargazers","contributors_url":"https://api.github.com/repos/nakashu/Sylius/contributors","subscribers_url":"https://api.github.com/repos/nakashu/Sylius/subscribers","subscription_url":"https://api.github.com/repos/nakashu/Sylius/subscription","commits_url":"https://api.github.com/repos/nakashu/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/nakashu/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/nakashu/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/nakashu/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/nakashu/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/nakashu/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nakashu/Sylius/merges","archive_url":"https://api.github.com/repos/nakashu/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nakashu/Sylius/downloads","issues_url":"https://api.github.com/repos/nakashu/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/nakashu/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/nakashu/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/nakashu/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nakashu/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/nakashu/Sylius/releases{/id}","deployments_url":"https://api.github.com/repos/nakashu/Sylius/deployments","created_at":"2015-09-18T13:35:58Z","updated_at":"2016-02-11T22:25:23Z","pushed_at":"2016-02-22T13:28:28Z","git_url":"git://github.com/nakashu/Sylius.git","ssh_url":"git@github.com:nakashu/Sylius.git","clone_url":"https://github.com/nakashu/Sylius.git","svn_url":"https://github.com/nakashu/Sylius","homepage":"Sylius.org","size":25963,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Sylius:master","ref":"master","sha":"a3de2be54353cf42e17368481da1566b09557343","user":{"login":"Sylius","id":719423,"avatar_url":"https://avatars.githubusercontent.com/u/719423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylius","html_url":"https://github.com/Sylius","followers_url":"https://api.github.com/users/Sylius/followers","following_url":"https://api.github.com/users/Sylius/following{/other_user}","gists_url":"https://api.github.com/users/Sylius/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylius/subscriptions","organizations_url":"https://api.github.com/users/Sylius/orgs","repos_url":"https://api.github.com/users/Sylius/repos","events_url":"https://api.github.com/users/Sylius/events{/privacy}","received_events_url":"https://api.github.com/users/Sylius/received_events","type":"Organization","site_admin":false},"repo":{"id":2717549,"name":"Sylius","full_name":"Sylius/Sylius","owner":{"login":"Sylius","id":719423,"avatar_url":"https://avatars.githubusercontent.com/u/719423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylius","html_url":"https://github.com/Sylius","followers_url":"https://api.github.com/users/Sylius/followers","following_url":"https://api.github.com/users/Sylius/following{/other_user}","gists_url":"https://api.github.com/users/Sylius/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylius/subscriptions","organizations_url":"https://api.github.com/users/Sylius/orgs","repos_url":"https://api.github.com/users/Sylius/repos","events_url":"https://api.github.com/users/Sylius/events{/privacy}","received_events_url":"https://api.github.com/users/Sylius/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sylius/Sylius","description":"eCommerce PHP framework built on top of Symfony with component-based architecture and format-agnostic rendering. (HTML/JSON/XML)","fork":false,"url":"https://api.github.com/repos/Sylius/Sylius","forks_url":"https://api.github.com/repos/Sylius/Sylius/forks","keys_url":"https://api.github.com/repos/Sylius/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sylius/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sylius/Sylius/teams","hooks_url":"https://api.github.com/repos/Sylius/Sylius/hooks","issue_events_url":"https://api.github.com/repos/Sylius/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/Sylius/Sylius/events","assignees_url":"https://api.github.com/repos/Sylius/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/Sylius/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/Sylius/Sylius/tags","blobs_url":"https://api.github.com/repos/Sylius/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sylius/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sylius/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sylius/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sylius/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/Sylius/Sylius/languages","stargazers_url":"https://api.github.com/repos/Sylius/Sylius/stargazers","contributors_url":"https://api.github.com/repos/Sylius/Sylius/contributors","subscribers_url":"https://api.github.com/repos/Sylius/Sylius/subscribers","subscription_url":"https://api.github.com/repos/Sylius/Sylius/subscription","commits_url":"https://api.github.com/repos/Sylius/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sylius/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sylius/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sylius/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sylius/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/Sylius/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sylius/Sylius/merges","archive_url":"https://api.github.com/repos/Sylius/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sylius/Sylius/downloads","issues_url":"https://api.github.com/repos/Sylius/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/Sylius/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/Sylius/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/Sylius/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sylius/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/Sylius/Sylius/releases{/id}","deployments_url":"https://api.github.com/repos/Sylius/Sylius/deployments","created_at":"2011-11-05T22:05:52Z","updated_at":"2016-02-22T12:26:53Z","pushed_at":"2016-02-22T13:29:53Z","git_url":"git://github.com/Sylius/Sylius.git","ssh_url":"git@github.com:Sylius/Sylius.git","clone_url":"https://github.com/Sylius/Sylius.git","svn_url":"https://github.com/Sylius/Sylius","homepage":"http://Sylius.org","size":57385,"stargazers_count":2172,"watchers_count":2172,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":791,"mirror_url":null,"open_issues_count":548,"forks":791,"open_issues":548,"watchers":2172,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/4254"},"html":{"href":"https://github.com/Sylius/Sylius/pull/4254"},"issue":{"href":"https://api.github.com/repos/Sylius/Sylius/issues/4254"},"comments":{"href":"https://api.github.com/repos/Sylius/Sylius/issues/4254/comments"},"review_comments":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/4254/comments"},"review_comment":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/4254/commits"},"statuses":{"href":"https://api.github.com/repos/Sylius/Sylius/statuses/78d8e95de46dc2668ef33b200e37e10e207ff8cd"}}}}