Merge pull request #284 from WhatDaFox/master
Fix artisan migrate:reset/artisan migrate:refresh (Issue #280)
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class AlterTableUsersAddApiKey extends Migration
|
||||
public function down()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropColumn();
|
||||
$table->dropColumn('api_key');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user