{"action":"created","comment":{"url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls/comments/50367380","id":50367380,"diff_hunk":"@@ -0,0 +1,229 @@\n+<?php\n+\n+use yii\\db\\Migration;\n+\n+class m151228_072508_yii2_intent_analytics extends Migration\n+{\n+    public function up()\n+    {\n+        mb_internal_encoding(\"UTF-8\");\n+        $tableOptions = $this->db->driverName === 'mysql'\n+            ? 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'\n+            : null;\n+\n+        $this->createTable(\n+            '{{%analytics_categories}}',\n+            [\n+                'id' =>$this->primaryKey(),\n+                'name' => $this->string()->defaultValue('')->notNull(),\n+            ],\n+            $tableOptions\n+        );\n+\n+        $this->createTable(\n+            '{{%analytics_goal}}',\n+            [\n+                'id' => $this->primaryKey(),\n+                'name' => $this->text(),\n+                'is_transactional' => $this->boolean()->notNull()->defaultValue(0),\n+                'analytics_categories_id' => $this->integer(10)->notNull(),\n+                'ga_action_name' => $this->string(),","path":"src/migrations/m151228_072508_yii2_intent_analytics.php","position":30,"original_position":30,"commit_id":"b6a41966df5512a5127207cfd6fd9fbc214cb130","original_commit_id":"b6a41966df5512a5127207cfd6fd9fbc214cb130","user":{"login":"bethrezen","id":260284,"avatar_url":"https://avatars.githubusercontent.com/u/260284?v=3","gravatar_id":"","url":"https://api.github.com/users/bethrezen","html_url":"https://github.com/bethrezen","followers_url":"https://api.github.com/users/bethrezen/followers","following_url":"https://api.github.com/users/bethrezen/following{/other_user}","gists_url":"https://api.github.com/users/bethrezen/gists{/gist_id}","starred_url":"https://api.github.com/users/bethrezen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethrezen/subscriptions","organizations_url":"https://api.github.com/users/bethrezen/orgs","repos_url":"https://api.github.com/users/bethrezen/repos","events_url":"https://api.github.com/users/bethrezen/events{/privacy}","received_events_url":"https://api.github.com/users/bethrezen/received_events","type":"User","site_admin":false},"body":"not null, default ''","created_at":"2016-01-21T07:20:32Z","updated_at":"2016-01-21T07:20:32Z","html_url":"https://github.com/DevGroup-ru/yii2-intent-analytics/pull/3#discussion_r50367380","pull_request_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls/comments/50367380"},"html":{"href":"https://github.com/DevGroup-ru/yii2-intent-analytics/pull/3#discussion_r50367380"},"pull_request":{"href":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls/3","id":56684615,"html_url":"https://github.com/DevGroup-ru/yii2-intent-analytics/pull/3","diff_url":"https://github.com/DevGroup-ru/yii2-intent-analytics/pull/3.diff","patch_url":"https://github.com/DevGroup-ru/yii2-intent-analytics/pull/3.patch","issue_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/issues/3","number":3,"state":"open","locked":false,"title":"orthodox commit","user":{"login":"duvanskiy","id":8914543,"avatar_url":"https://avatars.githubusercontent.com/u/8914543?v=3","gravatar_id":"","url":"https://api.github.com/users/duvanskiy","html_url":"https://github.com/duvanskiy","followers_url":"https://api.github.com/users/duvanskiy/followers","following_url":"https://api.github.com/users/duvanskiy/following{/other_user}","gists_url":"https://api.github.com/users/duvanskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/duvanskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duvanskiy/subscriptions","organizations_url":"https://api.github.com/users/duvanskiy/orgs","repos_url":"https://api.github.com/users/duvanskiy/repos","events_url":"https://api.github.com/users/duvanskiy/events{/privacy}","received_events_url":"https://api.github.com/users/duvanskiy/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-20T23:37:37Z","updated_at":"2016-01-21T07:20:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07681e995660cf7f3626f81fc198cf398c82168a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls/3/commits","review_comments_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls/3/comments","review_comment_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/issues/3/comments","statuses_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/statuses/b6a41966df5512a5127207cfd6fd9fbc214cb130","head":{"label":"duvanskiy:addVisitorAndSession","ref":"addVisitorAndSession","sha":"b6a41966df5512a5127207cfd6fd9fbc214cb130","user":{"login":"duvanskiy","id":8914543,"avatar_url":"https://avatars.githubusercontent.com/u/8914543?v=3","gravatar_id":"","url":"https://api.github.com/users/duvanskiy","html_url":"https://github.com/duvanskiy","followers_url":"https://api.github.com/users/duvanskiy/followers","following_url":"https://api.github.com/users/duvanskiy/following{/other_user}","gists_url":"https://api.github.com/users/duvanskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/duvanskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duvanskiy/subscriptions","organizations_url":"https://api.github.com/users/duvanskiy/orgs","repos_url":"https://api.github.com/users/duvanskiy/repos","events_url":"https://api.github.com/users/duvanskiy/events{/privacy}","received_events_url":"https://api.github.com/users/duvanskiy/received_events","type":"User","site_admin":false},"repo":{"id":48698181,"name":"yii2-intent-analytics","full_name":"duvanskiy/yii2-intent-analytics","owner":{"login":"duvanskiy","id":8914543,"avatar_url":"https://avatars.githubusercontent.com/u/8914543?v=3","gravatar_id":"","url":"https://api.github.com/users/duvanskiy","html_url":"https://github.com/duvanskiy","followers_url":"https://api.github.com/users/duvanskiy/followers","following_url":"https://api.github.com/users/duvanskiy/following{/other_user}","gists_url":"https://api.github.com/users/duvanskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/duvanskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duvanskiy/subscriptions","organizations_url":"https://api.github.com/users/duvanskiy/orgs","repos_url":"https://api.github.com/users/duvanskiy/repos","events_url":"https://api.github.com/users/duvanskiy/events{/privacy}","received_events_url":"https://api.github.com/users/duvanskiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duvanskiy/yii2-intent-analytics","description":"Visitors intent analytics and integration with Google Analytics and Yandex.Metrika for Yii framework 2","fork":true,"url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics","forks_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/forks","keys_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/teams","hooks_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/hooks","issue_events_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/issues/events{/number}","events_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/events","assignees_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/assignees{/user}","branches_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/branches{/branch}","tags_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/tags","blobs_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/git/refs{/sha}","trees_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/statuses/{sha}","languages_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/languages","stargazers_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/stargazers","contributors_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/contributors","subscribers_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/subscribers","subscription_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/subscription","commits_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/commits{/sha}","git_commits_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/git/commits{/sha}","comments_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/comments{/number}","issue_comment_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/issues/comments{/number}","contents_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/contents/{+path}","compare_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/merges","archive_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/downloads","issues_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/issues{/number}","pulls_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/pulls{/number}","milestones_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/milestones{/number}","notifications_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/labels{/name}","releases_url":"https://api.github.com/repos/duvanskiy/yii2-intent-analytics/releases{/id}","created_at":"2015-12-28T15:14:01Z","updated_at":"2015-12-28T15:14:02Z","pushed_at":"2016-01-20T23:36:50Z","git_url":"git://github.com/duvanskiy/yii2-intent-analytics.git","ssh_url":"git@github.com:duvanskiy/yii2-intent-analytics.git","clone_url":"https://github.com/duvanskiy/yii2-intent-analytics.git","svn_url":"https://github.com/duvanskiy/yii2-intent-analytics","homepage":null,"size":101,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"DevGroup-ru:master","ref":"master","sha":"8a701329b692730527f58de45e2f38b1d9da5d8b","user":{"login":"DevGroup-ru","id":1660335,"avatar_url":"https://avatars.githubusercontent.com/u/1660335?v=3","gravatar_id":"","url":"https://api.github.com/users/DevGroup-ru","html_url":"https://github.com/DevGroup-ru","followers_url":"https://api.github.com/users/DevGroup-ru/followers","following_url":"https://api.github.com/users/DevGroup-ru/following{/other_user}","gists_url":"https://api.github.com/users/DevGroup-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/DevGroup-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevGroup-ru/subscriptions","organizations_url":"https://api.github.com/users/DevGroup-ru/orgs","repos_url":"https://api.github.com/users/DevGroup-ru/repos","events_url":"https://api.github.com/users/DevGroup-ru/events{/privacy}","received_events_url":"https://api.github.com/users/DevGroup-ru/received_events","type":"Organization","site_admin":false},"repo":{"id":47138504,"name":"yii2-intent-analytics","full_name":"DevGroup-ru/yii2-intent-analytics","owner":{"login":"DevGroup-ru","id":1660335,"avatar_url":"https://avatars.githubusercontent.com/u/1660335?v=3","gravatar_id":"","url":"https://api.github.com/users/DevGroup-ru","html_url":"https://github.com/DevGroup-ru","followers_url":"https://api.github.com/users/DevGroup-ru/followers","following_url":"https://api.github.com/users/DevGroup-ru/following{/other_user}","gists_url":"https://api.github.com/users/DevGroup-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/DevGroup-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevGroup-ru/subscriptions","organizations_url":"https://api.github.com/users/DevGroup-ru/orgs","repos_url":"https://api.github.com/users/DevGroup-ru/repos","events_url":"https://api.github.com/users/DevGroup-ru/events{/privacy}","received_events_url":"https://api.github.com/users/DevGroup-ru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DevGroup-ru/yii2-intent-analytics","description":"Visitors intent analytics and integration with Google Analytics and Yandex.Metrika for Yii framework 2","fork":false,"url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics","forks_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/forks","keys_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/teams","hooks_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/hooks","issue_events_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/issues/events{/number}","events_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/events","assignees_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/assignees{/user}","branches_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/branches{/branch}","tags_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/tags","blobs_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/statuses/{sha}","languages_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/languages","stargazers_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/stargazers","contributors_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/contributors","subscribers_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/subscribers","subscription_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/subscription","commits_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/contents/{+path}","compare_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/merges","archive_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/downloads","issues_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/issues{/number}","pulls_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls{/number}","milestones_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/milestones{/number}","notifications_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/labels{/name}","releases_url":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/releases{/id}","created_at":"2015-11-30T18:41:30Z","updated_at":"2015-12-07T08:11:53Z","pushed_at":"2016-01-20T23:37:38Z","git_url":"git://github.com/DevGroup-ru/yii2-intent-analytics.git","ssh_url":"git@github.com:DevGroup-ru/yii2-intent-analytics.git","clone_url":"https://github.com/DevGroup-ru/yii2-intent-analytics.git","svn_url":"https://github.com/DevGroup-ru/yii2-intent-analytics","homepage":null,"size":57,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls/3"},"html":{"href":"https://github.com/DevGroup-ru/yii2-intent-analytics/pull/3"},"issue":{"href":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/issues/3"},"comments":{"href":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/DevGroup-ru/yii2-intent-analytics/statuses/b6a41966df5512a5127207cfd6fd9fbc214cb130"}}}}