{"action":"created","comment":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments/32719512","id":32719512,"diff_hunk":"@@ -0,0 +1,204 @@\n+<?php\n+/**\n+ * @link http://www.yiiframework.com/\n+ * @copyright Copyright (c) 2008 Yii Software LLC\n+ * @license http://www.yiiframework.com/license/\n+ */\n+\n+namespace yii\\db;\n+\n+use Yii;\n+use yii\\base\\Object;\n+\n+abstract class SchemaBuilder extends Object\n+{\n+    protected $schema = null;\n+    protected $length = null;\n+    protected $isNull = null;\n+    protected $check = null;\n+    protected $default = null;\n+\n+    public static function primaryKey($length = null)\n+    {\n+        return static::createDefault(Schema::TYPE_PK, $length);\n+    }\n+\n+    public static function bigPrimaryKey($length = null)\n+    {\n+        return static::createDefault(Schema::TYPE_BIGPK, $length);\n+    }\n+\n+    public static function string($length = null)\n+    {\n+        return static::createDefault(Schema::TYPE_STRING, $length);\n+    }\n+\n+    public static function text($length = null)\n+    {\n+        return static::createDefault(Schema::TYPE_TEXT, $length);\n+    }\n+\n+    public static function smallint($length = null)\n+    {\n+        return static::createDefault(Schema::TYPE_SMALLINT, $length);\n+    }\n+\n+    public static function integer($length = null)\n+    {\n+        return static::createDefault(Schema::TYPE_INTEGER, $length);\n+    }\n+\n+    public static function bigint($length = null)\n+    {\n+        return static::createDefault(Schema::TYPE_BIGINT, $length);\n+    }\n+\n+    public static function float($precision = null, $scale = null)\n+    {\n+        return static::createNumeric(Schema::TYPE_FLOAT, $precision, $scale);\n+    }\n+\n+    public static function double($precision = null, $scale = null)\n+    {\n+        return static::createNumeric(Schema::TYPE_DOUBLE, $precision, $scale);\n+    }\n+\n+    public static function decimal($precision = null, $scale = null)\n+    {\n+        return static::createNumeric(Schema::TYPE_DECIMAL, $precision, $scale);\n+    }\n+\n+    public static function datetime($length = null)","path":"framework/db/SchemaBuilder.php","position":71,"original_position":71,"commit_id":"b63e14d5e0f7d8e849c6c45ee0fb2669d1613887","original_commit_id":"b63e14d5e0f7d8e849c6c45ee0fb2669d1613887","user":{"login":"pana1990","id":6630197,"avatar_url":"https://avatars.githubusercontent.com/u/6630197?v=3","gravatar_id":"","url":"https://api.github.com/users/pana1990","html_url":"https://github.com/pana1990","followers_url":"https://api.github.com/users/pana1990/followers","following_url":"https://api.github.com/users/pana1990/following{/other_user}","gists_url":"https://api.github.com/users/pana1990/gists{/gist_id}","starred_url":"https://api.github.com/users/pana1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pana1990/subscriptions","organizations_url":"https://api.github.com/users/pana1990/orgs","repos_url":"https://api.github.com/users/pana1990/repos","events_url":"https://api.github.com/users/pana1990/events{/privacy}","received_events_url":"https://api.github.com/users/pana1990/received_events","type":"User","site_admin":false},"body":"it should be camelCase `dateTime`","created_at":"2015-06-18T11:12:04Z","updated_at":"2015-06-18T11:12:04Z","html_url":"https://github.com/yiisoft/yii2/pull/8833#discussion_r32719512","pull_request_url":"https://api.github.com/repos/yiisoft/yii2/pulls/8833","_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments/32719512"},"html":{"href":"https://github.com/yiisoft/yii2/pull/8833#discussion_r32719512"},"pull_request":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/8833"}}},"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/8833","id":37989072,"html_url":"https://github.com/yiisoft/yii2/pull/8833","diff_url":"https://github.com/yiisoft/yii2/pull/8833.diff","patch_url":"https://github.com/yiisoft/yii2/pull/8833.patch","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/8833","number":8833,"state":"open","locked":false,"title":"New migration code style issue #3335","user":{"login":"vaseninm","id":1026491,"avatar_url":"https://avatars.githubusercontent.com/u/1026491?v=3","gravatar_id":"","url":"https://api.github.com/users/vaseninm","html_url":"https://github.com/vaseninm","followers_url":"https://api.github.com/users/vaseninm/followers","following_url":"https://api.github.com/users/vaseninm/following{/other_user}","gists_url":"https://api.github.com/users/vaseninm/gists{/gist_id}","starred_url":"https://api.github.com/users/vaseninm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaseninm/subscriptions","organizations_url":"https://api.github.com/users/vaseninm/orgs","repos_url":"https://api.github.com/users/vaseninm/repos","events_url":"https://api.github.com/users/vaseninm/events{/privacy}","received_events_url":"https://api.github.com/users/vaseninm/received_events","type":"User","site_admin":false},"body":"Hi. It new migration code style from issue #3335. \r\nI wrote and successfully launched tests for mysql, postgres and sqllite. \r\nI wrote test for cubrid and oracle, but i write on macos and can't install it.\r\nI don't wrote php docs, because my english is bad. If my code is good for yii2, i write docs or somebody help me.\r\nReview my code, plz.","created_at":"2015-06-18T09:52:48Z","updated_at":"2015-06-18T11:12:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef11a19346d56c3a7ce1537511b4d5d2156d6cd4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yiisoft/yii2/pulls/8833/commits","review_comments_url":"https://api.github.com/repos/yiisoft/yii2/pulls/8833/comments","review_comment_url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8833/comments","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/b63e14d5e0f7d8e849c6c45ee0fb2669d1613887","head":{"label":"vaseninm:master","ref":"master","sha":"b63e14d5e0f7d8e849c6c45ee0fb2669d1613887","user":{"login":"vaseninm","id":1026491,"avatar_url":"https://avatars.githubusercontent.com/u/1026491?v=3","gravatar_id":"","url":"https://api.github.com/users/vaseninm","html_url":"https://github.com/vaseninm","followers_url":"https://api.github.com/users/vaseninm/followers","following_url":"https://api.github.com/users/vaseninm/following{/other_user}","gists_url":"https://api.github.com/users/vaseninm/gists{/gist_id}","starred_url":"https://api.github.com/users/vaseninm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaseninm/subscriptions","organizations_url":"https://api.github.com/users/vaseninm/orgs","repos_url":"https://api.github.com/users/vaseninm/repos","events_url":"https://api.github.com/users/vaseninm/events{/privacy}","received_events_url":"https://api.github.com/users/vaseninm/received_events","type":"User","site_admin":false},"repo":{"id":37650127,"name":"yii2","full_name":"vaseninm/yii2","owner":{"login":"vaseninm","id":1026491,"avatar_url":"https://avatars.githubusercontent.com/u/1026491?v=3","gravatar_id":"","url":"https://api.github.com/users/vaseninm","html_url":"https://github.com/vaseninm","followers_url":"https://api.github.com/users/vaseninm/followers","following_url":"https://api.github.com/users/vaseninm/following{/other_user}","gists_url":"https://api.github.com/users/vaseninm/gists{/gist_id}","starred_url":"https://api.github.com/users/vaseninm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaseninm/subscriptions","organizations_url":"https://api.github.com/users/vaseninm/orgs","repos_url":"https://api.github.com/users/vaseninm/repos","events_url":"https://api.github.com/users/vaseninm/events{/privacy}","received_events_url":"https://api.github.com/users/vaseninm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vaseninm/yii2","description":"Yii 2 framework main development repo","fork":true,"url":"https://api.github.com/repos/vaseninm/yii2","forks_url":"https://api.github.com/repos/vaseninm/yii2/forks","keys_url":"https://api.github.com/repos/vaseninm/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vaseninm/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vaseninm/yii2/teams","hooks_url":"https://api.github.com/repos/vaseninm/yii2/hooks","issue_events_url":"https://api.github.com/repos/vaseninm/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/vaseninm/yii2/events","assignees_url":"https://api.github.com/repos/vaseninm/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/vaseninm/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/vaseninm/yii2/tags","blobs_url":"https://api.github.com/repos/vaseninm/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vaseninm/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vaseninm/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/vaseninm/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vaseninm/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/vaseninm/yii2/languages","stargazers_url":"https://api.github.com/repos/vaseninm/yii2/stargazers","contributors_url":"https://api.github.com/repos/vaseninm/yii2/contributors","subscribers_url":"https://api.github.com/repos/vaseninm/yii2/subscribers","subscription_url":"https://api.github.com/repos/vaseninm/yii2/subscription","commits_url":"https://api.github.com/repos/vaseninm/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/vaseninm/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/vaseninm/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/vaseninm/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/vaseninm/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/vaseninm/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vaseninm/yii2/merges","archive_url":"https://api.github.com/repos/vaseninm/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vaseninm/yii2/downloads","issues_url":"https://api.github.com/repos/vaseninm/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/vaseninm/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/vaseninm/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/vaseninm/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vaseninm/yii2/labels{/name}","releases_url":"https://api.github.com/repos/vaseninm/yii2/releases{/id}","created_at":"2015-06-18T09:24:13Z","updated_at":"2015-06-18T09:24:17Z","pushed_at":"2015-06-18T09:26:08Z","git_url":"git://github.com/vaseninm/yii2.git","ssh_url":"git@github.com:vaseninm/yii2.git","clone_url":"https://github.com/vaseninm/yii2.git","svn_url":"https://github.com/vaseninm/yii2","homepage":"http://www.yiiframework.com","size":92234,"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":"yiisoft:master","ref":"master","sha":"bba88e481ed9ffeaba1f260bf60a268d9ce3d4df","user":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"repo":{"id":3431193,"name":"yii2","full_name":"yiisoft/yii2","owner":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yiisoft/yii2","description":"Yii 2 framework main development repo","fork":false,"url":"https://api.github.com/repos/yiisoft/yii2","forks_url":"https://api.github.com/repos/yiisoft/yii2/forks","keys_url":"https://api.github.com/repos/yiisoft/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiisoft/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiisoft/yii2/teams","hooks_url":"https://api.github.com/repos/yiisoft/yii2/hooks","issue_events_url":"https://api.github.com/repos/yiisoft/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/yiisoft/yii2/events","assignees_url":"https://api.github.com/repos/yiisoft/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/yiisoft/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/yiisoft/yii2/tags","blobs_url":"https://api.github.com/repos/yiisoft/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiisoft/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiisoft/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiisoft/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/yiisoft/yii2/languages","stargazers_url":"https://api.github.com/repos/yiisoft/yii2/stargazers","contributors_url":"https://api.github.com/repos/yiisoft/yii2/contributors","subscribers_url":"https://api.github.com/repos/yiisoft/yii2/subscribers","subscription_url":"https://api.github.com/repos/yiisoft/yii2/subscription","commits_url":"https://api.github.com/repos/yiisoft/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiisoft/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiisoft/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiisoft/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiisoft/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/yiisoft/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiisoft/yii2/merges","archive_url":"https://api.github.com/repos/yiisoft/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiisoft/yii2/downloads","issues_url":"https://api.github.com/repos/yiisoft/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/yiisoft/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/yiisoft/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/yiisoft/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiisoft/yii2/labels{/name}","releases_url":"https://api.github.com/repos/yiisoft/yii2/releases{/id}","created_at":"2012-02-13T15:32:36Z","updated_at":"2015-06-18T09:56:09Z","pushed_at":"2015-06-18T09:54:00Z","git_url":"git://github.com/yiisoft/yii2.git","ssh_url":"git@github.com:yiisoft/yii2.git","clone_url":"https://github.com/yiisoft/yii2.git","svn_url":"https://github.com/yiisoft/yii2","homepage":"http://www.yiiframework.com","size":92234,"stargazers_count":5970,"watchers_count":5970,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3392,"mirror_url":null,"open_issues_count":813,"forks":3392,"open_issues":813,"watchers":5970,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/8833"},"html":{"href":"https://github.com/yiisoft/yii2/pull/8833"},"issue":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/8833"},"comments":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/8833/comments"},"review_comments":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/8833/comments"},"review_comment":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/8833/commits"},"statuses":{"href":"https://api.github.com/repos/yiisoft/yii2/statuses/b63e14d5e0f7d8e849c6c45ee0fb2669d1613887"}}}}