add temp migration

pull/1/head
Farid Saravi 5 years ago
parent 55a529062b
commit 711dd3a3fc

@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddFirstNameLastNameColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table("users", function (Blueprint $table) {
$table->string('first_name', 255)->nullable()->after('name');
$table->string('last_name', 255)->nullable()->after('first_name');
});
$dbName = config("crm.db_name");
Schema::table($dbName . ".clients", function (Blueprint $table) {
$table->string('first_name', 255)->nullable()->after('name');
$table->string('last_name', 255)->nullable()->after('first_name');
$table->string('file_code', 255)->nullable()->after('last_name');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
Loading…
Cancel
Save