mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 18:41:07 +03:30
fix: delete users and medical_center api
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('transfers', function (Blueprint $table) {
|
||||
$table->dropForeign(['user_id']);
|
||||
});
|
||||
Schema::table('test_types', function (Blueprint $table) {
|
||||
$table->dropForeign(['user_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('transfers', function (Blueprint $table) {
|
||||
$table->foreign('user_id')->references('id')
|
||||
->on('users');
|
||||
});
|
||||
Schema::table('test_types', function (Blueprint $table) {
|
||||
$table->foreign('user_id')->references('id')
|
||||
->on('users');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user