{"action":"created","comment":{"url":"https://api.github.com/repos/spira/spira/pulls/comments/35735702","id":35735702,"diff_hunk":"@@ -0,0 +1,37 @@\n+<?php\n+\n+use Illuminate\\Database\\Schema\\Blueprint;\n+use Illuminate\\Database\\Migrations\\Migration;\n+\n+class CreateArticlesTable extends Migration\n+{\n+    /**\n+     * Run the migrations.\n+     *\n+     * @return void\n+     */\n+    public function up()\n+    {\n+        Schema::create(\\App\\Models\\Article::getTableName(), function (Blueprint $table) {\n+                $table->uuid('article_id')->primary();\n+                $table->string('title', 255);\n+                $table->text('content');\n+                $table->string('permalink', 255)->index()->nullable();\n+                $table->dateTime('first_published')->nullable();\n+\n+                $table->dateTime('created_at');\n+                $table->dateTime('updated_at')->nullable();\n+            }\n+        );\n+    }\n+\n+    /**\n+     * Reverse the migrations.\n+     *\n+     * @return void\n+     */\n+    public function down()\n+    {\n+        Schema::drop(\\App\\Models\\Article::getTableName());\n+    }\n+}","path":"api/database/migrations/2015_07_21_144551_create_articles_table.php","position":37,"original_position":37,"commit_id":"56a79033449e50203f2f291ec9ebfdf728fb5cea","original_commit_id":"dff046bc7281e66a8fee7537e1479c0765acc24b","user":{"login":"xiphiaz","id":721513,"avatar_url":"https://avatars.githubusercontent.com/u/721513?v=3","gravatar_id":"","url":"https://api.github.com/users/xiphiaz","html_url":"https://github.com/xiphiaz","followers_url":"https://api.github.com/users/xiphiaz/followers","following_url":"https://api.github.com/users/xiphiaz/following{/other_user}","gists_url":"https://api.github.com/users/xiphiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/xiphiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiphiaz/subscriptions","organizations_url":"https://api.github.com/users/xiphiaz/orgs","repos_url":"https://api.github.com/users/xiphiaz/repos","events_url":"https://api.github.com/users/xiphiaz/events{/privacy}","received_events_url":"https://api.github.com/users/xiphiaz/received_events","type":"User","site_admin":false},"body":"You will need to add this cascade on drop adjustment https://github.com/spira/spira/pull/105/files#diff-89db22aaca7e602ecdfba050b18317d6R36","created_at":"2015-07-29T07:58:52Z","updated_at":"2015-07-29T07:58:52Z","html_url":"https://github.com/spira/spira/pull/91#discussion_r35735702","pull_request_url":"https://api.github.com/repos/spira/spira/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/spira/spira/pulls/comments/35735702"},"html":{"href":"https://github.com/spira/spira/pull/91#discussion_r35735702"},"pull_request":{"href":"https://api.github.com/repos/spira/spira/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/spira/spira/pulls/91","id":40637202,"html_url":"https://github.com/spira/spira/pull/91","diff_url":"https://github.com/spira/spira/pull/91.diff","patch_url":"https://github.com/spira/spira/pull/91.patch","issue_url":"https://api.github.com/repos/spira/spira/issues/91","number":91,"state":"open","locked":false,"title":"Feature/articles crud","user":{"login":"Redjik","id":1131017,"avatar_url":"https://avatars.githubusercontent.com/u/1131017?v=3","gravatar_id":"","url":"https://api.github.com/users/Redjik","html_url":"https://github.com/Redjik","followers_url":"https://api.github.com/users/Redjik/followers","following_url":"https://api.github.com/users/Redjik/following{/other_user}","gists_url":"https://api.github.com/users/Redjik/gists{/gist_id}","starred_url":"https://api.github.com/users/Redjik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Redjik/subscriptions","organizations_url":"https://api.github.com/users/Redjik/orgs","repos_url":"https://api.github.com/users/Redjik/repos","events_url":"https://api.github.com/users/Redjik/events{/privacy}","received_events_url":"https://api.github.com/users/Redjik/received_events","type":"User","site_admin":false},"body":"* repository findOne returns null not exception on empty\r\n* apiController changes based on NotFoundException\r\n* article permalink setter fixed (works with null)\r\n* permalink specification works with null\r\n* article model factory added\r\n* base model - do not query deletion of just created models\r\n* articlePermalinkSpecification realisation\r\n* initial specification test on article\r\n* article specification compare test\r\n* permalink validation","created_at":"2015-07-23T04:59:46Z","updated_at":"2015-07-29T07:58:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4f407cd33dc2582b187126fd252d35f9afc357b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spira/spira/pulls/91/commits","review_comments_url":"https://api.github.com/repos/spira/spira/pulls/91/comments","review_comment_url":"https://api.github.com/repos/spira/spira/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spira/spira/issues/91/comments","statuses_url":"https://api.github.com/repos/spira/spira/statuses/56a79033449e50203f2f291ec9ebfdf728fb5cea","head":{"label":"spira:feature/articles-crud","ref":"feature/articles-crud","sha":"56a79033449e50203f2f291ec9ebfdf728fb5cea","user":{"login":"spira","id":12660367,"avatar_url":"https://avatars.githubusercontent.com/u/12660367?v=3","gravatar_id":"","url":"https://api.github.com/users/spira","html_url":"https://github.com/spira","followers_url":"https://api.github.com/users/spira/followers","following_url":"https://api.github.com/users/spira/following{/other_user}","gists_url":"https://api.github.com/users/spira/gists{/gist_id}","starred_url":"https://api.github.com/users/spira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spira/subscriptions","organizations_url":"https://api.github.com/users/spira/orgs","repos_url":"https://api.github.com/users/spira/repos","events_url":"https://api.github.com/users/spira/events{/privacy}","received_events_url":"https://api.github.com/users/spira/received_events","type":"Organization","site_admin":false},"repo":{"id":35469223,"name":"spira","full_name":"spira/spira","owner":{"login":"spira","id":12660367,"avatar_url":"https://avatars.githubusercontent.com/u/12660367?v=3","gravatar_id":"","url":"https://api.github.com/users/spira","html_url":"https://github.com/spira","followers_url":"https://api.github.com/users/spira/followers","following_url":"https://api.github.com/users/spira/following{/other_user}","gists_url":"https://api.github.com/users/spira/gists{/gist_id}","starred_url":"https://api.github.com/users/spira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spira/subscriptions","organizations_url":"https://api.github.com/users/spira/orgs","repos_url":"https://api.github.com/users/spira/repos","events_url":"https://api.github.com/users/spira/events{/privacy}","received_events_url":"https://api.github.com/users/spira/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spira/spira","description":"Lumen + AngularJS with Docker project seed","fork":false,"url":"https://api.github.com/repos/spira/spira","forks_url":"https://api.github.com/repos/spira/spira/forks","keys_url":"https://api.github.com/repos/spira/spira/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spira/spira/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spira/spira/teams","hooks_url":"https://api.github.com/repos/spira/spira/hooks","issue_events_url":"https://api.github.com/repos/spira/spira/issues/events{/number}","events_url":"https://api.github.com/repos/spira/spira/events","assignees_url":"https://api.github.com/repos/spira/spira/assignees{/user}","branches_url":"https://api.github.com/repos/spira/spira/branches{/branch}","tags_url":"https://api.github.com/repos/spira/spira/tags","blobs_url":"https://api.github.com/repos/spira/spira/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spira/spira/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spira/spira/git/refs{/sha}","trees_url":"https://api.github.com/repos/spira/spira/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spira/spira/statuses/{sha}","languages_url":"https://api.github.com/repos/spira/spira/languages","stargazers_url":"https://api.github.com/repos/spira/spira/stargazers","contributors_url":"https://api.github.com/repos/spira/spira/contributors","subscribers_url":"https://api.github.com/repos/spira/spira/subscribers","subscription_url":"https://api.github.com/repos/spira/spira/subscription","commits_url":"https://api.github.com/repos/spira/spira/commits{/sha}","git_commits_url":"https://api.github.com/repos/spira/spira/git/commits{/sha}","comments_url":"https://api.github.com/repos/spira/spira/comments{/number}","issue_comment_url":"https://api.github.com/repos/spira/spira/issues/comments{/number}","contents_url":"https://api.github.com/repos/spira/spira/contents/{+path}","compare_url":"https://api.github.com/repos/spira/spira/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spira/spira/merges","archive_url":"https://api.github.com/repos/spira/spira/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spira/spira/downloads","issues_url":"https://api.github.com/repos/spira/spira/issues{/number}","pulls_url":"https://api.github.com/repos/spira/spira/pulls{/number}","milestones_url":"https://api.github.com/repos/spira/spira/milestones{/number}","notifications_url":"https://api.github.com/repos/spira/spira/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spira/spira/labels{/name}","releases_url":"https://api.github.com/repos/spira/spira/releases{/id}","created_at":"2015-05-12T05:44:10Z","updated_at":"2015-07-03T14:23:58Z","pushed_at":"2015-07-29T07:56:40Z","git_url":"git://github.com/spira/spira.git","ssh_url":"git@github.com:spira/spira.git","clone_url":"https://github.com/spira/spira.git","svn_url":"https://github.com/spira/spira","homepage":"http://spira.github.io","size":3152,"stargazers_count":7,"watchers_count":7,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":7,"forks":4,"open_issues":7,"watchers":7,"default_branch":"master"}},"base":{"label":"spira:master","ref":"master","sha":"6237bc74f0fc9cd9689b56311f0a0cbade425587","user":{"login":"spira","id":12660367,"avatar_url":"https://avatars.githubusercontent.com/u/12660367?v=3","gravatar_id":"","url":"https://api.github.com/users/spira","html_url":"https://github.com/spira","followers_url":"https://api.github.com/users/spira/followers","following_url":"https://api.github.com/users/spira/following{/other_user}","gists_url":"https://api.github.com/users/spira/gists{/gist_id}","starred_url":"https://api.github.com/users/spira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spira/subscriptions","organizations_url":"https://api.github.com/users/spira/orgs","repos_url":"https://api.github.com/users/spira/repos","events_url":"https://api.github.com/users/spira/events{/privacy}","received_events_url":"https://api.github.com/users/spira/received_events","type":"Organization","site_admin":false},"repo":{"id":35469223,"name":"spira","full_name":"spira/spira","owner":{"login":"spira","id":12660367,"avatar_url":"https://avatars.githubusercontent.com/u/12660367?v=3","gravatar_id":"","url":"https://api.github.com/users/spira","html_url":"https://github.com/spira","followers_url":"https://api.github.com/users/spira/followers","following_url":"https://api.github.com/users/spira/following{/other_user}","gists_url":"https://api.github.com/users/spira/gists{/gist_id}","starred_url":"https://api.github.com/users/spira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spira/subscriptions","organizations_url":"https://api.github.com/users/spira/orgs","repos_url":"https://api.github.com/users/spira/repos","events_url":"https://api.github.com/users/spira/events{/privacy}","received_events_url":"https://api.github.com/users/spira/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spira/spira","description":"Lumen + AngularJS with Docker project seed","fork":false,"url":"https://api.github.com/repos/spira/spira","forks_url":"https://api.github.com/repos/spira/spira/forks","keys_url":"https://api.github.com/repos/spira/spira/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spira/spira/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spira/spira/teams","hooks_url":"https://api.github.com/repos/spira/spira/hooks","issue_events_url":"https://api.github.com/repos/spira/spira/issues/events{/number}","events_url":"https://api.github.com/repos/spira/spira/events","assignees_url":"https://api.github.com/repos/spira/spira/assignees{/user}","branches_url":"https://api.github.com/repos/spira/spira/branches{/branch}","tags_url":"https://api.github.com/repos/spira/spira/tags","blobs_url":"https://api.github.com/repos/spira/spira/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spira/spira/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spira/spira/git/refs{/sha}","trees_url":"https://api.github.com/repos/spira/spira/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spira/spira/statuses/{sha}","languages_url":"https://api.github.com/repos/spira/spira/languages","stargazers_url":"https://api.github.com/repos/spira/spira/stargazers","contributors_url":"https://api.github.com/repos/spira/spira/contributors","subscribers_url":"https://api.github.com/repos/spira/spira/subscribers","subscription_url":"https://api.github.com/repos/spira/spira/subscription","commits_url":"https://api.github.com/repos/spira/spira/commits{/sha}","git_commits_url":"https://api.github.com/repos/spira/spira/git/commits{/sha}","comments_url":"https://api.github.com/repos/spira/spira/comments{/number}","issue_comment_url":"https://api.github.com/repos/spira/spira/issues/comments{/number}","contents_url":"https://api.github.com/repos/spira/spira/contents/{+path}","compare_url":"https://api.github.com/repos/spira/spira/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spira/spira/merges","archive_url":"https://api.github.com/repos/spira/spira/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spira/spira/downloads","issues_url":"https://api.github.com/repos/spira/spira/issues{/number}","pulls_url":"https://api.github.com/repos/spira/spira/pulls{/number}","milestones_url":"https://api.github.com/repos/spira/spira/milestones{/number}","notifications_url":"https://api.github.com/repos/spira/spira/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spira/spira/labels{/name}","releases_url":"https://api.github.com/repos/spira/spira/releases{/id}","created_at":"2015-05-12T05:44:10Z","updated_at":"2015-07-03T14:23:58Z","pushed_at":"2015-07-29T07:56:40Z","git_url":"git://github.com/spira/spira.git","ssh_url":"git@github.com:spira/spira.git","clone_url":"https://github.com/spira/spira.git","svn_url":"https://github.com/spira/spira","homepage":"http://spira.github.io","size":3152,"stargazers_count":7,"watchers_count":7,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":7,"forks":4,"open_issues":7,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spira/spira/pulls/91"},"html":{"href":"https://github.com/spira/spira/pull/91"},"issue":{"href":"https://api.github.com/repos/spira/spira/issues/91"},"comments":{"href":"https://api.github.com/repos/spira/spira/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/spira/spira/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/spira/spira/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spira/spira/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/spira/spira/statuses/56a79033449e50203f2f291ec9ebfdf728fb5cea"}}}}