From 476e4e1216f42e4eb5ad0e822d28b645c6862c1a Mon Sep 17 00:00:00 2001 From: Farid Saravi Date: Wed, 13 May 2020 07:52:48 +0430 Subject: [PATCH] feat: add users migration --- .../2020_05_13_073148_update_table_users.php | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 database/migrations/2020_05_13_073148_update_table_users.php 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'); + }); + } +}