From b5916b75778d88a14efaf30c92945ad933d5db15 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sun, 4 Dec 2016 16:16:22 +0000 Subject: [PATCH] Fix missing down migrations --- ...2015_06_10_122216_AlterTableComponentsDropUserIdColumn.php | 4 +++- .../2015_06_10_122229_AlterTableIncidentsDropUserIdColumn.php | 4 +++- ...015_12_26_162258_AlterTableMetricsAddDefaultViewColumn.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/database/migrations/2015_06_10_122216_AlterTableComponentsDropUserIdColumn.php b/database/migrations/2015_06_10_122216_AlterTableComponentsDropUserIdColumn.php index 41d57a3d1..22c96b93e 100644 --- a/database/migrations/2015_06_10_122216_AlterTableComponentsDropUserIdColumn.php +++ b/database/migrations/2015_06_10_122216_AlterTableComponentsDropUserIdColumn.php @@ -30,6 +30,8 @@ class AlterTableComponentsDropUserIdColumn extends Migration */ public function down() { - // + Schema::table('components', function (Blueprint $table) { + $table->integer('user_id')->unsigned()->after('group_id'); + }); } } diff --git a/database/migrations/2015_06_10_122229_AlterTableIncidentsDropUserIdColumn.php b/database/migrations/2015_06_10_122229_AlterTableIncidentsDropUserIdColumn.php index ce694c746..1e101671b 100644 --- a/database/migrations/2015_06_10_122229_AlterTableIncidentsDropUserIdColumn.php +++ b/database/migrations/2015_06_10_122229_AlterTableIncidentsDropUserIdColumn.php @@ -30,6 +30,8 @@ class AlterTableIncidentsDropUserIdColumn extends Migration */ public function down() { - // + Schema::table('incidents', function (Blueprint $table) { + $table->integer('user_id')->unsigned()->after('message'); + }); } } diff --git a/database/migrations/2015_12_26_162258_AlterTableMetricsAddDefaultViewColumn.php b/database/migrations/2015_12_26_162258_AlterTableMetricsAddDefaultViewColumn.php index e27be8124..9014ea11a 100644 --- a/database/migrations/2015_12_26_162258_AlterTableMetricsAddDefaultViewColumn.php +++ b/database/migrations/2015_12_26_162258_AlterTableMetricsAddDefaultViewColumn.php @@ -35,7 +35,7 @@ class AlterTableMetricsAddDefaultViewColumn extends Migration public function down() { Schema::table('metrics', function (Blueprint $table) { - // + $table->dropColumn('default_view'); }); } }