diff --git a/database/2024_01_03_031926_add_user_extra_info.php b/database/2024_01_03_031926_add_user_extra_info.php new file mode 100644 index 0000000..b852208 --- /dev/null +++ b/database/2024_01_03_031926_add_user_extra_info.php @@ -0,0 +1,40 @@ +table('users', function (Blueprint $table) { + $table->bigInteger('pid')->nullable()->unique(); + $table->integer('country_id')->nullable(); + $table->integer('region_id')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + $schema = DB::getSchemaBuilder(); + + $schema->table('users', function (Blueprint $table) { + $table->dropColumn('pid'); + $table->dropColumn('country_id'); + $table->dropColumn('region_id'); + }); + } +} \ No newline at end of file