Closes #688 - Drop user_id column
This commit is contained in:
@@ -28,7 +28,6 @@ $factory->define('CachetHQ\Cachet\Models\Component', function ($faker) {
|
||||
'link' => $faker->url(),
|
||||
'status' => 1,
|
||||
'order' => 0,
|
||||
'user_id' => 1,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -37,7 +36,6 @@ $factory->define('CachetHQ\Cachet\Models\Incident', function ($faker) {
|
||||
'name' => $faker->sentence(),
|
||||
'message' => $faker->paragraph(),
|
||||
'status' => 1,
|
||||
'user_id' => 1,
|
||||
];
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Cachet.
|
||||
*
|
||||
* (c) Cachet HQ <support@cachethq.io>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AlterTableComponentsDropUserIdColumn extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('components', function (Blueprint $table) {
|
||||
$table->dropColumn('user_id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Cachet.
|
||||
*
|
||||
* (c) Cachet HQ <support@cachethq.io>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AlterTableIncidentsDropUserIdColumn extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('incidents', function (Blueprint $table) {
|
||||
$table->dropColumn('user_id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,6 @@ class ComponentTableSeeder extends Seeder
|
||||
'name' => 'API',
|
||||
'description' => 'Used by third-parties to connect to us',
|
||||
'status' => 1,
|
||||
'user_id' => 1,
|
||||
'order' => 0,
|
||||
'group_id' => 0,
|
||||
'link' => '',
|
||||
@@ -35,7 +34,6 @@ class ComponentTableSeeder extends Seeder
|
||||
'name' => 'Documentation',
|
||||
'description' => 'Kindly powered by Readme.io',
|
||||
'status' => 1,
|
||||
'user_id' => 1,
|
||||
'order' => 0,
|
||||
'group_id' => 0,
|
||||
'link' => 'https://docs.cachethq.io',
|
||||
@@ -43,7 +41,6 @@ class ComponentTableSeeder extends Seeder
|
||||
'name' => 'Website',
|
||||
'description' => '',
|
||||
'status' => 1,
|
||||
'user_id' => 1,
|
||||
'order' => 0,
|
||||
'group_id' => 0,
|
||||
'link' => 'https://cachethq.io',
|
||||
@@ -51,7 +48,6 @@ class ComponentTableSeeder extends Seeder
|
||||
'name' => 'Blog',
|
||||
'description' => 'The Cachet HQ blog.',
|
||||
'status' => 1,
|
||||
'user_id' => 1,
|
||||
'order' => 0,
|
||||
'group_id' => 0,
|
||||
'link' => 'https://blog.cachethq.io',
|
||||
|
||||
@@ -28,7 +28,6 @@ class IncidentTableSeeder extends Seeder
|
||||
'message' => 'We totally nailed the fix.',
|
||||
'status' => 4,
|
||||
'component_id' => 0,
|
||||
'user_id' => 1,
|
||||
'scheduled_at' => null,
|
||||
],
|
||||
[
|
||||
@@ -36,7 +35,6 @@ class IncidentTableSeeder extends Seeder
|
||||
'message' => "We're checking that our fix will first work.",
|
||||
'status' => 3,
|
||||
'component_id' => 0,
|
||||
'user_id' => 1,
|
||||
'scheduled_at' => null,
|
||||
],
|
||||
[
|
||||
@@ -44,14 +42,12 @@ class IncidentTableSeeder extends Seeder
|
||||
'message' => "We've found the problem, so we're looking at it.",
|
||||
'status' => 2,
|
||||
'component_id' => 0,
|
||||
'user_id' => 1,
|
||||
'scheduled_at' => null,
|
||||
],
|
||||
[
|
||||
'name' => 'Test Incident',
|
||||
'message' => 'Something went wrong, oh noes.',
|
||||
'component_id' => 0,
|
||||
'user_id' => 1,
|
||||
'scheduled_at' => null,
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user