mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Fix artisan migrate:reset/artisan migrate:refresh
This commit is contained in:
parent
42e33c4808
commit
f4ddad0721
@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user