Fix API: GETClienFile

This commit is contained in:
miroman-afk
2021-06-03 12:39:27 +03:00
parent c9463b0dbb
commit c013425587
2 changed files with 37 additions and 67 deletions

View File

@@ -13,13 +13,9 @@ class AddForeignKeyToClientsTable extends Migration {
Schema::table('clients', function (Blueprint $table) {
$table->string('user_code')->unique()->change();
});
Schema::table('clients_phone', function (Blueprint $table) {
$table->foreign('client_guid')->references('user_code')->on('clients');
$table->foreign('user_code')->references('client_guid')->on('clients_phone');
});
}
/**
* Reverse the migrations.
*