diff --git a/database/migrations/2020_05_13_073148_update_table_users.php b/database/migrations/2020_05_13_073148_update_table_users.php new file mode 100644 index 0000000..aecccc2 --- /dev/null +++ b/database/migrations/2020_05_13_073148_update_table_users.php @@ -0,0 +1,44 @@ +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'); + }); + } +}