API: v.1.4: Edit, remove clients
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddForeignKeyToClientsTable extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up() {
|
||||
|
||||
Schema::table('clients', function (Blueprint $table) {
|
||||
$table->string('user_code')->unique()->change();
|
||||
$table->foreign('user_code')->references('client_guid')->on('clients_phone');
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down() {
|
||||
Schema::table('clients', function (Blueprint $table) {
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user