parent
c019056c34
commit
476e4e1216
@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class UpdateTableUsers extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('users', function (Blueprint $table) {
|
||||||
|
$table->string('file_code')->nullable();
|
||||||
|
$table->enum('user_type', ['natural','juridical'])->default('natural');
|
||||||
|
$table->string('father_name')->nullable();
|
||||||
|
$table->string('website')->nullable();
|
||||||
|
$table->text('description')->nullable();
|
||||||
|
$table->unsignedInteger('user_status_id')->nullable();
|
||||||
|
$table->unsignedInteger('user_title_id')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::table('users', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('file_code');
|
||||||
|
$table->dropColumn('user_type');
|
||||||
|
$table->dropColumn('father_name');
|
||||||
|
$table->dropColumn('website');
|
||||||
|
$table->dropColumn('description');
|
||||||
|
$table->dropColumn('user_status_id');
|
||||||
|
$table->dropColumn('user_title_id');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue