Fix artisan migrate:reset/artisan migrate:refresh

This commit is contained in:
Valentin PRUGNAUD 2015-01-05 04:37:42 -08:00
parent 42e33c4808
commit f4ddad0721
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');
});
}
}