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'); }); } }