Merge pull request #284 from WhatDaFox/master

Fix artisan migrate:reset/artisan migrate:refresh (Issue #280)
This commit is contained in:
James Brooks
2015-01-05 12:59:52 +00:00
3 changed files with 3 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ class UserIdColumnForComponents extends Migration
public function down()
{
Schema::table('components', function (Blueprint $table) {
$table->dropForeign('components_user_id_foreign');
$table->dropColumn('user_id');
});
}

View File

@@ -28,6 +28,7 @@ class UserIdColumnForIncidents extends Migration
public function down()
{
Schema::table('incidents', function (Blueprint $table) {
$table->dropForeign('incidents_user_id_foreign');
$table->dropColumn('user_id');
});
}

View File

@@ -26,7 +26,7 @@ class AlterTableUsersAddApiKey extends Migration
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn();
$table->dropColumn('api_key');
});
}
}