{"action":"created","issue":{"url":"https://api.github.com/repos/cachethq/Cachet/issues/291","labels_url":"https://api.github.com/repos/cachethq/Cachet/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/cachethq/Cachet/issues/291/comments","events_url":"https://api.github.com/repos/cachethq/Cachet/issues/291/events","html_url":"https://github.com/cachethq/Cachet/issues/291","id":53411478,"number":291,"title":"Setup no longer works","user":{"login":"jbrooksuk","id":246103,"avatar_url":"https://avatars.githubusercontent.com/u/246103?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrooksuk","html_url":"https://github.com/jbrooksuk","followers_url":"https://api.github.com/users/jbrooksuk/followers","following_url":"https://api.github.com/users/jbrooksuk/following{/other_user}","gists_url":"https://api.github.com/users/jbrooksuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrooksuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrooksuk/subscriptions","organizations_url":"https://api.github.com/users/jbrooksuk/orgs","repos_url":"https://api.github.com/users/jbrooksuk/repos","events_url":"https://api.github.com/users/jbrooksuk/events{/privacy}","received_events_url":"https://api.github.com/users/jbrooksuk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cachethq/Cachet/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":35,"created_at":"2015-01-05T16:08:30Z","updated_at":"2015-01-05T18:51:51Z","closed_at":null,"body":"I've just re-setup the Heroku demo, it took me to the login page but upon checking the database there is no user.\r\n\r\nLooking through it all, even the settings haven't been filled in."},"comment":{"url":"https://api.github.com/repos/cachethq/Cachet/issues/comments/68755782","html_url":"https://github.com/cachethq/Cachet/issues/291#issuecomment-68755782","issue_url":"https://api.github.com/repos/cachethq/Cachet/issues/291","id":68755782,"user":{"login":"jbrooksuk","id":246103,"avatar_url":"https://avatars.githubusercontent.com/u/246103?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrooksuk","html_url":"https://github.com/jbrooksuk","followers_url":"https://api.github.com/users/jbrooksuk/followers","following_url":"https://api.github.com/users/jbrooksuk/following{/other_user}","gists_url":"https://api.github.com/users/jbrooksuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrooksuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrooksuk/subscriptions","organizations_url":"https://api.github.com/users/jbrooksuk/orgs","repos_url":"https://api.github.com/users/jbrooksuk/repos","events_url":"https://api.github.com/users/jbrooksuk/events{/privacy}","received_events_url":"https://api.github.com/users/jbrooksuk/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T18:51:51Z","updated_at":"2015-01-05T18:51:51Z","body":"Ok let's rewrite them. \r\n\r\nSent from my iPhone\r\n\r\n> On 5 Jan 2015, at 18:46, Graham Campbell <notifications@github.com> wrote:\r\n> \r\n> Like, what is this crap?\r\n> \r\n> <?php\r\n> \r\n> use Illuminate\\Database\\Migrations\\Migration;\r\n> use Illuminate\\Database\\Schema\\Blueprint;\r\n> use Illuminate\\Support\\Facades\\Config;\r\n> use Illuminate\\Support\\Facades\\DB;\r\n> use Illuminate\\Support\\Facades\\Schema;\r\n> \r\n> class AlterTableIncidentsRemoveDefaultComponent extends Migration\r\n> {\r\n>     /**\r\n>      * Run the migrations.\r\n>      *\r\n>      * @return void\r\n>      */\r\n>     public function up()\r\n>     {\r\n>         Schema::table('incidents', function (Blueprint $table) {\r\n>             if (Config::get('database')['default'] === 'mysql') {\r\n>                 DB::statement(\"ALTER TABLE incidents CHANGE component_id component_id TINYINT(4)  NOT NULL  DEFAULT '0';\");\r\n>             } elseif (Config::get('database')['default'] === 'pgsql') {\r\n>                 DB::statement(\"ALTER TABLE incidents ALTER COLUMN component_id SET DEFAULT '0';\");\r\n>             }\r\n>         });\r\n>     }\r\n> \r\n>     /**\r\n>      * Reverse the migrations.\r\n>      *\r\n>      * @return void\r\n>      */\r\n>     public function down()\r\n>     {\r\n>         Schema::table('incidents', function (Blueprint $table) {\r\n>             if (Config::get('database')['default'] === 'mysql') {\r\n>                 DB::statement(\"ALTER TABLE incidents CHANGE component_id component_id TINYINT(4)  NOT NULL  DEFAULT '1';\");\r\n>             } elseif (Config::get('database')['default'] === 'pgsql') {\r\n>                 DB::statement(\"ALTER TABLE incidents ALTER COLUMN component_id SET DEFAULT '1';\");\r\n>             }\r\n>         });\r\n>     }\r\n> }\r\n> If you use sqlite, your screwed then?\r\n> \r\n> —\r\n> Reply to this email directly or view it on GitHub.\r\n> "}}