{"action":"created","comment":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments/33101662","id":33101662,"diff_hunk":"@@ -0,0 +1,412 @@\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+/**\n+ * SchemaBuilder is the class help to define DB's schema types.\n+ *\n+ * For example you may use the following code inside your migration files:\n+ *\n+ * ```php\n+ * $this->createTable('{{table}}', [\n+ *   'name' => Schema::string(64)->notNull(),\n+ *   'type' => Schema::integer()->notNull()->default(10),\n+ *   'description' => Schema::text(),\n+ *   'rule_name' => Schema::string(64),\n+ *   'data' => Schema::text(),\n+ *   'created_at' => Schema::integer(),\n+ *   'updated_at' => Schema::integer(),\n+ *]);\n+ * ```\n+ *\n+ * @method SchemaBuilder default($default = null) see [[SchemaBuilder::_default()]] for more info\n+ *\n+ * @author Vasenin Matvey <vaseninm@gmail.com>\n+ * @since 2.0.5\n+ */\n+abstract class SchemaBuilder extends Object\n+{\n+    /**\n+     * @var string column schema\n+     */\n+    protected $schema = null;","path":"framework/db/SchemaBuilder.php","position":40,"original_position":40,"commit_id":"ea287d9162f3f2af86290e8c83f009786d59f529","original_commit_id":"ea287d9162f3f2af86290e8c83f009786d59f529","user":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"body":"better name: `$type`, this is not the schema but the column data type.","created_at":"2015-06-23T22:47:38Z","updated_at":"2015-06-23T22:47:38Z","html_url":"https://github.com/yiisoft/yii2/pull/8833#discussion_r33101662","pull_request_url":"https://api.github.com/repos/yiisoft/yii2/pulls/8833","_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments/33101662"},"html":{"href":"https://github.com/yiisoft/yii2/pull/8833#discussion_r33101662"},"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-23T22:47:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bec682d2d5b84ec6352132d11905898eac54b8d2","assignee":{"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},"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/13","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.5","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/13/labels","id":1000704,"number":13,"title":"2.0.5","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":68,"closed_issues":75,"state":"open","created_at":"2015-03-01T16:03:07Z","updated_at":"2015-06-21T21:19:25Z","due_on":"2015-07-26T04:00:00Z","closed_at":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/ea287d9162f3f2af86290e8c83f009786d59f529","head":{"label":"vaseninm:master","ref":"master","sha":"ea287d9162f3f2af86290e8c83f009786d59f529","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-22T14:06:46Z","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":37910,"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-23T18:30:21Z","pushed_at":"2015-06-23T17:34:05Z","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":91525,"stargazers_count":6006,"watchers_count":6006,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3413,"mirror_url":null,"open_issues_count":824,"forks":3413,"open_issues":824,"watchers":6006,"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/ea287d9162f3f2af86290e8c83f009786d59f529"}}}}